Skip to content

Commit 3319c45

Browse files
committed
aws-setup: move eslint config to .eslintrc.json
The config migrator needs the configuration to be in a separate file. https://eslint.org/blog/2024/05/eslint-configuration-migrator/
1 parent 739dc11 commit 3319c45

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

.ops/aws-setup/.eslintrc.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true
5+
},
6+
"extends": ["eslint:recommended", "plugin:prettier/recommended", "prettier"],
7+
"rules": {
8+
"prefer-const": "error",
9+
"prettier/prettier": "error",
10+
"no-unused-vars": [
11+
"error",
12+
{
13+
"argsIgnorePattern": "^_$"
14+
}
15+
]
16+
},
17+
"parserOptions": {
18+
"ecmaVersion": 2022,
19+
"sourceType": "module",
20+
"parser": "@babel/eslint-parser"
21+
}
22+
}

.ops/aws-setup/package.json

-26
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,5 @@
2424
"eslint-plugin-prettier": "5.2.1",
2525
"eslint-plugin-promise": "7.1.0",
2626
"prettier": "3.3.3"
27-
},
28-
"eslintConfig": {
29-
"root": true,
30-
"env": {
31-
"node": true
32-
},
33-
"extends": [
34-
"eslint:recommended",
35-
"plugin:prettier/recommended",
36-
"prettier"
37-
],
38-
"rules": {
39-
"prefer-const": "error",
40-
"prettier/prettier": "error",
41-
"no-unused-vars": [
42-
"error",
43-
{
44-
"argsIgnorePattern": "^_$"
45-
}
46-
]
47-
},
48-
"parserOptions": {
49-
"ecmaVersion": 2022,
50-
"sourceType": "module",
51-
"parser": "@babel/eslint-parser"
52-
}
5327
}
5428
}

0 commit comments

Comments
 (0)