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