@putout/eslint-config 11.0.0 → 12.0.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/index.js +35 -35
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import js from '@eslint/js';
|
|
2
|
-
import
|
|
2
|
+
import stylistic from '@stylistic/eslint-plugin';
|
|
3
3
|
import globals from 'globals';
|
|
4
4
|
|
|
5
5
|
export const rules = {
|
|
@@ -22,6 +22,7 @@ export const rules = {
|
|
|
22
22
|
},
|
|
23
23
|
}],
|
|
24
24
|
'no-delete-var': 'off',
|
|
25
|
+
'no-prototype-builtins': 'off',
|
|
25
26
|
'no-unused-labels': 'off',
|
|
26
27
|
'no-else-return': ['error', {
|
|
27
28
|
allowElseIf: false,
|
|
@@ -50,17 +51,17 @@ export const rules = {
|
|
|
50
51
|
'below',
|
|
51
52
|
],
|
|
52
53
|
'lines-around-directive': 'error',
|
|
53
|
-
'@stylistic/
|
|
54
|
-
'@stylistic/
|
|
55
|
-
'@stylistic/
|
|
56
|
-
'@stylistic/
|
|
57
|
-
'@stylistic/
|
|
58
|
-
'@stylistic/
|
|
54
|
+
'@stylistic/array-bracket-spacing': 'error',
|
|
55
|
+
'@stylistic/arrow-spacing': 'error',
|
|
56
|
+
'@stylistic/brace-style': 'error',
|
|
57
|
+
'@stylistic/comma-dangle': ['error', 'always-multiline'],
|
|
58
|
+
'@stylistic/comma-spacing': 'error',
|
|
59
|
+
'@stylistic/eol-last': [
|
|
59
60
|
'error',
|
|
60
61
|
'always',
|
|
61
62
|
],
|
|
62
|
-
'@stylistic/
|
|
63
|
-
'@stylistic/
|
|
63
|
+
'@stylistic/func-call-spacing': 'error',
|
|
64
|
+
'@stylistic/operator-linebreak': ['error', 'after', {
|
|
64
65
|
overrides: {
|
|
65
66
|
'=': 'none',
|
|
66
67
|
'|': 'before',
|
|
@@ -70,52 +71,51 @@ export const rules = {
|
|
|
70
71
|
'?': 'before',
|
|
71
72
|
},
|
|
72
73
|
}],
|
|
73
|
-
'@stylistic/
|
|
74
|
-
'@stylistic/
|
|
75
|
-
'@stylistic/
|
|
76
|
-
'@stylistic/
|
|
74
|
+
'@stylistic/function-paren-newline': ['error', 'multiline-arguments'],
|
|
75
|
+
'@stylistic/key-spacing': 'error',
|
|
76
|
+
'@stylistic/newline-per-chained-call': 'error',
|
|
77
|
+
'@stylistic/space-infix-ops': ['error', {
|
|
77
78
|
int32Hint: false,
|
|
78
79
|
}],
|
|
79
|
-
'@stylistic/
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
'@stylistic/
|
|
84
|
-
'@stylistic/
|
|
85
|
-
'@stylistic/js/space-before-function-paren': ['error', {
|
|
80
|
+
'@stylistic/indent': ['error', 4, {
|
|
81
|
+
SwitchCase: 0,
|
|
82
|
+
}],
|
|
83
|
+
'@stylistic/space-in-parens': 'error',
|
|
84
|
+
'@stylistic/space-before-blocks': 'error',
|
|
85
|
+
'@stylistic/space-before-function-paren': ['error', {
|
|
86
86
|
anonymous: 'never',
|
|
87
87
|
named: 'never',
|
|
88
88
|
asyncArrow: 'always',
|
|
89
89
|
}],
|
|
90
|
-
'@stylistic/
|
|
91
|
-
'@stylistic/
|
|
90
|
+
'@stylistic/implicit-arrow-linebreak': 'error',
|
|
91
|
+
'@stylistic/quotes': ['error', 'single', {
|
|
92
92
|
allowTemplateLiterals: true,
|
|
93
93
|
}],
|
|
94
|
-
'@stylistic/
|
|
95
|
-
'@stylistic/
|
|
96
|
-
'@stylistic/
|
|
97
|
-
'@stylistic/
|
|
98
|
-
'@stylistic/
|
|
94
|
+
'@stylistic/quote-props': ['error', 'consistent-as-needed'],
|
|
95
|
+
'@stylistic/semi': 'error',
|
|
96
|
+
'@stylistic/no-extra-semi': 'error',
|
|
97
|
+
'@stylistic/object-curly-spacing': 'error',
|
|
98
|
+
'@stylistic/no-extra-parens': ['error', 'all', {
|
|
99
99
|
enforceForSequenceExpressions: false,
|
|
100
100
|
}],
|
|
101
|
-
'@stylistic/
|
|
102
|
-
'@stylistic/
|
|
101
|
+
'@stylistic/no-multi-spaces': 'error',
|
|
102
|
+
'@stylistic/no-trailing-spaces': ['error', {
|
|
103
103
|
skipBlankLines: true,
|
|
104
104
|
}],
|
|
105
|
-
'@stylistic/
|
|
105
|
+
'@stylistic/no-multiple-empty-lines': ['error', {
|
|
106
106
|
max: 1,
|
|
107
107
|
maxBOF: 0,
|
|
108
108
|
}],
|
|
109
|
-
'@stylistic/
|
|
110
|
-
'@stylistic/
|
|
109
|
+
'@stylistic/lines-between-class-members': 'off',
|
|
110
|
+
'@stylistic/linebreak-style': [
|
|
111
111
|
'error',
|
|
112
112
|
'unix',
|
|
113
113
|
],
|
|
114
|
-
'@stylistic/
|
|
114
|
+
'@stylistic/padded-blocks': [
|
|
115
115
|
'error',
|
|
116
116
|
'never',
|
|
117
117
|
],
|
|
118
|
-
'@stylistic/
|
|
118
|
+
'@stylistic/padding-line-between-statements': [
|
|
119
119
|
'error',
|
|
120
120
|
...getPaddingExport(),
|
|
121
121
|
...getPaddingCjsExport(),
|
|
@@ -147,7 +147,7 @@ export default [{
|
|
|
147
147
|
name: '@putout/eslint-config',
|
|
148
148
|
rules,
|
|
149
149
|
plugins: {
|
|
150
|
-
'@stylistic
|
|
150
|
+
'@stylistic': stylistic,
|
|
151
151
|
},
|
|
152
152
|
languageOptions: {
|
|
153
153
|
ecmaVersion: 2025,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout config for ESLint",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@eslint/js": "^9.2.0",
|
|
28
|
-
"@stylistic/eslint-plugin
|
|
28
|
+
"@stylistic/eslint-plugin": "^4.4.0",
|
|
29
29
|
"globals": "^16.0.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"eslint-config"
|
|
39
39
|
],
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@putout/eslint-flat": "^
|
|
42
|
-
"@putout/test": "^
|
|
41
|
+
"@putout/eslint-flat": "^3.0.0",
|
|
42
|
+
"@putout/test": "^13.0.0",
|
|
43
43
|
"c8": "^10.0.0",
|
|
44
44
|
"eslint-plugin-n": "^17.0.0",
|
|
45
|
-
"eslint-plugin-putout": "^
|
|
46
|
-
"madrun": "^
|
|
45
|
+
"eslint-plugin-putout": "^26.0.0",
|
|
46
|
+
"madrun": "^11.0.0",
|
|
47
47
|
"putout": "*"
|
|
48
48
|
},
|
|
49
49
|
"license": "MIT",
|