@shlinkio/eslint-config-js-coding-standard 2.5.0 → 2.5.2
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 +22 -3
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ module.exports = {
|
|
|
6
6
|
'plugin:react/jsx-runtime',
|
|
7
7
|
'plugin:react-hooks/recommended'
|
|
8
8
|
],
|
|
9
|
-
plugins: ['jsx-a11y', 'simple-import-sort'],
|
|
9
|
+
plugins: ['jsx-a11y', 'simple-import-sort', '@stylistic'],
|
|
10
10
|
parserOptions: {
|
|
11
11
|
ecmaFeatures: {
|
|
12
12
|
jsx: true
|
|
@@ -18,12 +18,31 @@ module.exports = {
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
rules: {
|
|
21
|
-
|
|
22
|
-
'
|
|
21
|
+
'@stylistic/arrow-parens': 'error',
|
|
22
|
+
'@stylistic/arrow-spacing': 'error',
|
|
23
|
+
'@stylistic/block-spacing': 'error',
|
|
24
|
+
'@stylistic/comma-dangle': ['error', 'always-multiline'],
|
|
25
|
+
'@stylistic/eol-last': 'error',
|
|
26
|
+
'@stylistic/function-call-spacing': 'error',
|
|
27
|
+
'@stylistic/indent': ['error', 2],
|
|
28
|
+
'@stylistic/key-spacing': 'error',
|
|
29
|
+
'@stylistic/keyword-spacing': 'error',
|
|
30
|
+
'@stylistic/max-len': [
|
|
23
31
|
'error',
|
|
32
|
+
// Do not allow more than 120 characters per line, except for long strings and comments in the same line
|
|
24
33
|
{ 'code': 120, 'ignoreComments': true, 'ignoreStrings': true, 'ignoreTemplateLiterals': true },
|
|
25
34
|
],
|
|
35
|
+
'@stylistic/no-trailing-spaces': 'error',
|
|
36
|
+
'@stylistic/object-curly-spacing': ['error', 'always'],
|
|
37
|
+
'@stylistic/quotes': ['error', 'single'],
|
|
38
|
+
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
|
|
39
|
+
'@stylistic/rest-spread-spacing': 'error',
|
|
40
|
+
'@stylistic/semi': 'error',
|
|
41
|
+
'@stylistic/spaced-comment': 'error',
|
|
42
|
+
'@stylistic/no-multiple-empty-lines': ['error', { 'max': 1 }],
|
|
43
|
+
|
|
26
44
|
'@typescript-eslint/consistent-type-imports': 'error',
|
|
45
|
+
|
|
27
46
|
'simple-import-sort/imports': ['error', {
|
|
28
47
|
'groups': [
|
|
29
48
|
// First external imports, then local imports, then styles imports
|
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"build": "mkdir -p dist && rm -rf dist/* && cp index.js dist"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
+
"@stylistic/eslint-plugin": "^2.1.0",
|
|
25
26
|
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
|
26
27
|
"@typescript-eslint/parser": "^7.5.0",
|
|
27
28
|
"eslint": "^8.57.0",
|
|
@@ -36,5 +37,5 @@
|
|
|
36
37
|
"files": [
|
|
37
38
|
"dist"
|
|
38
39
|
],
|
|
39
|
-
"version": "2.5.
|
|
40
|
+
"version": "2.5.2"
|
|
40
41
|
}
|