@newsteam/eslint-config 1.2.15 → 1.2.17

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 (150) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -52
  4. package/dist/plugins/sort-react-dependency-arrays.d.ts +3 -2
  5. package/dist/plugins/sort-react-dependency-arrays.d.ts.map +1 -1
  6. package/dist/plugins/sort-react-dependency-arrays.js +95 -18
  7. package/dist/rules/array-function.d.ts +3 -0
  8. package/dist/rules/array-function.d.ts.map +1 -0
  9. package/dist/rules/array-function.js +56 -0
  10. package/dist/rules/css-modules.d.ts +3 -0
  11. package/dist/rules/css-modules.d.ts.map +1 -0
  12. package/dist/rules/css-modules.js +27 -0
  13. package/dist/rules/destructuring.d.ts +3 -0
  14. package/dist/rules/destructuring.d.ts.map +1 -0
  15. package/dist/rules/destructuring.js +39 -0
  16. package/dist/rules/eslint-comments.d.ts +3 -0
  17. package/dist/rules/eslint-comments.d.ts.map +1 -0
  18. package/dist/rules/eslint-comments.js +77 -0
  19. package/dist/rules/import-newlines.d.ts +3 -0
  20. package/dist/rules/import-newlines.d.ts.map +1 -0
  21. package/dist/rules/import-newlines.js +26 -0
  22. package/dist/rules/import-x.d.ts +3 -0
  23. package/dist/rules/import-x.d.ts.map +1 -0
  24. package/dist/rules/import-x.js +420 -0
  25. package/dist/{rules.d.ts → rules/index.d.ts} +1 -1
  26. package/dist/rules/index.d.ts.map +1 -0
  27. package/dist/{rules.js → rules/index.js} +51 -1
  28. package/dist/rules/next.d.ts +3 -0
  29. package/dist/rules/next.d.ts.map +1 -0
  30. package/dist/rules/next.js +140 -0
  31. package/dist/rules/no-unsanitized.d.ts +3 -0
  32. package/dist/rules/no-unsanitized.d.ts.map +1 -0
  33. package/dist/rules/no-unsanitized.js +38 -0
  34. package/dist/rules/no-useless-assign.d.ts +3 -0
  35. package/dist/rules/no-useless-assign.d.ts.map +1 -0
  36. package/dist/rules/no-useless-assign.js +20 -0
  37. package/dist/rules/node.d.ts +3 -0
  38. package/dist/rules/node.d.ts.map +1 -0
  39. package/dist/rules/node.js +305 -0
  40. package/dist/rules/perfectionist.d.ts +3 -0
  41. package/dist/rules/perfectionist.d.ts.map +1 -0
  42. package/dist/rules/perfectionist.js +94 -0
  43. package/dist/rules/promise.d.ts +3 -0
  44. package/dist/rules/promise.d.ts.map +1 -0
  45. package/dist/rules/promise.js +123 -0
  46. package/dist/rules/react-19-upgrade.d.ts +3 -0
  47. package/dist/rules/react-19-upgrade.d.ts.map +1 -0
  48. package/dist/rules/react-19-upgrade.js +20 -0
  49. package/dist/rules/react-compiler.d.ts +3 -0
  50. package/dist/rules/react-compiler.d.ts.map +1 -0
  51. package/dist/{plugins → rules}/react-compiler.js +7 -9
  52. package/dist/rules/react-hooks.d.ts +3 -0
  53. package/dist/rules/react-hooks.d.ts.map +1 -0
  54. package/dist/rules/react-hooks.js +163 -0
  55. package/dist/rules/react-perf.d.ts +3 -0
  56. package/dist/rules/react-perf.d.ts.map +1 -0
  57. package/dist/rules/react-perf.js +47 -0
  58. package/dist/rules/react-refresh.d.ts +3 -0
  59. package/dist/rules/react-refresh.d.ts.map +1 -0
  60. package/dist/rules/react-refresh.js +19 -0
  61. package/dist/rules/react.d.ts +3 -0
  62. package/dist/rules/react.d.ts.map +1 -0
  63. package/dist/rules/react.js +740 -0
  64. package/dist/rules/security.d.ts +3 -0
  65. package/dist/rules/security.d.ts.map +1 -0
  66. package/dist/rules/security.js +112 -0
  67. package/dist/rules/sort-react-dependency-arrays.d.ts +3 -0
  68. package/dist/rules/sort-react-dependency-arrays.d.ts.map +1 -0
  69. package/dist/rules/sort-react-dependency-arrays.js +12 -0
  70. package/dist/rules/stylistic.d.ts +3 -0
  71. package/dist/rules/stylistic.d.ts.map +1 -0
  72. package/dist/rules/stylistic.js +916 -0
  73. package/dist/rules/typescript.d.ts +3 -0
  74. package/dist/rules/typescript.d.ts.map +1 -0
  75. package/dist/{plugins → rules}/typescript.js +2 -1
  76. package/dist/rules/unicorn.d.ts +3 -0
  77. package/dist/rules/unicorn.d.ts.map +1 -0
  78. package/dist/rules/unicorn.js +998 -0
  79. package/dist/test/index.d.ts +2 -0
  80. package/dist/test/index.d.ts.map +1 -0
  81. package/dist/test/index.js +15 -0
  82. package/package.json +11 -13
  83. package/dist/plugins/array-function.d.ts +0 -3
  84. package/dist/plugins/array-function.d.ts.map +0 -1
  85. package/dist/plugins/array-function.js +0 -58
  86. package/dist/plugins/css-modules.d.ts +0 -3
  87. package/dist/plugins/css-modules.d.ts.map +0 -1
  88. package/dist/plugins/css-modules.js +0 -19
  89. package/dist/plugins/destructuring.d.ts +0 -3
  90. package/dist/plugins/destructuring.d.ts.map +0 -1
  91. package/dist/plugins/destructuring.js +0 -41
  92. package/dist/plugins/eslint-comments.d.ts +0 -3
  93. package/dist/plugins/eslint-comments.d.ts.map +0 -1
  94. package/dist/plugins/eslint-comments.js +0 -79
  95. package/dist/plugins/import-newlines.d.ts +0 -3
  96. package/dist/plugins/import-newlines.d.ts.map +0 -1
  97. package/dist/plugins/import-newlines.js +0 -28
  98. package/dist/plugins/import-x.d.ts +0 -3
  99. package/dist/plugins/import-x.d.ts.map +0 -1
  100. package/dist/plugins/import-x.js +0 -418
  101. package/dist/plugins/newline-destructuring.d.ts +0 -3
  102. package/dist/plugins/newline-destructuring.d.ts.map +0 -1
  103. package/dist/plugins/newline-destructuring.js +0 -26
  104. package/dist/plugins/next.d.ts +0 -3
  105. package/dist/plugins/next.d.ts.map +0 -1
  106. package/dist/plugins/next.js +0 -142
  107. package/dist/plugins/no-unsanitized.d.ts +0 -3
  108. package/dist/plugins/no-unsanitized.d.ts.map +0 -1
  109. package/dist/plugins/no-unsanitized.js +0 -40
  110. package/dist/plugins/no-useless-assign.d.ts +0 -3
  111. package/dist/plugins/no-useless-assign.d.ts.map +0 -1
  112. package/dist/plugins/no-useless-assign.js +0 -22
  113. package/dist/plugins/node.d.ts +0 -3
  114. package/dist/plugins/node.d.ts.map +0 -1
  115. package/dist/plugins/node.js +0 -307
  116. package/dist/plugins/perfectionist.d.ts +0 -3
  117. package/dist/plugins/perfectionist.d.ts.map +0 -1
  118. package/dist/plugins/perfectionist.js +0 -96
  119. package/dist/plugins/promise.d.ts +0 -3
  120. package/dist/plugins/promise.d.ts.map +0 -1
  121. package/dist/plugins/promise.js +0 -125
  122. package/dist/plugins/react-19-upgrade.d.ts +0 -3
  123. package/dist/plugins/react-19-upgrade.d.ts.map +0 -1
  124. package/dist/plugins/react-19-upgrade.js +0 -22
  125. package/dist/plugins/react-compiler.d.ts +0 -3
  126. package/dist/plugins/react-compiler.d.ts.map +0 -1
  127. package/dist/plugins/react-hooks.d.ts +0 -3
  128. package/dist/plugins/react-hooks.d.ts.map +0 -1
  129. package/dist/plugins/react-hooks.js +0 -165
  130. package/dist/plugins/react-perf.d.ts +0 -3
  131. package/dist/plugins/react-perf.d.ts.map +0 -1
  132. package/dist/plugins/react-perf.js +0 -49
  133. package/dist/plugins/react-refresh.d.ts +0 -3
  134. package/dist/plugins/react-refresh.d.ts.map +0 -1
  135. package/dist/plugins/react-refresh.js +0 -21
  136. package/dist/plugins/react.d.ts +0 -3
  137. package/dist/plugins/react.d.ts.map +0 -1
  138. package/dist/plugins/react.js +0 -738
  139. package/dist/plugins/security.d.ts +0 -3
  140. package/dist/plugins/security.d.ts.map +0 -1
  141. package/dist/plugins/security.js +0 -114
  142. package/dist/plugins/stylistic.d.ts +0 -3
  143. package/dist/plugins/stylistic.d.ts.map +0 -1
  144. package/dist/plugins/stylistic.js +0 -901
  145. package/dist/plugins/typescript.d.ts +0 -3
  146. package/dist/plugins/typescript.d.ts.map +0 -1
  147. package/dist/plugins/unicorn.d.ts +0 -3
  148. package/dist/plugins/unicorn.d.ts.map +0 -1
  149. package/dist/plugins/unicorn.js +0 -994
  150. package/dist/rules.d.ts.map +0 -1
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import style from "./index.module.css";
2
+ console.log(style.yellow);
3
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- acceptable for the test
4
+ const useCallback = (callee, deps) => {
5
+ console.log(callee, deps);
6
+ };
7
+ const aVariable = "a";
8
+ const bVariable = "b";
9
+ // eslint-disable-next-line react-hooks/rules-of-hooks -- acceptable for the test
10
+ useCallback(() => {
11
+ console.log("WTf");
12
+ }, [
13
+ aVariable,
14
+ bVariable,
15
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -52,21 +52,19 @@
52
52
  "dist"
53
53
  ],
54
54
  "dependencies": {
55
+ "@bhollis/eslint-plugin-css-modules": "^1.0.0",
55
56
  "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
56
57
  "@eslint/compat": "2.0.2",
57
- "@eslint/js": "^10.0.1",
58
58
  "@next/eslint-plugin-next": "16.1.6",
59
- "@stylistic/eslint-plugin": "5.8.0",
59
+ "@stylistic/eslint-plugin": "5.9.0",
60
60
  "confusing-browser-globals": "1.0.11",
61
61
  "eslint-import-resolver-node": "0.3.9",
62
62
  "eslint-import-resolver-typescript": "4.4.4",
63
63
  "eslint-plugin-array-func": "5.1.0",
64
- "eslint-plugin-css-modules": "2.12.0",
65
64
  "eslint-plugin-destructuring": "2.2.1",
66
- "eslint-plugin-import-newlines": "1.4.0",
65
+ "eslint-plugin-import-newlines": "2.0.0",
67
66
  "eslint-plugin-import-x": "4.16.1",
68
- "eslint-plugin-newline-destructuring": "1.2.2",
69
- "eslint-plugin-no-unsanitized": "4.1.4",
67
+ "eslint-plugin-no-unsanitized": "4.1.5",
70
68
  "eslint-plugin-no-useless-assign": "1.0.3",
71
69
  "eslint-plugin-node": "11.1.0",
72
70
  "eslint-plugin-perfectionist": "5.6.0",
@@ -77,18 +75,18 @@
77
75
  "eslint-plugin-react-hooks": "7.0.1",
78
76
  "eslint-plugin-react-perf": "3.3.3",
79
77
  "eslint-plugin-react-refresh": "0.5.0",
80
- "eslint-plugin-security": "3.0.1",
81
- "eslint-plugin-sort-react-dependency-arrays": "1.0.0",
78
+ "eslint-plugin-security": "4.0.0",
82
79
  "eslint-plugin-unicorn": "63.0.0",
83
80
  "globals": "17.3.0",
84
81
  "typescript-eslint": "8.56.0"
85
82
  },
86
83
  "peerDependencies": {
87
- "eslint": ">= 9.35.0"
84
+ "eslint": ">= 10.0.0"
88
85
  },
89
86
  "devDependencies": {
90
87
  "@types/eslint-plugin-security": "3.0.1",
91
- "@types/node": "25.2.3",
92
- "eslint": "9.39.2"
88
+ "@types/node": "25.3.0",
89
+ "@typescript-eslint/utils": "^8.56.0",
90
+ "eslint": "10.0.0"
93
91
  }
94
- }
92
+ }
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const arrayFuncPlugin: Linter.Config[];
3
- //# sourceMappingURL=array-function.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"array-function.d.ts","sourceRoot":"","sources":["../../src/plugins/array-function.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EA0D1C,CAAC"}
@@ -1,58 +0,0 @@
1
- import arrayFunc from "eslint-plugin-array-func";
2
- /*
3
- * Rules for Array functions and methods.
4
- *
5
- * https://www.npmjs.com/package/eslint-plugin-array-func
6
- */
7
- export const arrayFuncPlugin = [
8
- {
9
- plugins: {
10
- "array-func": arrayFunc,
11
- },
12
- rules: {
13
- /*
14
- * Avoid reversing the array and running a method on it if there is an
15
- * equivalent of the method operating on the array from the other end.
16
- *
17
- * https://www.npmjs.com/package/eslint-plugin-array-func#avoid-reverse
18
- */
19
- "array-func/avoid-reverse": "warn",
20
- /*
21
- * Prefer using the mapFn callback of Array.from over an immediate
22
- * .map() call on the Array.from result.
23
- *
24
- * https://www.npmjs.com/package/eslint-plugin-array-func#from-map
25
- */
26
- "array-func/from-map": "warn",
27
- /*
28
- * Avoid the this parameter when providing arrow function as callback
29
- * in array functions.
30
- *
31
- * https://www.npmjs.com/package/eslint-plugin-array-func#no-unnecessary-this-arg
32
- */
33
- "array-func/no-unnecessary-this-arg": "warn",
34
- /*
35
- * Use Array.from instead of [...iterable] for performance benefits.
36
- *
37
- * Off for now, performance benefits probably don't warrant the irritation
38
- *
39
- * https://www.npmjs.com/package/eslint-plugin-array-func#prefer-array-from
40
- */
41
- "array-func/prefer-array-from": "off",
42
- /*
43
- * Use .flat() to flatten an array of arrays. This rule currently
44
- * recognizes two patterns and can replace them with a .flat() call.
45
- *
46
- * https://www.npmjs.com/package/eslint-plugin-array-func#prefer-flat
47
- */
48
- "array-func/prefer-flat": "warn",
49
- /*
50
- * Use .flatMap() to flatten an array and map the values instead of
51
- * using .flat().map().
52
- *
53
- * https://www.npmjs.com/package/eslint-plugin-array-func#prefer-flat-map
54
- */
55
- "array-func/prefer-flat-map": "warn",
56
- },
57
- },
58
- ];
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const cssModulesPlugin: Linter.Config[];
3
- //# sourceMappingURL=css-modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"css-modules.d.ts","sourceRoot":"","sources":["../../src/plugins/css-modules.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAUrC,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAU3C,CAAC"}
@@ -1,19 +0,0 @@
1
- import cssModules from "eslint-plugin-css-modules";
2
- /*
3
- * This plugin intends to help you in tracking down problems when you are using css-modules.
4
- * It tells if you are using a non-existent css/scss/less class in js or if you forgot to
5
- * use some classes which you declared in css/scss/less.
6
- *
7
- * https://www.npmjs.com/package/eslint-plugin-css-modules
8
- */
9
- export const cssModulesPlugin = [
10
- {
11
- plugins: {
12
- "css-modules": cssModules,
13
- },
14
- rules: {
15
- "css-modules/no-undef-class": ["warn"],
16
- "css-modules/no-unused-class": ["warn"],
17
- },
18
- },
19
- ];
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const destructuringPlugin: Linter.Config[];
3
- //# sourceMappingURL=destructuring.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destructuring.d.ts","sourceRoot":"","sources":["../../src/plugins/destructuring.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EA0C9C,CAAC"}
@@ -1,41 +0,0 @@
1
- import destructuring from "eslint-plugin-destructuring";
2
- /*
3
- * Destructuring-specific linting rules for ESLint.
4
- *
5
- * https://www.npmjs.com/package/eslint-plugin-destructuring
6
- */
7
- export const destructuringPlugin = [
8
- {
9
- plugins: {
10
- destructuring,
11
- },
12
- rules: {
13
- /*
14
- * Destructuring within params of a method can be messy, unreadable and moreover you loose an
15
- * opportunity of giving a name to the param. This rule allows you to ban destructuring of
16
- * params in method declarations.
17
- *
18
- * https://github.com/lukeapage/eslint-plugin-destructuring/blob/HEAD/docs/rules/in-methods-params.md
19
- */
20
- "destructuring/in-methods-params": "warn",
21
- /*
22
- * Destructuring within params can be messy, particularly if you have more than one parameter.
23
- * This rule allows you to configure the maximum parameters allowed when one or more is destructuring.
24
- *
25
- * https://github.com/lukeapage/eslint-plugin-destructuring/blob/HEAD/docs/rules/in-params.md
26
- */
27
- "destructuring/in-params": ["warn", { "max-params": 0 }],
28
- /*
29
- * When destructuring an object, you can provide the variable name in order to have
30
- * the variable name differ from the object property. This can produce confusing code
31
- * that is harder to read than ES5 code, therefore this rule prevents it unless the
32
- * object property is an invalid identifier (ie. a string literal).
33
- *
34
- * Off because we like renaming when destructuring
35
- *
36
- * https://github.com/lukeapage/eslint-plugin-destructuring/blob/HEAD/docs/rules/no-rename.md
37
- */
38
- "destructuring/no-rename": "off",
39
- },
40
- },
41
- ];
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const eslintCommentsPlugin: Linter.Config[];
3
- //# sourceMappingURL=eslint-comments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint-comments.d.ts","sourceRoot":"","sources":["../../src/plugins/eslint-comments.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAiF/C,CAAC"}
@@ -1,79 +0,0 @@
1
- import eslintComments from "@eslint-community/eslint-plugin-eslint-comments";
2
- /*
3
- * Additional ESLint rules for ESLint directive comments
4
- * (e.g. //eslint-disable-line).
5
- *
6
- * https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/
7
- */
8
- export const eslintCommentsPlugin = [
9
- {
10
- plugins: {
11
- "eslint-comments": eslintComments,
12
- },
13
- rules: {
14
- /*
15
- * Require a eslint-enable comment for every eslint-disable comment
16
- *
17
- * https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
18
- */
19
- "eslint-comments/disable-enable-pair": "warn",
20
- /*
21
- * Disallow a eslint-enable comment for multiple eslint-disable comments
22
- *
23
- * https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
24
- */
25
- "eslint-comments/no-aggregating-enable": "warn",
26
- /*
27
- * Disallow duplicate eslint-disable comments
28
- *
29
- * https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
30
- */
31
- "eslint-comments/no-duplicate-disable": "warn",
32
- /*
33
- * Disallow eslint-disable comments without rule names
34
- *
35
- * https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
36
- */
37
- "eslint-comments/no-restricted-disable": "warn",
38
- /*
39
- * Disallow eslint-disable comments about specific rules
40
- *
41
- * https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
42
- */
43
- "eslint-comments/no-unlimited-disable": "warn",
44
- /*
45
- * Disallow unused eslint-disable comments
46
- *
47
- * https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
48
- */
49
- "eslint-comments/no-unused-disable": "warn",
50
- /*
51
- * Disallow unused eslint-enable comments
52
- *
53
- * https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
54
- */
55
- "eslint-comments/no-unused-enable": "warn",
56
- /*
57
- * Disallow ESLint directive-comments
58
- *
59
- * Off for now because sometimes we have a good reason to use these
60
- *
61
- * https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-use.html
62
- */
63
- "eslint-comments/no-use": "off",
64
- /*
65
- * This rule warns directive comments without description.
66
- *
67
- * https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/require-description.html
68
- */
69
- "eslint-comments/require-description": [
70
- "warn",
71
- {
72
- ignore: [
73
- "eslint-enable",
74
- ],
75
- },
76
- ],
77
- },
78
- },
79
- ];
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const importNewlinesPlugin: Linter.Config[];
3
- //# sourceMappingURL=import-newlines.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import-newlines.d.ts","sourceRoot":"","sources":["../../src/plugins/import-newlines.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAuB/C,CAAC"}
@@ -1,28 +0,0 @@
1
- import importNewlines from "eslint-plugin-import-newlines";
2
- /*
3
- * ESLint plugin for enforcing newlines in ES6 import statements past a certain number of items.
4
- *
5
- * https://www.npmjs.com/package/eslint-plugin-import-newlines
6
- */
7
- export const importNewlinesPlugin = [
8
- {
9
- plugins: {
10
- "import-newlines": importNewlines,
11
- },
12
- rules: {
13
- /*
14
- * ESLint plugin for enforcing newlines in ES6 import statements past a certain number of items.
15
- *
16
- * https://www.npmjs.com/package/eslint-plugin-import-newlines
17
- */
18
- "import-newlines/enforce": [
19
- "warn",
20
- {
21
- items: 1,
22
- "max-len": Number.POSITIVE_INFINITY,
23
- semi: true,
24
- },
25
- ],
26
- },
27
- },
28
- ];
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const importXPlugin: Linter.Config[];
3
- //# sourceMappingURL=import-x.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import-x.d.ts","sourceRoot":"","sources":["../../src/plugins/import-x.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAER,MAAM,EACT,MAAM,QAAQ,CAAC;AAGhB,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EA2fxC,CAAC"}