eslint-plugin-putout 29.3.0 → 30.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/README.md +0 -1
- package/eslint-v10/babel.js +5 -7
- package/eslint-v10/ts.js +5 -6
- package/lib/add-newline-after-function-call/index.js +6 -7
- package/lib/add-newline-before-function-call/index.js +5 -6
- package/lib/add-newline-before-return/index.js +4 -6
- package/lib/add-newlines-between-specifiers/index.js +5 -7
- package/lib/add-newlines-between-types-in-union/index.js +6 -7
- package/lib/align-spaces/index.js +5 -6
- package/lib/array-element-newline/index.js +6 -7
- package/lib/common.js +4 -4
- package/lib/destructuring-as-function-argument/index.js +5 -7
- package/lib/evaluate/index.js +10 -8
- package/lib/for-of-multiple-properties-destructuring/index.js +5 -7
- package/lib/function-declaration-paren-newline/index.js +4 -6
- package/lib/{index.mjs → index.js} +6 -7
- package/lib/{json.mjs → json.js} +1 -1
- package/lib/long-properties-destructuring/index.js +7 -8
- package/lib/{markdown.mjs → markdown.js} +2 -2
- package/lib/multiple-properties-destructuring/index.js +11 -12
- package/lib/newline-function-call-arguments/index.js +4 -6
- package/lib/nonblock-statement-body-newline/index.js +5 -6
- package/lib/object-property-newline/index.js +7 -9
- package/lib/objects-braces-inside-array/index.js +7 -7
- package/lib/plugin.js +68 -0
- package/lib/putout/index.js +4 -4
- package/lib/putout/parse-error.js +1 -3
- package/lib/remove-duplicate-extensions/index.js +5 -7
- package/lib/remove-empty-newline-after-import/index.js +2 -3
- package/lib/remove-empty-newline-after-last-element/index.js +5 -7
- package/lib/remove-empty-newline-after-last-specifier/index.js +5 -7
- package/lib/remove-empty-newline-before-first-specifier/index.js +5 -7
- package/lib/remove-empty-newline-between-declarations/index.js +3 -3
- package/lib/remove-empty-specifiers/index.js +5 -7
- package/lib/remove-newline-after-default-import/index.js +5 -7
- package/lib/remove-newline-from-empty-object/index.js +6 -7
- package/lib/single-property-destructuring/index.js +6 -8
- package/lib/tape-add-newline-before-assertion/index.js +5 -7
- package/lib/tape-add-newline-between-tests/index.js +5 -7
- package/lib/tape-remove-newline-before-t-end/index.js +6 -8
- package/lib/{ts.mjs → ts.js} +2 -2
- package/package.json +6 -10
- package/lib/no-unresolved/index.js +0 -81
- package/lib/plugin.mjs +0 -47
- /package/lib/{html.mjs → html.js} +0 -0
- /package/lib/{jsx.mjs → jsx.js} +0 -0
- /package/lib/putout/{sync.mjs → sync.js} +0 -0
package/lib/plugin.mjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import {createRequire} from 'node:module';
|
|
2
|
-
import {createPlugin} from '@putout/eslint/create-plugin';
|
|
3
|
-
|
|
4
|
-
const require = createRequire(import.meta.url);
|
|
5
|
-
|
|
6
|
-
const getRule = (a) => ({
|
|
7
|
-
[a]: require(`./${a}`),
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
const getWrapRule = (a) => ({
|
|
11
|
-
[a]: createPlugin(require(`./${a}`)),
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
export const rules = {
|
|
15
|
-
...getWrapRule('array-element-newline'),
|
|
16
|
-
...getWrapRule('single-property-destructuring'),
|
|
17
|
-
...getWrapRule('multiple-properties-destructuring'),
|
|
18
|
-
...getWrapRule('for-of-multiple-properties-destructuring'),
|
|
19
|
-
...getWrapRule('long-properties-destructuring'),
|
|
20
|
-
...getWrapRule('destructuring-as-function-argument'),
|
|
21
|
-
...getWrapRule('align-spaces'),
|
|
22
|
-
...getWrapRule('newline-function-call-arguments'),
|
|
23
|
-
...getWrapRule('function-declaration-paren-newline'),
|
|
24
|
-
...getWrapRule('add-newlines-between-types-in-union'),
|
|
25
|
-
...getWrapRule('add-newlines-between-specifiers'),
|
|
26
|
-
...getWrapRule('add-newline-before-return'),
|
|
27
|
-
...getWrapRule('add-newline-before-function-call'),
|
|
28
|
-
...getWrapRule('add-newline-after-function-call'),
|
|
29
|
-
...getWrapRule('remove-newline-after-default-import'),
|
|
30
|
-
...getWrapRule('remove-newline-from-empty-object'),
|
|
31
|
-
...getWrapRule('remove-empty-newline-before-first-specifier'),
|
|
32
|
-
...getWrapRule('remove-empty-newline-after-last-specifier'),
|
|
33
|
-
...getWrapRule('remove-empty-newline-after-last-element'),
|
|
34
|
-
...getWrapRule('remove-empty-specifiers'),
|
|
35
|
-
...getWrapRule('objects-braces-inside-array'),
|
|
36
|
-
...getWrapRule('object-property-newline'),
|
|
37
|
-
...getWrapRule('no-unresolved'),
|
|
38
|
-
...getWrapRule('remove-duplicate-extensions'),
|
|
39
|
-
...getWrapRule('evaluate'),
|
|
40
|
-
...getWrapRule('tape-add-newline-before-assertion'),
|
|
41
|
-
...getWrapRule('tape-add-newline-between-tests'),
|
|
42
|
-
...getWrapRule('tape-remove-newline-before-t-end'),
|
|
43
|
-
...getWrapRule('nonblock-statement-body-newline'),
|
|
44
|
-
...getRule('putout'),
|
|
45
|
-
...getRule('remove-empty-newline-after-import'),
|
|
46
|
-
...getRule('remove-empty-newline-between-declarations'),
|
|
47
|
-
};
|
|
File without changes
|
/package/lib/{jsx.mjs → jsx.js}
RENAMED
|
File without changes
|
|
File without changes
|