@etchteam/eslint-config 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +4 -0
- package/CHANGELOG.md +2 -2
- package/package.json +3 -2
- package/prettier.config.js +3 -0
- package/src/index.js +24 -15
package/.vscode/settings.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [1.
|
|
1
|
+
## [1.4.0](https://github.com/etchteam/eslint/compare/v1.3.0...v1.4.0) (2023-07-25)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* increase version range to support node 20 ([ddc0f34](https://github.com/etchteam/eslint/commit/ddc0f34f5971d75fd34b337c6d31bae3ddd6098c))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etchteam/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Etch's standard eslint config",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"release": "semantic-release"
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": "^14 || ^16 || ^18"
|
|
11
|
+
"node": "^14 || ^16 || ^18 || ^20"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"eslint-config-next": "^13.4.5",
|
|
37
37
|
"eslint-config-prettier": "^8.5.0",
|
|
38
38
|
"eslint-plugin-import": "^2.26.0",
|
|
39
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
39
40
|
"eslint-plugin-prettier": "^4.2.1",
|
|
40
41
|
"eslint-plugin-security": "^1.5.0",
|
|
41
42
|
"eslint-plugin-storybook": "^0.6.8",
|
package/src/index.js
CHANGED
|
@@ -7,6 +7,7 @@ module.exports = {
|
|
|
7
7
|
'plugin:import/recommended',
|
|
8
8
|
'plugin:import/typescript',
|
|
9
9
|
'plugin:prettier/recommended',
|
|
10
|
+
'plugin:jsx-a11y/strict',
|
|
10
11
|
],
|
|
11
12
|
plugins: ['unused-imports'],
|
|
12
13
|
parser: '@typescript-eslint/parser',
|
|
@@ -15,27 +16,35 @@ module.exports = {
|
|
|
15
16
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
16
17
|
'unused-imports/no-unused-imports': 'error',
|
|
17
18
|
'unused-imports/no-unused-vars': 'off',
|
|
18
|
-
'import/order': [
|
|
19
|
-
'
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
'import/order': [
|
|
20
|
+
'error',
|
|
21
|
+
{
|
|
22
|
+
'newlines-between': 'always',
|
|
23
|
+
alphabetize: {
|
|
24
|
+
order: 'asc',
|
|
25
|
+
},
|
|
26
|
+
pathGroups: [
|
|
27
|
+
{
|
|
28
|
+
pattern: '@/**',
|
|
29
|
+
group: 'parent',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
22
32
|
},
|
|
23
|
-
|
|
24
|
-
pattern: '@/**',
|
|
25
|
-
group: 'parent'
|
|
26
|
-
}]
|
|
27
|
-
}],
|
|
33
|
+
],
|
|
28
34
|
'prettier/prettier': [
|
|
29
35
|
'error',
|
|
30
36
|
{
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
]
|
|
37
|
+
singleQuote: true,
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
'jsx-a11y/anchor-ambiguous-text': 'error',
|
|
41
|
+
'jsx-a11y/no-aria-hidden-on-focusable': 'error',
|
|
42
|
+
'security/detect-object-injection': 'off',
|
|
34
43
|
},
|
|
35
44
|
settings: {
|
|
36
45
|
'import/resolver': {
|
|
37
46
|
typescript: true,
|
|
38
|
-
node: true
|
|
39
|
-
}
|
|
40
|
-
}
|
|
47
|
+
node: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
41
50
|
};
|