@paratco/eslint-config 2.3.1 → 3.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 (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +186 -21
  3. package/dist/index.d.ts +20 -3588
  4. package/dist/index.js +2 -14
  5. package/dist/index.js.map +1 -0
  6. package/package.json +40 -27
  7. package/dist/configs/base.d.ts +0 -138
  8. package/dist/configs/base.d.ts.map +0 -1
  9. package/dist/configs/base.js +0 -29
  10. package/dist/configs/import.d.ts +0 -83
  11. package/dist/configs/import.d.ts.map +0 -1
  12. package/dist/configs/import.js +0 -41
  13. package/dist/configs/node.d.ts +0 -221
  14. package/dist/configs/node.d.ts.map +0 -1
  15. package/dist/configs/node.js +0 -7
  16. package/dist/configs/prettierFormatter.d.ts +0 -5
  17. package/dist/configs/prettierFormatter.d.ts.map +0 -1
  18. package/dist/configs/prettierFormatter.js +0 -3
  19. package/dist/configs/react.d.ts +0 -2934
  20. package/dist/configs/react.d.ts.map +0 -1
  21. package/dist/configs/react.js +0 -51
  22. package/dist/configs/stylisticFormatter.d.ts +0 -218
  23. package/dist/configs/stylisticFormatter.d.ts.map +0 -1
  24. package/dist/configs/stylisticFormatter.js +0 -29
  25. package/dist/index.d.ts.map +0 -1
  26. package/dist/rules/import.d.ts +0 -59
  27. package/dist/rules/import.d.ts.map +0 -1
  28. package/dist/rules/import.js +0 -139
  29. package/dist/rules/javascript.d.ts +0 -23
  30. package/dist/rules/javascript.d.ts.map +0 -1
  31. package/dist/rules/javascript.js +0 -42
  32. package/dist/rules/react.d.ts +0 -112
  33. package/dist/rules/react.d.ts.map +0 -1
  34. package/dist/rules/react.js +0 -330
  35. package/dist/rules/stylistic.d.ts +0 -208
  36. package/dist/rules/stylistic.d.ts.map +0 -1
  37. package/dist/rules/stylistic.js +0 -439
  38. package/dist/rules/typescript.d.ts +0 -96
  39. package/dist/rules/typescript.d.ts.map +0 -1
  40. package/dist/rules/typescript.js +0 -254
  41. package/dist/rules/unicorn.d.ts +0 -14
  42. package/dist/rules/unicorn.d.ts.map +0 -1
  43. package/dist/rules/unicorn.js +0 -32
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/configs/react.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMzD,wBA+CE"}
@@ -1,51 +0,0 @@
1
- import globals from "globals";
2
- import baseConfig from "./base.js";
3
- // Plugins
4
- import reactPlugin from "eslint-plugin-react";
5
- import reactHooksPlugin from "eslint-plugin-react-hooks";
6
- import reactRefreshPlugin from "eslint-plugin-react-refresh";
7
- // Custom Rules
8
- import reactRules from "../rules/react.js";
9
- export default [
10
- ...baseConfig,
11
- // Browser Only
12
- { languageOptions: { globals: globals.browser } },
13
- // Enable JSX
14
- { files: ["**/*.tsx"], languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } } },
15
- // React Plugin
16
- {
17
- files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
18
- plugins: {
19
- react: reactPlugin,
20
- "react-hooks": reactHooksPlugin,
21
- "react-refresh": reactRefreshPlugin
22
- },
23
- settings: {
24
- react: {
25
- version: "detect"
26
- }
27
- },
28
- languageOptions: {
29
- parserOptions: {
30
- ecmaFeatures: {
31
- jsx: true
32
- }
33
- },
34
- globals: {
35
- ...globals.serviceworker,
36
- ...globals.browser
37
- }
38
- },
39
- rules: {
40
- ...reactRules,
41
- // ...react.configs.recommended.rules,
42
- ...reactHooksPlugin.configs.recommended.rules,
43
- // Enforce Rules of Hooks
44
- "react-hooks/rules-of-hooks": ["error"],
45
- // Verify the list of the dependencies for Hooks like useEffect and similar
46
- "react-hooks/exhaustive-deps": ["error"],
47
- // React Refresh
48
- "react-refresh/only-export-components": ["warn", { allowConstantExport: true }]
49
- }
50
- }
51
- ];
@@ -1,218 +0,0 @@
1
- declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | {
2
- files: string[];
3
- languageOptions: {
4
- parserOptions: {
5
- ecmaFeatures: {
6
- jsx: boolean;
7
- };
8
- };
9
- };
10
- rules: {
11
- readonly "@stylistic/array-bracket-newline": readonly ["warn"];
12
- readonly "@stylistic/array-bracket-spacing": readonly ["warn"];
13
- readonly "@stylistic/array-element-newline": readonly ["warn", "consistent"];
14
- readonly "@stylistic/arrow-parens": readonly ["warn", "always"];
15
- readonly "@stylistic/arrow-spacing": readonly ["warn"];
16
- readonly "@stylistic/block-spacing": readonly ["warn"];
17
- readonly "@stylistic/brace-style": readonly ["warn", "1tbs"];
18
- readonly "@stylistic/comma-dangle": readonly ["warn"];
19
- readonly "@stylistic/comma-spacing": readonly ["warn"];
20
- readonly "@stylistic/comma-style": readonly ["warn"];
21
- readonly "@stylistic/computed-property-spacing": readonly ["warn"];
22
- readonly "@stylistic/curly-newline": readonly ["warn", "always"];
23
- readonly "@stylistic/dot-location": readonly ["warn", "property"];
24
- readonly "@stylistic/eol-last": readonly ["warn"];
25
- readonly "@stylistic/function-call-spacing": readonly ["warn"];
26
- readonly "@stylistic/function-call-argument-newline": readonly ["warn", "consistent"];
27
- readonly "@stylistic/function-paren-newline": readonly ["warn", "consistent"];
28
- readonly "@stylistic/generator-star-spacing": readonly ["warn"];
29
- readonly "@stylistic/implicit-arrow-linebreak": readonly ["warn"];
30
- readonly "@stylistic/indent": readonly ["warn", 2];
31
- readonly "@stylistic/indent-binary-ops": readonly ["warn", 2];
32
- readonly "@stylistic/jsx-child-element-spacing": readonly ["error"];
33
- readonly "@stylistic/jsx-closing-bracket-location": readonly ["warn"];
34
- readonly "@stylistic/jsx-closing-tag-location": readonly ["warn"];
35
- readonly "@stylistic/jsx-curly-brace-presence": readonly ["warn"];
36
- readonly "@stylistic/jsx-curly-newline": readonly ["warn"];
37
- readonly "@stylistic/jsx-curly-spacing": readonly ["warn"];
38
- readonly "@stylistic/jsx-equals-spacing": readonly ["warn"];
39
- readonly "@stylistic/jsx-first-prop-new-line": readonly ["warn"];
40
- readonly "@stylistic/jsx-function-call-newline": readonly ["warn"];
41
- readonly "@stylistic/jsx-indent": readonly ["warn", 2, {
42
- readonly checkAttributes: true;
43
- readonly indentLogicalExpressions: true;
44
- }];
45
- readonly "@stylistic/jsx-indent-props": readonly ["warn", 2];
46
- readonly "@stylistic/jsx/jsx-max-props-per-line": readonly ["off"];
47
- readonly "@stylistic/jsx-newline": readonly ["off"];
48
- readonly "@stylistic/jsx-one-expression-per-line": readonly ["warn", {
49
- readonly allow: "single-child";
50
- }];
51
- readonly "@stylistic/jsx-pascal-case": readonly ["error"];
52
- readonly "@stylistic/jsx-props-no-multi-spaces": readonly ["warn"];
53
- readonly "@stylistic/jsx-quotes": readonly ["warn"];
54
- readonly "@stylistic/jsx-self-closing-comp": readonly ["warn"];
55
- readonly "@stylistic/jsx-sort-props": readonly ["warn", {
56
- readonly callbacksLast: true;
57
- readonly shorthandFirst: true;
58
- readonly multiline: "last";
59
- readonly noSortAlphabetically: true;
60
- }];
61
- readonly "@stylistic/jsx-tag-spacing": readonly ["warn", {
62
- readonly closingSlash: "never";
63
- readonly beforeSelfClosing: "always";
64
- readonly afterOpening: "never";
65
- readonly beforeClosing: "never";
66
- }];
67
- readonly "@stylistic/jsx-wrap-multilines": readonly ["warn", {
68
- readonly declaration: "parens-new-line";
69
- readonly assignment: "parens-new-line";
70
- readonly return: "parens-new-line";
71
- readonly arrow: "parens-new-line";
72
- readonly condition: "parens-new-line";
73
- readonly logical: "parens-new-line";
74
- readonly prop: "parens-new-line";
75
- }];
76
- readonly "@stylistic/key-spacing": "warn";
77
- readonly "@stylistic/keyword-spacing": "warn";
78
- readonly "@stylistic/line-comment-position": "warn";
79
- readonly "@stylistic/linebreak-style": "warn";
80
- readonly "@stylistic/lines-around-comment": readonly ["warn", {
81
- readonly beforeBlockComment: true;
82
- readonly afterBlockComment: false;
83
- readonly beforeLineComment: true;
84
- readonly afterLineComment: false;
85
- readonly allowBlockStart: true;
86
- readonly allowBlockEnd: true;
87
- readonly allowObjectStart: true;
88
- readonly allowObjectEnd: true;
89
- readonly allowArrayStart: true;
90
- readonly allowArrayEnd: true;
91
- readonly allowClassStart: true;
92
- readonly allowClassEnd: true;
93
- readonly afterHashbangComment: true;
94
- }];
95
- readonly "@stylistic/lines-between-class-members": readonly ["warn", {
96
- readonly enforce: readonly [{
97
- readonly blankLine: "never";
98
- readonly prev: "field";
99
- readonly next: "field";
100
- }, {
101
- readonly blankLine: "always";
102
- readonly prev: "*";
103
- readonly next: "method";
104
- }, {
105
- readonly blankLine: "always";
106
- readonly prev: "method";
107
- readonly next: "*";
108
- }];
109
- }];
110
- readonly "@stylistic/max-len": readonly ["error", {
111
- readonly code: 120;
112
- readonly tabWidth: 2;
113
- readonly comments: 120;
114
- readonly ignoreComments: true;
115
- readonly ignoreTrailingComments: true;
116
- readonly ignoreUrls: true;
117
- readonly ignoreStrings: true;
118
- readonly ignoreTemplateLiterals: true;
119
- readonly ignoreRegExpLiterals: true;
120
- }];
121
- readonly "@stylistic/max-statements-per-line": readonly ["error"];
122
- readonly "@stylistic/member-delimiter-style": readonly ["warn"];
123
- readonly "@stylistic/multiline-comment-style": readonly ["off"];
124
- readonly "@stylistic/multiline-ternary": readonly ["warn", "always-multiline"];
125
- readonly "@stylistic/new-parens": readonly ["warn"];
126
- readonly "@stylistic/newline-per-chained-call": readonly ["warn"];
127
- readonly "@stylistic/no-confusing-arrow": readonly ["warn"];
128
- readonly "@stylistic/no-extra-parens": readonly ["warn"];
129
- readonly "@stylistic/no-extra-semi": readonly ["warn"];
130
- readonly "@stylistic/no-floating-decimal": readonly ["warn"];
131
- readonly "@stylistic/no-mixed-operators": readonly ["error"];
132
- readonly "@stylistic/no-mixed-spaces-and-tabs": readonly ["error"];
133
- readonly "@stylistic/no-multi-spaces": readonly ["warn"];
134
- readonly "@stylistic/no-multiple-empty-lines": readonly ["warn"];
135
- readonly "@stylistic/no-tabs": readonly ["error"];
136
- readonly "@stylistic/no-trailing-spaces": readonly ["warn"];
137
- readonly "@stylistic/no-whitespace-before-property": readonly ["warn"];
138
- readonly "@stylistic/nonblock-statement-body-position": readonly ["warn"];
139
- readonly "@stylistic/object-curly-newline": readonly ["warn", {
140
- readonly consistent: true;
141
- }];
142
- readonly "@stylistic/object-curly-spacing": readonly ["warn"];
143
- readonly "@stylistic/object-property-newline": readonly ["warn", {
144
- readonly allowAllPropertiesOnSameLine: true;
145
- }];
146
- readonly "@stylistic/one-var-declaration-per-line": readonly ["warn"];
147
- readonly "@stylistic/operator-linebreak": readonly ["warn"];
148
- readonly "@stylistic/padded-blocks": readonly ["warn", "never"];
149
- readonly "@stylistic/padding-line-between-statements": readonly ["warn", {
150
- readonly blankLine: "always";
151
- readonly prev: "*";
152
- readonly next: "return";
153
- }, {
154
- readonly blankLine: "always";
155
- readonly prev: "*";
156
- readonly next: "block-like";
157
- }, {
158
- readonly blankLine: "always";
159
- readonly prev: "block-like";
160
- readonly next: "*";
161
- }, {
162
- readonly blankLine: "always";
163
- readonly prev: "case";
164
- readonly next: "case";
165
- }, {
166
- readonly blankLine: "never";
167
- readonly prev: "*";
168
- readonly next: "break";
169
- }, {
170
- readonly blankLine: "always";
171
- readonly prev: "*";
172
- readonly next: "export";
173
- }, {
174
- readonly blankLine: "always";
175
- readonly prev: "*";
176
- readonly next: "interface";
177
- }, {
178
- readonly blankLine: "always";
179
- readonly prev: "interface";
180
- readonly next: "*";
181
- }, {
182
- readonly blankLine: "always";
183
- readonly prev: "*";
184
- readonly next: "class";
185
- }, {
186
- readonly blankLine: "always";
187
- readonly prev: "class";
188
- readonly next: "*";
189
- }];
190
- readonly "@stylistic/quote-props": readonly ["warn", "as-needed"];
191
- readonly "@stylistic/quotes": readonly ["warn"];
192
- readonly "@stylistic/rest-spread-spacing": readonly ["warn"];
193
- readonly "@stylistic/semi": readonly ["warn"];
194
- readonly "@stylistic/semi-spacing": readonly ["warn"];
195
- readonly "@stylistic/semi-style": readonly ["warn"];
196
- readonly "@stylistic/space-before-blocks": readonly ["warn"];
197
- readonly "@stylistic/space-before-function-paren": readonly ["warn", {
198
- readonly anonymous: "always";
199
- readonly named: "never";
200
- readonly asyncArrow: "always";
201
- }];
202
- readonly "@stylistic/space-in-parens": readonly ["warn"];
203
- readonly "@stylistic/space-infix-ops": readonly ["warn"];
204
- readonly "@stylistic/space-unary-ops": readonly ["warn"];
205
- readonly "@stylistic/spaced-comment": readonly ["warn"];
206
- readonly "@stylistic/switch-colon-spacing": readonly ["warn"];
207
- readonly "@stylistic/template-curly-spacing": readonly ["warn"];
208
- readonly "@stylistic/template-tag-spacing": readonly ["warn"];
209
- readonly "@stylistic/type-annotation-spacing": readonly ["warn"];
210
- readonly "@stylistic/type-generic-spacing": readonly ["warn"];
211
- readonly "@stylistic/type-named-tuple-spacing": readonly ["warn"];
212
- readonly "@stylistic/wrap-iife": readonly ["warn", "inside"];
213
- readonly "@stylistic/wrap-regex": readonly ["warn"];
214
- readonly "@stylistic/yield-star-spacing": readonly ["warn", "after"];
215
- };
216
- })[];
217
- export default _default;
218
- //# sourceMappingURL=stylisticFormatter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stylisticFormatter.d.ts","sourceRoot":"","sources":["../../src/configs/stylisticFormatter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBA0BE"}
@@ -1,29 +0,0 @@
1
- import stylistic from "@stylistic/eslint-plugin";
2
- // Custom Rules
3
- import stylisticRules from "../rules/stylistic.js";
4
- export default [
5
- // Stylistic Configs
6
- stylistic.configs.customize({
7
- jsx: true,
8
- arrowParens: true,
9
- blockSpacing: true,
10
- braceStyle: "stroustrup",
11
- commaDangle: "never",
12
- indent: 2,
13
- semi: true,
14
- quotes: "double",
15
- quoteProps: "always"
16
- }),
17
- // Stylistic Rules
18
- {
19
- files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
20
- languageOptions: {
21
- parserOptions: {
22
- ecmaFeatures: {
23
- jsx: true
24
- }
25
- }
26
- },
27
- rules: stylisticRules
28
- }
29
- ];
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAOE"}
@@ -1,59 +0,0 @@
1
- declare const _default: {
2
- readonly "import-x/no-deprecated": readonly ["error"];
3
- readonly "import-x/no-empty-named-blocks": readonly ["warn"];
4
- readonly "import-x/no-extraneous-dependencies": readonly ["error", {
5
- readonly devDependencies: false;
6
- readonly optionalDependencies: false;
7
- readonly peerDependencies: false;
8
- }];
9
- readonly "import-x/no-mutable-exports": readonly ["error"];
10
- readonly "import-x/no-rename-default": readonly ["off"];
11
- readonly "import-x/no-unused-modules": readonly ["off", {
12
- readonly missingExports: true;
13
- }];
14
- readonly "import-x/no-amd": readonly ["error"];
15
- readonly "import-x/no-commonjs": readonly ["error"];
16
- readonly "import-x/no-import-module-exports": readonly ["warn"];
17
- readonly "import-x/no-nodejs-modules": readonly ["off"];
18
- readonly "import-x/unambiguous": readonly ["error"];
19
- readonly "import-x/no-absolute-path": readonly ["warn"];
20
- readonly "import-x/no-cycle": readonly ["error"];
21
- readonly "import-x/no-dynamic-require": readonly ["off"];
22
- readonly "import-x/no-internal-modules": readonly ["off"];
23
- readonly "import-x/no-relative-packages": readonly ["warn"];
24
- readonly "import-x/no-relative-parent-imports": readonly ["off"];
25
- readonly "import-x/no-self-import": readonly ["error"];
26
- readonly "import-x/no-useless-path-segments": readonly ["warn", {
27
- readonly noUselessIndex: true;
28
- }];
29
- readonly "import-x/no-webpack-loader-syntax": readonly ["error"];
30
- readonly "import-x/consistent-type-specifier-style": readonly ["warn", "prefer-top-level"];
31
- readonly "import-x/dynamic-import-chunkname": readonly ["off"];
32
- readonly "import-x/exports-last": readonly ["off"];
33
- readonly "import-x/extensions": readonly ["error", "never"];
34
- readonly "import-x/first": readonly ["warn"];
35
- readonly "import-x/group-exports": readonly ["off"];
36
- readonly "import-x/max-dependencies": readonly ["off"];
37
- readonly "import-x/newline-after-import": readonly ["warn"];
38
- readonly "import-x/no-anonymous-default-export": readonly ["error", {
39
- readonly allowArray: false;
40
- readonly allowArrowFunction: true;
41
- readonly allowAnonymousClass: false;
42
- readonly allowAnonymousFunction: false;
43
- readonly allowCallExpression: true;
44
- readonly allowNew: false;
45
- readonly allowLiteral: false;
46
- readonly allowObject: false;
47
- }];
48
- readonly "import-x/no-default-export": readonly ["off"];
49
- readonly "import-x/no-named-default": readonly ["off"];
50
- readonly "import-x/no-named-export": readonly ["off"];
51
- readonly "import-x/no-namespace": readonly ["warn"];
52
- readonly "import-x/no-unassigned-import": readonly ["error", {
53
- readonly allow: readonly ["**/*.css"];
54
- }];
55
- readonly "import-x/order": readonly ["warn"];
56
- readonly "import-x/prefer-default-export": readonly ["off"];
57
- };
58
- export default _default;
59
- //# sourceMappingURL=import.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../src/rules/import.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA8KW"}
@@ -1,139 +0,0 @@
1
- export default {
2
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-deprecated.md
3
- // Forbid imported names marked with @deprecated documentation tag.
4
- "import-x/no-deprecated": ["error"],
5
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-empty-named-blocks.md
6
- // Forbid empty named import blocks.
7
- "import-x/no-empty-named-blocks": ["warn"],
8
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
9
- // Forbid the use of extraneous packages.
10
- "import-x/no-extraneous-dependencies": [
11
- "error",
12
- { devDependencies: false, optionalDependencies: false, peerDependencies: false }
13
- ],
14
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-mutable-exports.md
15
- // Forbid the use of mutable exports with var or let.
16
- "import-x/no-mutable-exports": ["error"],
17
- // https://github.com/un-ts/eslint-plugin-import-x/blob/HEAD/docs/rules/no-rename-default.md
18
- // Prohibit importing a default export by another name.
19
- "import-x/no-rename-default": ["off"],
20
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unused-modules.md
21
- // Forbid modules without exports, or exports without matching import in another module.
22
- // TODO: Can be enabled
23
- "import-x/no-unused-modules": ["off", { missingExports: true }],
24
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-amd.md
25
- // Forbid AMD require and define calls.
26
- "import-x/no-amd": ["error"],
27
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-commonjs.md
28
- // Forbid CommonJS require calls and module.exports or exports.*.
29
- "import-x/no-commonjs": ["error"],
30
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-import-module-exports.md
31
- // Forbid import statements with CommonJS module.exports.
32
- "import-x/no-import-module-exports": ["warn"],
33
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-nodejs-modules.md
34
- // Forbid Node.js builtin modules.
35
- // TODO: Can enable for front-end
36
- "import-x/no-nodejs-modules": ["off"],
37
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/unambiguous.md
38
- // Forbid potentially ambiguous parse goal (script vs. module).
39
- "import-x/unambiguous": ["error"],
40
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-absolute-path.md
41
- // Forbid import of modules using absolute paths.
42
- "import-x/no-absolute-path": ["warn"],
43
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-cycle.md
44
- // Forbid a module from importing a module with a dependency path back to itself.
45
- "import-x/no-cycle": ["error"],
46
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-dynamic-require.md
47
- // Forbid require() calls with expressions.
48
- "import-x/no-dynamic-require": ["off"],
49
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-internal-modules.md
50
- // Forbid importing the submodules of other modules.
51
- // TODO: Must define in the project
52
- "import-x/no-internal-modules": ["off"],
53
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-packages.md
54
- // Forbid importing packages through relative paths.
55
- "import-x/no-relative-packages": ["warn"],
56
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-parent-imports.md
57
- // Forbid importing modules from parent directories.
58
- "import-x/no-relative-parent-imports": ["off"],
59
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md
60
- // Enforce which files can be imported in a given folder.
61
- // TODO: Can be customized
62
- // "import-x/no-restricted-paths": ["off"],
63
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-self-import.md
64
- // Forbid a module from importing itself.
65
- "import-x/no-self-import": ["error"],
66
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-useless-path-segments.md
67
- // Forbid unnecessary path segments in import and require statements.
68
- "import-x/no-useless-path-segments": [
69
- "warn",
70
- {
71
- noUselessIndex: true
72
- }
73
- ],
74
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-webpack-loader-syntax.md
75
- // Forbid webpack loader syntax in imports.
76
- "import-x/no-webpack-loader-syntax": ["error"],
77
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.md
78
- // Enforce or ban the use of inline type-only markers for named imports.
79
- "import-x/consistent-type-specifier-style": ["warn", "prefer-top-level"],
80
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/dynamic-import-chunkname.md
81
- // Enforce a leading comment with the webpackChunkName for dynamic imports.
82
- "import-x/dynamic-import-chunkname": ["off"],
83
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/exports-last.md
84
- // Ensure all exports appear after other statements.
85
- // TODO: Can be enabled
86
- "import-x/exports-last": ["off"],
87
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/extensions.md
88
- // Ensure consistent use of file extension within the import path.
89
- "import-x/extensions": ["error", "never"],
90
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/first.md
91
- // Ensure all imports appear before other statements.
92
- "import-x/first": ["warn"],
93
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/group-exports.md
94
- // Prefer named exports to be grouped together in a single export declaration
95
- // TODO: Can be enabled
96
- "import-x/group-exports": ["off"],
97
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/max-dependencies.md
98
- // Enforce the maximum number of dependencies a module can have.
99
- "import-x/max-dependencies": ["off"],
100
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/newline-after-import.md
101
- // Enforce a newline after import statements.
102
- "import-x/newline-after-import": ["warn"],
103
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-anonymous-default-export.md
104
- // Forbid anonymous values as default exports.
105
- "import-x/no-anonymous-default-export": [
106
- "error",
107
- {
108
- allowArray: false,
109
- allowArrowFunction: true,
110
- allowAnonymousClass: false,
111
- allowAnonymousFunction: false,
112
- allowCallExpression: true, // The true value here is for backward compatibility
113
- allowNew: false,
114
- allowLiteral: false,
115
- allowObject: false
116
- }
117
- ],
118
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-default-export.md
119
- // Forbid default exports.
120
- "import-x/no-default-export": ["off"],
121
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-default.md
122
- // Forbid named default exports.
123
- "import-x/no-named-default": ["off"],
124
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-export.md
125
- // Forbid named exports.
126
- "import-x/no-named-export": ["off"],
127
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-namespace.md
128
- // Forbid namespace (a.k.a. "wildcard" *) imports.
129
- "import-x/no-namespace": ["warn"],
130
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unassigned-import.md
131
- // Forbid unassigned imports
132
- "import-x/no-unassigned-import": ["error", { allow: ["**/*.css"] }],
133
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md
134
- // Enforce a convention in module import order.
135
- "import-x/order": ["warn"],
136
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/prefer-default-export.md
137
- // Prefer a default export if module exports a single name or multiple names.
138
- "import-x/prefer-default-export": ["off"]
139
- };
@@ -1,23 +0,0 @@
1
- declare const _default: {
2
- readonly eqeqeq: readonly ["warn"];
3
- readonly curly: readonly ["warn", "all"];
4
- readonly "no-restricted-imports": readonly ["error", {
5
- readonly patterns: readonly [{
6
- readonly regex: "^(node:)?process$";
7
- readonly message: "Please dont import node:process.";
8
- }];
9
- }];
10
- readonly "no-unused-vars": readonly ["error", {
11
- readonly args: "all";
12
- readonly argsIgnorePattern: "^_";
13
- readonly caughtErrors: "all";
14
- readonly caughtErrorsIgnorePattern: "^_";
15
- readonly destructuredArrayIgnorePattern: "^_";
16
- readonly ignoreRestSiblings: true;
17
- }];
18
- readonly "no-fallthrough": readonly ["error", {
19
- readonly allowEmptyCase: true;
20
- }];
21
- };
22
- export default _default;
23
- //# sourceMappingURL=javascript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../src/rules/javascript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,wBA6CW"}
@@ -1,42 +0,0 @@
1
- export default {
2
- // https://eslint.org/docs/latest/rules/eqeqeq
3
- // Require the use of === and !==
4
- eqeqeq: ["warn"],
5
- // https://eslint.org/docs/latest/rules/curly
6
- // Enforce consistent brace style for all control statements
7
- curly: ["warn", "all"],
8
- // https://eslint.org/docs/latest/rules/no-restricted-imports
9
- // Disallow specified modules when loaded by import
10
- "no-restricted-imports": [
11
- "error",
12
- {
13
- patterns: [
14
- {
15
- regex: "^(node:)?process$",
16
- message: "Please dont import node:process."
17
- }
18
- ]
19
- }
20
- ],
21
- // https://eslint.org/docs/latest/rules/no-unused-vars
22
- // Disallow unused variables
23
- "no-unused-vars": [
24
- "error",
25
- {
26
- args: "all",
27
- argsIgnorePattern: "^_",
28
- caughtErrors: "all",
29
- caughtErrorsIgnorePattern: "^_",
30
- destructuredArrayIgnorePattern: "^_",
31
- ignoreRestSiblings: true
32
- }
33
- ],
34
- // https://eslint.org/docs/latest/rules/no-fallthrough
35
- // Disallow fallthrough of case statements
36
- "no-fallthrough": [
37
- "error",
38
- {
39
- allowEmptyCase: true
40
- }
41
- ]
42
- };