eslint-plugin-putout 15.8.0 → 16.0.1
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 +21 -21
- package/lib/index.js +5 -4
- package/lib/markdown.js +9 -8
- package/lib/no-unresolved/index.js +1 -1
- package/lib/putout/index.js +1 -0
- package/lib/tape-remove-newline-before-t-end/README.md +1 -1
- package/lib/wrap.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ Then configure the rules you want to use under the rules section.
|
|
|
77
77
|
|
|
78
78
|
- ✅ [add newline before assertion](/packages/eslint-plugin-putout/lib/tape-add-newline-before-assertion#readme)
|
|
79
79
|
- ✅ [add newline between tests](/packages/eslint-plugin-putout/lib/tape-add-newline-between-tests#readme)
|
|
80
|
-
- ✅ [remove newline before t.end()](/packages/eslint-plugin-putout/lib/tape-remove-newline-before-t-end#readme)
|
|
80
|
+
- ✅ [remove newline before `t.end()`](/packages/eslint-plugin-putout/lib/tape-remove-newline-before-t-end#readme)
|
|
81
81
|
|
|
82
82
|
### TypeScript
|
|
83
83
|
|
|
@@ -132,29 +132,29 @@ When using 🐊**Putout** in IDE with `--fix` on save, or when you want to disab
|
|
|
132
132
|
|
|
133
133
|
Disabled **ESLint** rules:
|
|
134
134
|
|
|
135
|
-
- [`no-useless-return`](https://eslint.org/docs/rules/no-useless-return#readme)
|
|
136
|
-
- [`putout/remove-newline-from-empty-object`](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout/lib/remove-newline-from-empty-object#readme)
|
|
135
|
+
- ❌ [`no-useless-return`](https://eslint.org/docs/rules/no-useless-return#readme)
|
|
136
|
+
- ❌ [`putout/remove-newline-from-empty-object`](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout/lib/remove-newline-from-empty-object#readme)
|
|
137
137
|
|
|
138
138
|
Disabled 🐊**Putout** rules:
|
|
139
139
|
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
-
-
|
|
143
|
-
-
|
|
144
|
-
-
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
140
|
+
- ❌ [`remove-empty`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-remove-empty#readme);
|
|
141
|
+
- ❌ [`nodejs/remove-process-exit`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-nodejs#remove-process-exit#readme);
|
|
142
|
+
- ❌ [`remove-unused-variables`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-remove-unused-variables#readme);
|
|
143
|
+
- ❌ [`typescript/remove-unused-types`](https://github.com/coderaiser/putout/tree/v24.0.2/packages/plugin-typescript#remove-unused-types#readme);
|
|
144
|
+
- ❌ [`remove-unused-for-of-variables`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-remove-unused-for-of-variables#readme);
|
|
145
|
+
- ❌ [`remove-unused-expressions`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-removeunused-expressions#readme);
|
|
146
|
+
- ❌ [`remove-unreferenced-variables`](https://github.com/coderaiser/putout/tree/24.1.0/packages/plugin-remove-unreferenced-variables#readme);
|
|
147
|
+
- ❌ [`remove-useless-arguments`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-arguments#readme);
|
|
148
|
+
- ❌ [`remove-useless-for-of`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-for-of#readme);
|
|
149
|
+
- ❌ [`remove-useless-return`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-return#readme);
|
|
150
|
+
- ❌ [`remove-useless-spread`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-spread/#readme#readme);
|
|
151
|
+
- ❌ [`remove-useless-variables/rename`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-arguments#rename#readme);
|
|
152
|
+
- ❌ [`remove-skip`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-tape#remove-skip);
|
|
153
|
+
- ❌ [`remove-only`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-tape#remove-only);
|
|
154
|
+
- ❌ [`remove-console`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-remove-console#readme);
|
|
155
|
+
- ❌ [`remove-debugger`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-remove-debugger#readme);
|
|
156
|
+
- ❌ [`remove-unreachable-code`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-remove-unreachable-code#readme);
|
|
157
|
+
- ❌ [`convert-for-to-for-of`](https://github.com/coderaiser/putout/tree/v24.0.0/packages/plugin-convert-for-to-for-of#readme);
|
|
158
158
|
|
|
159
159
|
### safe+align
|
|
160
160
|
|
package/lib/index.js
CHANGED
|
@@ -93,9 +93,10 @@ const recommended = {
|
|
|
93
93
|
'putout/nonblock-statement-body-newline': 'error',
|
|
94
94
|
'putout/putout': 'error',
|
|
95
95
|
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
96
|
+
'n/no-unsupported-features/es-syntax': 'off',
|
|
97
|
+
'n/no-missing-import': 'off',
|
|
98
|
+
'n/no-missing-require': 'off',
|
|
99
|
+
'n/no-process-exit': 'off',
|
|
99
100
|
},
|
|
100
101
|
overrides: [
|
|
101
102
|
...markdown,
|
|
@@ -105,7 +106,7 @@ const recommended = {
|
|
|
105
106
|
...ts,
|
|
106
107
|
],
|
|
107
108
|
plugins: [
|
|
108
|
-
'
|
|
109
|
+
'n',
|
|
109
110
|
],
|
|
110
111
|
};
|
|
111
112
|
|
package/lib/markdown.js
CHANGED
|
@@ -10,14 +10,15 @@ const commonRules = {
|
|
|
10
10
|
'eol-last': 'off',
|
|
11
11
|
'no-unreachable': 'off',
|
|
12
12
|
'no-constant-condition': 'off',
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
13
|
+
'n/no-extraneous-require': 'off',
|
|
14
|
+
'n/no-extraneous-import': 'off',
|
|
15
|
+
'n/no-unpublished-require': 'off',
|
|
16
|
+
'n/no-unpublished-import': 'off',
|
|
17
|
+
'n/no-missing-require': 'off',
|
|
18
|
+
'n/no-missing-import': 'off',
|
|
19
|
+
'n/no-unsupported-features/es-syntax': 'off',
|
|
20
|
+
'n/no-unsupported-features/n-builtins': 'off',
|
|
21
|
+
'n/no-process-exit': 'off',
|
|
21
22
|
};
|
|
22
23
|
const parserOptions = {
|
|
23
24
|
requireConfigFile: false,
|
package/lib/putout/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# remove-newline-before-t-end
|
|
2
2
|
|
|
3
|
-
Remove newline before `t.end()`, for [
|
|
3
|
+
Remove newline before `t.end()`, for 📼[**Supertape**](https://github.com/coderaiser/supertape).
|
|
4
4
|
Part of [`eslint-plugin-putout`](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout#rules).
|
|
5
5
|
|
|
6
6
|
## ❌ Example of incorrect code
|
package/lib/wrap.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-putout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "ESLint plugin for 🐊Putout",
|
|
6
6
|
"release": false,
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
44
44
|
"@typescript-eslint/parser": "^5.4.0",
|
|
45
45
|
"align-spaces": "^1.0.0",
|
|
46
|
-
"eslint-plugin-
|
|
46
|
+
"eslint-plugin-n": "^15.2.4",
|
|
47
47
|
"try-catch": "^3.0.0",
|
|
48
48
|
"typescript": "^4.5.2"
|
|
49
49
|
},
|