eslint-plugin-putout 22.7.1 β 22.9.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/README.md +3 -4
- package/lib/array-element-newline/index.js +2 -0
- package/lib/index.js +0 -2
- package/lib/ts.js +7 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -142,10 +142,9 @@ Disabled π**Putout** rules:
|
|
|
142
142
|
- β [`remove-useless-arguments`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-arguments#readme);
|
|
143
143
|
- β [`remove-useless-return`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-useless-return#readme);
|
|
144
144
|
- β [`remove-useless-spread`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-useless-spread/#readme);
|
|
145
|
-
- β [`remove-useless-variables
|
|
146
|
-
- β [`remove-
|
|
147
|
-
- β [`remove-
|
|
148
|
-
- β [`remove-only`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-tape#remove-only);
|
|
145
|
+
- β [`remove-useless-variables`](https://github.com/coderaiser/putout/tree/v33.13.4/packages/plugin-remove-useless-variables#readme);
|
|
146
|
+
- β [`tape/remove-skip`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-tape#remove-skip);
|
|
147
|
+
- β [`tape/remove-only`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-tape#remove-only);
|
|
149
148
|
- β [`remove-console`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-console#readme);
|
|
150
149
|
- β [`remove-debugger`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-debugger#readme);
|
|
151
150
|
- β [`remove-unreachable-code`](https://github.com/coderaiser/putout/tree/v29.0.0/packages/plugin-remove-unreachable-code#readme);
|
|
@@ -61,12 +61,14 @@ module.exports.filter = ({text, node}) => {
|
|
|
61
61
|
|
|
62
62
|
return regexp.test(text);
|
|
63
63
|
};
|
|
64
|
+
|
|
64
65
|
module.exports.fix = ({text}) => {
|
|
65
66
|
return text
|
|
66
67
|
.replace(/\[/g, '[\n')
|
|
67
68
|
.replace(/\]/g, '\n]')
|
|
68
69
|
.replace(/,/g, ',\n');
|
|
69
70
|
};
|
|
71
|
+
|
|
70
72
|
module.exports.include = () => [
|
|
71
73
|
'ArrayExpression',
|
|
72
74
|
];
|
package/lib/index.js
CHANGED
|
@@ -119,8 +119,6 @@ const safeRules = {
|
|
|
119
119
|
'remove-unreachable-code': 'off',
|
|
120
120
|
'remove-useless-arguments': 'off',
|
|
121
121
|
'remove-useless-variables': 'off',
|
|
122
|
-
'remove-useless-variables/declaration': 'off',
|
|
123
|
-
'remove-useless-variables/rename': 'off',
|
|
124
122
|
'remove-useless-return': 'off',
|
|
125
123
|
'remove-useless-spread': 'off',
|
|
126
124
|
'remove-unreferenced-variables': 'off',
|
package/lib/ts.js
CHANGED
|
@@ -22,6 +22,9 @@ const extensionRules = {
|
|
|
22
22
|
'@stylistic/js/padding-line-between-statements': 'off',
|
|
23
23
|
'@stylistic/ts/padding-line-between-statements': convertPaddingLines(rules['@stylistic/js/padding-line-between-statements']),
|
|
24
24
|
|
|
25
|
+
'@stylistic/js/object-curly-spacing': 'off',
|
|
26
|
+
'@stylistic/ts/object-curly-spacing': rules['@stylistic/js/object-curly-spacing'],
|
|
27
|
+
|
|
25
28
|
'@stylistic/js/semi': 'off',
|
|
26
29
|
'@stylistic/ts/semi': rules['@stylistic/js/semi'],
|
|
27
30
|
|
|
@@ -70,6 +73,10 @@ module.exports = [
|
|
|
70
73
|
ts, {
|
|
71
74
|
...ts,
|
|
72
75
|
...jsx,
|
|
76
|
+
rules: {
|
|
77
|
+
...ts.rules,
|
|
78
|
+
...jsx.rules,
|
|
79
|
+
},
|
|
73
80
|
plugins: [
|
|
74
81
|
...ts.plugins,
|
|
75
82
|
...jsx.plugins,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-putout",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.9.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "ESLint plugin for πPutout",
|
|
6
6
|
"release": false,
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@eslint/eslintrc": "^3.0.0",
|
|
44
44
|
"@putout/engine-parser": "^10.0.0",
|
|
45
45
|
"@putout/eslint": "^3.0.0",
|
|
46
|
-
"@putout/eslint-config": "^
|
|
47
|
-
"@stylistic/eslint-plugin-jsx": "^1.0
|
|
48
|
-
"@stylistic/eslint-plugin-ts": "^1.0
|
|
46
|
+
"@putout/eslint-config": "^9.0.0",
|
|
47
|
+
"@stylistic/eslint-plugin-jsx": "^2.1.0",
|
|
48
|
+
"@stylistic/eslint-plugin-ts": "^2.1.0",
|
|
49
49
|
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
50
50
|
"@typescript-eslint/parser": "^7.0.1",
|
|
51
51
|
"align-spaces": "^1.0.0",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/plugin-syntax-typescript": "^8.0.0-alpha.1",
|
|
62
62
|
"@putout/plugin-eslint-plugin": "*",
|
|
63
|
-
"@putout/test": "^
|
|
63
|
+
"@putout/test": "^10.0.0",
|
|
64
64
|
"c8": "^9.0.0",
|
|
65
65
|
"eslint": "^9.0.0",
|
|
66
|
-
"eslint-plugin-eslint-plugin": "^
|
|
66
|
+
"eslint-plugin-eslint-plugin": "^6.1.0",
|
|
67
67
|
"madrun": "^10.0.0",
|
|
68
68
|
"mocha": "^10.0.0",
|
|
69
69
|
"montag": "^1.0.0",
|