Skip to content
/ avo Public
forked from avo-hq/avo

Commit c96a5ac

Browse files
authored
chore: update eslint (avo-hq#2088)
1 parent 2147443 commit c96a5ac

File tree

3 files changed

+1214
-155
lines changed

3 files changed

+1214
-155
lines changed

.eslintrc.json

+84-45
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,89 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"es6": true
5-
},
6-
"extends": [
7-
"airbnb-base"
2+
"env": {
3+
"browser": true,
4+
"es6": true
5+
},
6+
"extends": [
7+
"airbnb-base"
8+
],
9+
"globals": {
10+
"Atomics": "readonly",
11+
"SharedArrayBuffer": "readonly"
12+
},
13+
"parser": "@babel/eslint-parser",
14+
"parserOptions": {
15+
"requireConfigFile": false,
16+
"babelOptions": {
17+
"babelrc": false,
18+
"configFile": false
19+
// your babel options
20+
// "presets": [
21+
// // "@babel/preset-env"
22+
// ]
23+
}
24+
},
25+
"plugins": [
26+
"sort-imports-es6-autofix"
27+
],
28+
"rules": {
29+
"sort-imports-es6-autofix/sort-imports-es6": [
30+
2,
31+
{
32+
"ignoreCase": false,
33+
"ignoreMemberSort": false,
34+
"memberSyntaxSortOrder": [
35+
"none",
36+
"all",
37+
"multiple",
38+
"single"
39+
]
40+
}
41+
],
42+
// "sort-imports": ["error"],
43+
"semi": [
44+
"error",
45+
"never"
46+
],
47+
"no-empty": [
48+
"error",
49+
{
50+
"allowEmptyCatch": true
51+
}
52+
],
53+
"no-multi-spaces": 0,
54+
"no-shadow": 0,
55+
"no-plusplus": 0,
56+
"no-param-reassign": 0,
57+
"import/prefer-default-export": 0,
58+
"camelcase": [
59+
"error",
60+
{
61+
"ignoreDestructuring": true
62+
}
863
],
9-
"globals": {
10-
"Atomics": "readonly",
11-
"SharedArrayBuffer": "readonly"
12-
},
13-
"parser": "babel-eslint",
14-
"parserOptions": {
15-
"ecmaVersion": 2018,
16-
"sourceType": "module"
17-
},
18-
"plugins": [
19-
"sort-imports-es6-autofix"
64+
"newline-before-return": 1,
65+
"max-len": [
66+
"error",
67+
{
68+
"code": 180
69+
}
2070
],
21-
"rules": {
22-
"sort-imports-es6-autofix/sort-imports-es6": [2, {
23-
"ignoreCase": false,
24-
"ignoreMemberSort": false,
25-
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
26-
}],
27-
// "sort-imports": ["error"],
28-
"semi": ["error", "never"],
29-
"no-empty": ["error", { "allowEmptyCatch": true }],
30-
"no-multi-spaces": 0,
31-
"no-shadow": 0,
32-
"no-plusplus": 0,
33-
"no-param-reassign": 0,
34-
"import/prefer-default-export": 0,
35-
"camelcase": ["error", {"ignoreDestructuring": true}],
36-
"newline-before-return": 1,
37-
"max-len": ["error", { "code": 180 }],
38-
"class-methods-use-this": 0
39-
},
40-
"settings": {
41-
"import/resolver": {
42-
"alias": {
43-
"map": [
44-
["@", "./app/packs"],
45-
["~", "./node_modules"]
46-
]
47-
}
48-
}
71+
"class-methods-use-this": 0
72+
},
73+
"settings": {
74+
"import/resolver": {
75+
"alias": {
76+
"map": [
77+
[
78+
"@",
79+
"./app/packs"
80+
],
81+
[
82+
"~",
83+
"./node_modules"
84+
]
85+
]
86+
}
4987
}
88+
}
5089
}

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@
6767
"urijs": "^1.19.11"
6868
},
6969
"devDependencies": {
70+
"@babel/core": "^7.23.5",
71+
"@babel/eslint-parser": "^7.23.3",
72+
"@babel/preset-env": "^7.23.5",
7073
"@prettier/plugin-ruby": "^2.0.0",
71-
"babel-eslint": "^10.1.0",
7274
"esbuild-visualizer": "^0.3.1",
73-
"eslint": "^8.40.0",
75+
"eslint": "^8.55.0",
7476
"eslint-config-airbnb-base": "^15.0.0",
7577
"eslint-plugin-import": "^2.27.5",
7678
"prettier": "^2.5.1",

0 commit comments

Comments
 (0)