@shlinkio/eslint-config-js-coding-standard 2.4.0 → 2.5.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/dist/index.js +17 -22
- package/package.json +8 -10
package/dist/index.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
extends: [
|
|
3
|
-
'
|
|
4
|
-
'airbnb-typescript',
|
|
3
|
+
'eslint:recommended',
|
|
5
4
|
'plugin:@typescript-eslint/recommended',
|
|
5
|
+
'plugin:react/recommended',
|
|
6
|
+
'plugin:react/jsx-runtime',
|
|
6
7
|
'plugin:react-hooks/recommended'
|
|
7
8
|
],
|
|
8
|
-
plugins: ['simple-import-sort'],
|
|
9
|
+
plugins: ['jsx-a11y', 'simple-import-sort'],
|
|
10
|
+
parserOptions: {
|
|
11
|
+
ecmaFeatures: {
|
|
12
|
+
jsx: true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
settings: {
|
|
16
|
+
react: {
|
|
17
|
+
version: 'detect'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
9
20
|
rules: {
|
|
10
21
|
// Customize rules or add on top of presets
|
|
11
22
|
'max-len': [
|
|
@@ -15,6 +26,7 @@ module.exports = {
|
|
|
15
26
|
'@typescript-eslint/consistent-type-imports': 'error',
|
|
16
27
|
'simple-import-sort/imports': ['error', {
|
|
17
28
|
'groups': [
|
|
29
|
+
// First external imports, then local imports, then styles imports
|
|
18
30
|
['^', '^\\.', '\\.s?css$']
|
|
19
31
|
]
|
|
20
32
|
}],
|
|
@@ -29,27 +41,10 @@ module.exports = {
|
|
|
29
41
|
}],
|
|
30
42
|
|
|
31
43
|
// Disabled rules from presets
|
|
32
|
-
'
|
|
33
|
-
'implicit-arrow-linebreak': 'off',
|
|
34
|
-
'no-restricted-globals': 'off',
|
|
35
|
-
'default-case': 'off',
|
|
36
|
-
'import/no-cycle': 'off',
|
|
37
|
-
'import/prefer-default-export': 'off',
|
|
38
|
-
'import/no-extraneous-dependencies': 'off',
|
|
39
|
-
'react/react-in-jsx-scope': 'off',
|
|
44
|
+
'react/display-name': ['off', { 'ignoreTranspilerName': false }],
|
|
40
45
|
'react/prop-types': 'off',
|
|
41
|
-
'react/require-default-props': 'off',
|
|
42
|
-
'react/no-unused-prop-types': 'off',
|
|
43
|
-
'react/function-component-definition': 'off',
|
|
44
|
-
'react/no-array-index-key': 'off',
|
|
45
|
-
'react/no-unstable-nested-components': 'off',
|
|
46
|
-
'react/jsx-one-expression-per-line': 'off',
|
|
47
|
-
'react/jsx-props-no-spreading': 'off',
|
|
48
|
-
'react/jsx-no-useless-fragment': 'off',
|
|
49
|
-
'@typescript-eslint/no-unused-expressions': 'off',
|
|
50
46
|
'@typescript-eslint/ban-types': 'off',
|
|
51
|
-
'@typescript-eslint/no-explicit-any': 'off'
|
|
52
|
-
'@typescript-eslint/lines-between-class-members': 'off'
|
|
47
|
+
'@typescript-eslint/no-explicit-any': 'off'
|
|
53
48
|
},
|
|
54
49
|
overrides: [
|
|
55
50
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shlinkio/eslint-config-js-coding-standard",
|
|
3
|
-
"version": "2.4.0",
|
|
4
3
|
"description": "Coding standard used by shlink JavaScript projects",
|
|
5
4
|
"main": "dist/index.js",
|
|
6
5
|
"repository": {
|
|
@@ -22,21 +21,20 @@
|
|
|
22
21
|
"scripts": {
|
|
23
22
|
"build": "mkdir -p dist && rm -rf dist/* && cp index.js dist"
|
|
24
23
|
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
27
|
-
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
28
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
29
|
-
"eslint-plugin-simple-import-sort": "^12.0.0"
|
|
30
|
-
},
|
|
31
24
|
"peerDependencies": {
|
|
32
25
|
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
|
33
26
|
"@typescript-eslint/parser": "^7.5.0",
|
|
34
|
-
"eslint": "^8.57.0"
|
|
27
|
+
"eslint": "^8.57.0",
|
|
28
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
29
|
+
"eslint-plugin-react": "^7.34.2",
|
|
30
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
31
|
+
"eslint-plugin-simple-import-sort": "^12.1.0"
|
|
35
32
|
},
|
|
36
33
|
"devDependencies": {
|
|
37
|
-
"typescript": "^5.4.
|
|
34
|
+
"typescript": "^5.4.5"
|
|
38
35
|
},
|
|
39
36
|
"files": [
|
|
40
37
|
"dist"
|
|
41
|
-
]
|
|
38
|
+
],
|
|
39
|
+
"version": "2.5.0"
|
|
42
40
|
}
|