@putout/eslint-config 11.0.1 → 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 +34 -35
- package/package.json +2 -2
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 = {
|
|
@@ -51,17 +51,17 @@ export const rules = {
|
|
|
51
51
|
'below',
|
|
52
52
|
],
|
|
53
53
|
'lines-around-directive': 'error',
|
|
54
|
-
'@stylistic/
|
|
55
|
-
'@stylistic/
|
|
56
|
-
'@stylistic/
|
|
57
|
-
'@stylistic/
|
|
58
|
-
'@stylistic/
|
|
59
|
-
'@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': [
|
|
60
60
|
'error',
|
|
61
61
|
'always',
|
|
62
62
|
],
|
|
63
|
-
'@stylistic/
|
|
64
|
-
'@stylistic/
|
|
63
|
+
'@stylistic/func-call-spacing': 'error',
|
|
64
|
+
'@stylistic/operator-linebreak': ['error', 'after', {
|
|
65
65
|
overrides: {
|
|
66
66
|
'=': 'none',
|
|
67
67
|
'|': 'before',
|
|
@@ -71,52 +71,51 @@ export const rules = {
|
|
|
71
71
|
'?': 'before',
|
|
72
72
|
},
|
|
73
73
|
}],
|
|
74
|
-
'@stylistic/
|
|
75
|
-
'@stylistic/
|
|
76
|
-
'@stylistic/
|
|
77
|
-
'@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', {
|
|
78
78
|
int32Hint: false,
|
|
79
79
|
}],
|
|
80
|
-
'@stylistic/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
'@stylistic/
|
|
85
|
-
'@stylistic/
|
|
86
|
-
'@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', {
|
|
87
86
|
anonymous: 'never',
|
|
88
87
|
named: 'never',
|
|
89
88
|
asyncArrow: 'always',
|
|
90
89
|
}],
|
|
91
|
-
'@stylistic/
|
|
92
|
-
'@stylistic/
|
|
90
|
+
'@stylistic/implicit-arrow-linebreak': 'error',
|
|
91
|
+
'@stylistic/quotes': ['error', 'single', {
|
|
93
92
|
allowTemplateLiterals: true,
|
|
94
93
|
}],
|
|
95
|
-
'@stylistic/
|
|
96
|
-
'@stylistic/
|
|
97
|
-
'@stylistic/
|
|
98
|
-
'@stylistic/
|
|
99
|
-
'@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', {
|
|
100
99
|
enforceForSequenceExpressions: false,
|
|
101
100
|
}],
|
|
102
|
-
'@stylistic/
|
|
103
|
-
'@stylistic/
|
|
101
|
+
'@stylistic/no-multi-spaces': 'error',
|
|
102
|
+
'@stylistic/no-trailing-spaces': ['error', {
|
|
104
103
|
skipBlankLines: true,
|
|
105
104
|
}],
|
|
106
|
-
'@stylistic/
|
|
105
|
+
'@stylistic/no-multiple-empty-lines': ['error', {
|
|
107
106
|
max: 1,
|
|
108
107
|
maxBOF: 0,
|
|
109
108
|
}],
|
|
110
|
-
'@stylistic/
|
|
111
|
-
'@stylistic/
|
|
109
|
+
'@stylistic/lines-between-class-members': 'off',
|
|
110
|
+
'@stylistic/linebreak-style': [
|
|
112
111
|
'error',
|
|
113
112
|
'unix',
|
|
114
113
|
],
|
|
115
|
-
'@stylistic/
|
|
114
|
+
'@stylistic/padded-blocks': [
|
|
116
115
|
'error',
|
|
117
116
|
'never',
|
|
118
117
|
],
|
|
119
|
-
'@stylistic/
|
|
118
|
+
'@stylistic/padding-line-between-statements': [
|
|
120
119
|
'error',
|
|
121
120
|
...getPaddingExport(),
|
|
122
121
|
...getPaddingCjsExport(),
|
|
@@ -148,7 +147,7 @@ export default [{
|
|
|
148
147
|
name: '@putout/eslint-config',
|
|
149
148
|
rules,
|
|
150
149
|
plugins: {
|
|
151
|
-
'@stylistic
|
|
150
|
+
'@stylistic': stylistic,
|
|
152
151
|
},
|
|
153
152
|
languageOptions: {
|
|
154
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": {
|