@eienjs/eslint-config 1.2.1 → 1.3.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 (76) hide show
  1. package/dist/cli/constants.js +74 -0
  2. package/dist/cli/constants_generated.js +13 -0
  3. package/dist/cli/index.d.ts +1 -1
  4. package/dist/cli/index.js +3 -268
  5. package/dist/cli/run.js +77 -0
  6. package/dist/cli/stages/update_eslint_files.js +41 -0
  7. package/dist/cli/stages/update_package_json.js +46 -0
  8. package/dist/cli/stages/update_vscode_settings.js +30 -0
  9. package/dist/cli/utils.js +23 -0
  10. package/dist/configs/adonisjs.d.ts +6 -0
  11. package/dist/configs/adonisjs.js +115 -0
  12. package/dist/configs/astro.d.ts +6 -0
  13. package/dist/configs/astro.js +52 -0
  14. package/dist/configs/command.d.ts +6 -0
  15. package/dist/configs/command.js +12 -0
  16. package/dist/configs/comments.d.ts +6 -0
  17. package/dist/configs/comments.js +19 -0
  18. package/dist/configs/disables.d.ts +6 -0
  19. package/dist/configs/disables.js +85 -0
  20. package/dist/configs/formatters.d.ts +6 -0
  21. package/dist/configs/formatters.js +134 -0
  22. package/dist/configs/ignores.d.ts +6 -0
  23. package/dist/configs/ignores.js +12 -0
  24. package/dist/configs/imports.d.ts +6 -0
  25. package/dist/configs/imports.js +28 -0
  26. package/dist/configs/index.d.ts +25 -95
  27. package/dist/configs/index.js +25 -1
  28. package/dist/configs/javascript.d.ts +6 -0
  29. package/dist/configs/javascript.js +289 -0
  30. package/dist/configs/jsdoc.d.ts +6 -0
  31. package/dist/configs/jsdoc.js +34 -0
  32. package/dist/configs/jsonc.d.ts +6 -0
  33. package/dist/configs/jsonc.js +71 -0
  34. package/dist/configs/markdown.d.ts +6 -0
  35. package/dist/configs/markdown.js +67 -0
  36. package/dist/configs/node.d.ts +6 -0
  37. package/dist/configs/node.js +22 -0
  38. package/dist/configs/nuxt.d.ts +6 -0
  39. package/dist/configs/nuxt.js +137 -0
  40. package/dist/configs/perfectionist.d.ts +12 -0
  41. package/dist/configs/perfectionist.js +56 -0
  42. package/dist/configs/pnpm.d.ts +6 -0
  43. package/dist/configs/pnpm.js +33 -0
  44. package/dist/configs/regexp.d.ts +6 -0
  45. package/dist/configs/regexp.js +21 -0
  46. package/dist/configs/sort.d.ts +18 -0
  47. package/dist/configs/sort.js +239 -0
  48. package/dist/configs/stylistic.d.ts +8 -0
  49. package/dist/configs/stylistic.js +76 -0
  50. package/dist/configs/test.d.ts +6 -0
  51. package/dist/configs/test.js +42 -0
  52. package/dist/configs/toml.d.ts +6 -0
  53. package/dist/configs/toml.js +45 -0
  54. package/dist/configs/typescript.d.ts +6 -0
  55. package/dist/configs/typescript.js +213 -0
  56. package/dist/configs/unicorn.d.ts +6 -0
  57. package/dist/configs/unicorn.js +42 -0
  58. package/dist/configs/vue.d.ts +6 -0
  59. package/dist/configs/vue.js +206 -0
  60. package/dist/configs/yaml.d.ts +6 -0
  61. package/dist/configs/yaml.js +83 -0
  62. package/dist/factory.d.ts +17 -0
  63. package/dist/factory.js +161 -0
  64. package/dist/globs.d.ts +32 -0
  65. package/dist/globs.js +89 -0
  66. package/dist/index.d.ts +5 -85
  67. package/dist/index.js +3 -133
  68. package/dist/package.js +5 -0
  69. package/dist/plugins.js +9 -0
  70. package/dist/{types-CThb4-OB.d.ts → typegen.d.ts} +353 -703
  71. package/dist/types.d.ts +404 -0
  72. package/dist/utils.d.ts +42 -0
  73. package/dist/utils.js +62 -0
  74. package/dist/vendored/prettier_types.d.ts +121 -0
  75. package/package.json +31 -24
  76. package/dist/configs-tpIJYMDE.js +0 -2189
@@ -1,3 +1,27 @@
1
- import { StylisticConfigDefaults, adonisjs, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, nuxt, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml } from "../configs-tpIJYMDE.js";
1
+ import { adonisjs } from "./adonisjs.js";
2
+ import { astro } from "./astro.js";
3
+ import { command } from "./command.js";
4
+ import { comments } from "./comments.js";
5
+ import { disables } from "./disables.js";
6
+ import { StylisticConfigDefaults, stylistic } from "./stylistic.js";
7
+ import { formatters } from "./formatters.js";
8
+ import { ignores } from "./ignores.js";
9
+ import { imports } from "./imports.js";
10
+ import { javascript } from "./javascript.js";
11
+ import { jsdoc } from "./jsdoc.js";
12
+ import { jsonc } from "./jsonc.js";
13
+ import { markdown } from "./markdown.js";
14
+ import { node } from "./node.js";
15
+ import { nuxt } from "./nuxt.js";
16
+ import { perfectionist } from "./perfectionist.js";
17
+ import { pnpm } from "./pnpm.js";
18
+ import { regexp } from "./regexp.js";
19
+ import { sortPackageJson, sortTsconfig } from "./sort.js";
20
+ import { test } from "./test.js";
21
+ import { toml } from "./toml.js";
22
+ import { typescript } from "./typescript.js";
23
+ import { unicorn } from "./unicorn.js";
24
+ import { vue } from "./vue.js";
25
+ import { yaml } from "./yaml.js";
2
26
 
3
27
  export { StylisticConfigDefaults, adonisjs, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, nuxt, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml };
@@ -0,0 +1,6 @@
1
+ import { OptionsIsInEditor, OptionsOverrides, TypedFlatConfigItem } from "../types.js";
2
+
3
+ //#region src/configs/javascript.d.ts
4
+ declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): TypedFlatConfigItem[];
5
+ //#endregion
6
+ export { javascript };
@@ -0,0 +1,289 @@
1
+ import { pluginAntfu, pluginUnusedImports } from "../plugins.js";
2
+ import globals from "globals";
3
+
4
+ //#region src/configs/javascript.ts
5
+ function javascript(options = {}) {
6
+ const { isInEditor = false, overrides = {} } = options;
7
+ return [{
8
+ languageOptions: {
9
+ ecmaVersion: "latest",
10
+ globals: {
11
+ ...globals.browser,
12
+ ...globals.es2025,
13
+ ...globals.node,
14
+ document: "readonly",
15
+ navigator: "readonly",
16
+ window: "readonly"
17
+ },
18
+ parserOptions: {
19
+ ecmaVersion: "latest",
20
+ sourceType: "module"
21
+ },
22
+ sourceType: "module"
23
+ },
24
+ linterOptions: { reportUnusedDisableDirectives: true },
25
+ name: "eienjs/javascript/setup"
26
+ }, {
27
+ name: "eienjs/javascript/rules",
28
+ plugins: {
29
+ "antfu": pluginAntfu,
30
+ "unused-imports": pluginUnusedImports
31
+ },
32
+ rules: {
33
+ "accessor-pairs": ["error", {
34
+ enforceForClassMembers: true,
35
+ setWithoutGet: true
36
+ }],
37
+ "antfu/no-top-level-await": "error",
38
+ "array-callback-return": ["error", {
39
+ allowImplicit: true,
40
+ checkForEach: true
41
+ }],
42
+ "block-scoped-var": "error",
43
+ "constructor-super": "error",
44
+ "curly": "error",
45
+ "default-case-last": "error",
46
+ "dot-notation": ["error", { allowKeywords: true }],
47
+ "eqeqeq": ["error", "smart"],
48
+ "logical-assignment-operators": ["error", "never"],
49
+ "new-cap": ["error", {
50
+ capIsNew: false,
51
+ newIsCap: true,
52
+ properties: true
53
+ }],
54
+ "no-alert": "error",
55
+ "no-array-constructor": "error",
56
+ "no-async-promise-executor": "error",
57
+ "no-caller": "error",
58
+ "no-case-declarations": "error",
59
+ "no-class-assign": "error",
60
+ "no-compare-neg-zero": "error",
61
+ "no-cond-assign": ["error", "always"],
62
+ "no-console": ["error", { allow: [
63
+ "warn",
64
+ "error",
65
+ "info",
66
+ "table"
67
+ ] }],
68
+ "no-constant-binary-expression": "error",
69
+ "no-const-assign": "error",
70
+ "no-control-regex": "error",
71
+ "no-debugger": "error",
72
+ "no-delete-var": "error",
73
+ "no-dupe-args": "error",
74
+ "no-dupe-class-members": "error",
75
+ "no-dupe-keys": "error",
76
+ "no-duplicate-case": "error",
77
+ "no-else-return": ["error", { allowElseIf: false }],
78
+ "no-empty": ["error", { allowEmptyCatch: true }],
79
+ "no-empty-character-class": "error",
80
+ "no-empty-pattern": "error",
81
+ "no-eval": "error",
82
+ "no-ex-assign": "error",
83
+ "no-extend-native": "error",
84
+ "no-extra-bind": "error",
85
+ "no-extra-boolean-cast": "error",
86
+ "no-extra-label": "error",
87
+ "no-fallthrough": "error",
88
+ "no-func-assign": "error",
89
+ "no-global-assign": "error",
90
+ "no-implicit-coercion": "error",
91
+ "no-implied-eval": "error",
92
+ "no-import-assign": "error",
93
+ "no-invalid-regexp": "error",
94
+ "no-irregular-whitespace": "error",
95
+ "no-iterator": "error",
96
+ "no-labels": ["error", {
97
+ allowLoop: false,
98
+ allowSwitch: false
99
+ }],
100
+ "no-lone-blocks": "error",
101
+ "no-loss-of-precision": "error",
102
+ "no-misleading-character-class": "error",
103
+ "no-multi-str": "error",
104
+ "no-negated-condition": "error",
105
+ "no-new": "error",
106
+ "no-new-func": "error",
107
+ "no-new-native-nonconstructor": "error",
108
+ "no-new-wrappers": "error",
109
+ "no-obj-calls": "error",
110
+ "no-octal": "error",
111
+ "no-octal-escape": "error",
112
+ "no-promise-executor-return": "error",
113
+ "no-proto": "error",
114
+ "no-prototype-builtins": "error",
115
+ "no-redeclare": ["error", { builtinGlobals: false }],
116
+ "no-regex-spaces": "error",
117
+ "no-restricted-globals": [
118
+ "error",
119
+ {
120
+ message: "Use `globalThis` instead.",
121
+ name: "global"
122
+ },
123
+ {
124
+ message: "Use `globalThis` instead.",
125
+ name: "self"
126
+ }
127
+ ],
128
+ "no-restricted-properties": [
129
+ "error",
130
+ {
131
+ message: "Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",
132
+ property: "__proto__"
133
+ },
134
+ {
135
+ message: "Use `Object.defineProperty` instead.",
136
+ property: "__defineGetter__"
137
+ },
138
+ {
139
+ message: "Use `Object.defineProperty` instead.",
140
+ property: "__defineSetter__"
141
+ },
142
+ {
143
+ message: "Use `Object.getOwnPropertyDescriptor` instead.",
144
+ property: "__lookupGetter__"
145
+ },
146
+ {
147
+ message: "Use `Object.getOwnPropertyDescriptor` instead.",
148
+ property: "__lookupSetter__"
149
+ },
150
+ {
151
+ message: "Please use Number.isFinite instead",
152
+ object: "global",
153
+ property: "isFinite"
154
+ },
155
+ {
156
+ message: "Please use Number.isFinite instead",
157
+ object: "self",
158
+ property: "isFinite"
159
+ },
160
+ {
161
+ message: "Please use Number.isFinite instead",
162
+ object: "window",
163
+ property: "isFinite"
164
+ },
165
+ {
166
+ message: "Please use Number.isNaN instead",
167
+ object: "global",
168
+ property: "isNaN"
169
+ },
170
+ {
171
+ message: "Please use Number.isNaN instead",
172
+ object: "self",
173
+ property: "isNaN"
174
+ },
175
+ {
176
+ message: "Please use Number.isNaN instead",
177
+ object: "window",
178
+ property: "isNaN"
179
+ }
180
+ ],
181
+ "no-restricted-syntax": [
182
+ "error",
183
+ "TSEnumDeclaration[const=true]",
184
+ "TSExportAssignment"
185
+ ],
186
+ "no-return-assign": ["error", "always"],
187
+ "no-self-assign": ["error", { props: true }],
188
+ "no-self-compare": "error",
189
+ "no-sequences": ["error", { allowInParentheses: false }],
190
+ "no-shadow-restricted-names": "error",
191
+ "no-sparse-arrays": "error",
192
+ "no-this-before-super": "error",
193
+ "no-throw-literal": "error",
194
+ "no-undef": "error",
195
+ "no-undef-init": "error",
196
+ "no-unexpected-multiline": "error",
197
+ "no-unmodified-loop-condition": "error",
198
+ "no-unneeded-ternary": ["error", { defaultAssignment: false }],
199
+ "no-unreachable": "error",
200
+ "no-unreachable-loop": "error",
201
+ "no-unsafe-finally": "error",
202
+ "no-unsafe-negation": "error",
203
+ "no-unused-expressions": ["error", {
204
+ allowShortCircuit: true,
205
+ allowTaggedTemplates: true,
206
+ allowTernary: true
207
+ }],
208
+ "no-unused-vars": ["error", {
209
+ args: "none",
210
+ caughtErrors: "none",
211
+ ignoreRestSiblings: true,
212
+ vars: "all"
213
+ }],
214
+ "no-use-before-define": ["error", {
215
+ classes: false,
216
+ functions: false,
217
+ variables: true
218
+ }],
219
+ "no-useless-backreference": "error",
220
+ "no-useless-call": "error",
221
+ "no-useless-catch": "error",
222
+ "no-useless-computed-key": "error",
223
+ "no-useless-constructor": "error",
224
+ "no-useless-rename": "error",
225
+ "no-useless-return": "error",
226
+ "no-var": "error",
227
+ "no-void": ["error", { allowAsStatement: true }],
228
+ "no-with": "error",
229
+ "object-shorthand": [
230
+ "error",
231
+ "always",
232
+ {
233
+ avoidQuotes: true,
234
+ ignoreConstructors: false
235
+ }
236
+ ],
237
+ "one-var": ["error", { initialized: "never" }],
238
+ "operator-assignment": ["error", "always"],
239
+ "prefer-arrow-callback": "off",
240
+ "prefer-const": [isInEditor ? "warn" : "error", {
241
+ destructuring: "all",
242
+ ignoreReadBeforeAssign: true
243
+ }],
244
+ "prefer-destructuring": [
245
+ "error",
246
+ {
247
+ AssignmentExpression: {
248
+ array: false,
249
+ object: false
250
+ },
251
+ VariableDeclarator: {
252
+ array: false,
253
+ object: true
254
+ }
255
+ },
256
+ { enforceForRenamedProperties: false }
257
+ ],
258
+ "prefer-exponentiation-operator": "error",
259
+ "prefer-object-has-own": "error",
260
+ "prefer-object-spread": "error",
261
+ "prefer-promise-reject-errors": "error",
262
+ "prefer-regex-literals": ["error", { disallowRedundantWrapping: true }],
263
+ "prefer-rest-params": "error",
264
+ "prefer-spread": "error",
265
+ "prefer-template": "error",
266
+ "symbol-description": "error",
267
+ "unicode-bom": ["error", "never"],
268
+ "unused-imports/no-unused-imports": isInEditor ? "warn" : "error",
269
+ "unused-imports/no-unused-vars": ["error", {
270
+ args: "after-used",
271
+ argsIgnorePattern: "^_",
272
+ ignoreRestSiblings: true,
273
+ vars: "all",
274
+ varsIgnorePattern: "^_"
275
+ }],
276
+ "use-isnan": ["error", {
277
+ enforceForIndexOf: true,
278
+ enforceForSwitchCase: true
279
+ }],
280
+ "valid-typeof": ["error", { requireStringLiterals: true }],
281
+ "vars-on-top": "error",
282
+ "yoda": ["error", "never"],
283
+ ...overrides
284
+ }
285
+ }];
286
+ }
287
+
288
+ //#endregion
289
+ export { javascript };
@@ -0,0 +1,6 @@
1
+ import { OptionsStylistic, TypedFlatConfigItem } from "../types.js";
2
+
3
+ //#region src/configs/jsdoc.d.ts
4
+ declare function jsdoc(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
5
+ //#endregion
6
+ export { jsdoc };
@@ -0,0 +1,34 @@
1
+ import { interopDefault } from "../utils.js";
2
+
3
+ //#region src/configs/jsdoc.ts
4
+ async function jsdoc(options = {}) {
5
+ const { stylistic = true } = options;
6
+ return [{
7
+ name: "eienjs/jsdoc/rules",
8
+ plugins: { jsdoc: await interopDefault(import("eslint-plugin-jsdoc")) },
9
+ rules: {
10
+ "jsdoc/check-access": "warn",
11
+ "jsdoc/check-param-names": "warn",
12
+ "jsdoc/check-property-names": "warn",
13
+ "jsdoc/check-types": "warn",
14
+ "jsdoc/empty-tags": "warn",
15
+ "jsdoc/implements-on-classes": "warn",
16
+ "jsdoc/no-defaults": "warn",
17
+ "jsdoc/no-multi-asterisks": "warn",
18
+ "jsdoc/require-param-name": "warn",
19
+ "jsdoc/require-property": "warn",
20
+ "jsdoc/require-property-description": "warn",
21
+ "jsdoc/require-property-name": "warn",
22
+ "jsdoc/require-returns-check": "warn",
23
+ "jsdoc/require-returns-description": "warn",
24
+ "jsdoc/require-yields-check": "warn",
25
+ ...stylistic ? {
26
+ "jsdoc/check-alignment": "warn",
27
+ "jsdoc/multiline-blocks": "warn"
28
+ } : {}
29
+ }
30
+ }];
31
+ }
32
+
33
+ //#endregion
34
+ export { jsdoc };
@@ -0,0 +1,6 @@
1
+ import { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from "../types.js";
2
+
3
+ //#region src/configs/jsonc.d.ts
4
+ declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
5
+ //#endregion
6
+ export { jsonc };
@@ -0,0 +1,71 @@
1
+ import { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from "../globs.js";
2
+ import { interopDefault } from "../utils.js";
3
+
4
+ //#region src/configs/jsonc.ts
5
+ async function jsonc(options = {}) {
6
+ const { files = [
7
+ GLOB_JSON,
8
+ GLOB_JSON5,
9
+ GLOB_JSONC
10
+ ], overrides = {}, stylistic = true } = options;
11
+ const { indent = 2 } = typeof stylistic === "boolean" ? {} : stylistic;
12
+ const [pluginJsonc, parserJsonc] = await Promise.all([interopDefault(import("eslint-plugin-jsonc")), interopDefault(import("jsonc-eslint-parser"))]);
13
+ return [{
14
+ name: "eienjs/jsonc/setup",
15
+ plugins: { jsonc: pluginJsonc }
16
+ }, {
17
+ files,
18
+ languageOptions: { parser: parserJsonc },
19
+ name: "eienjs/jsonc/rules",
20
+ rules: {
21
+ "jsonc/no-bigint-literals": "error",
22
+ "jsonc/no-binary-expression": "error",
23
+ "jsonc/no-binary-numeric-literals": "error",
24
+ "jsonc/no-dupe-keys": "error",
25
+ "jsonc/no-escape-sequence-in-identifier": "error",
26
+ "jsonc/no-floating-decimal": "error",
27
+ "jsonc/no-hexadecimal-numeric-literals": "error",
28
+ "jsonc/no-infinity": "error",
29
+ "jsonc/no-multi-str": "error",
30
+ "jsonc/no-nan": "error",
31
+ "jsonc/no-number-props": "error",
32
+ "jsonc/no-numeric-separators": "error",
33
+ "jsonc/no-octal": "error",
34
+ "jsonc/no-octal-escape": "error",
35
+ "jsonc/no-octal-numeric-literals": "error",
36
+ "jsonc/no-parenthesized": "error",
37
+ "jsonc/no-plus-sign": "error",
38
+ "jsonc/no-regexp-literals": "error",
39
+ "jsonc/no-sparse-arrays": "error",
40
+ "jsonc/no-template-literals": "error",
41
+ "jsonc/no-undefined-value": "error",
42
+ "jsonc/no-unicode-codepoint-escapes": "error",
43
+ "jsonc/no-useless-escape": "error",
44
+ "jsonc/space-unary-ops": "error",
45
+ "jsonc/valid-json-number": "error",
46
+ "jsonc/vue-custom-block/no-parsing-error": "error",
47
+ ...stylistic ? {
48
+ "jsonc/array-bracket-spacing": ["error", "never"],
49
+ "jsonc/comma-dangle": ["error", "never"],
50
+ "jsonc/comma-style": ["error", "last"],
51
+ "jsonc/indent": ["error", indent],
52
+ "jsonc/key-spacing": ["error", {
53
+ afterColon: true,
54
+ beforeColon: false
55
+ }],
56
+ "jsonc/object-curly-newline": ["error", {
57
+ consistent: true,
58
+ multiline: true
59
+ }],
60
+ "jsonc/object-curly-spacing": ["error", "always"],
61
+ "jsonc/object-property-newline": ["error", { allowAllPropertiesOnSameLine: true }],
62
+ "jsonc/quote-props": "error",
63
+ "jsonc/quotes": "error"
64
+ } : {},
65
+ ...overrides
66
+ }
67
+ }];
68
+ }
69
+
70
+ //#endregion
71
+ export { jsonc };
@@ -0,0 +1,6 @@
1
+ import { OptionsComponentExts, OptionsFiles, OptionsOverrides, TypedFlatConfigItem } from "../types.js";
2
+
3
+ //#region src/configs/markdown.d.ts
4
+ declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
5
+ //#endregion
6
+ export { markdown };
@@ -0,0 +1,67 @@
1
+ import { GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN } from "../globs.js";
2
+ import { interopDefault, parserPlain } from "../utils.js";
3
+ import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
4
+
5
+ //#region src/configs/markdown.ts
6
+ async function markdown(options = {}) {
7
+ const { componentExts = [], files = [GLOB_MARKDOWN], overrides = {} } = options;
8
+ const markdown$1 = await interopDefault(import("@eslint/markdown"));
9
+ return [
10
+ {
11
+ name: "eienjs/markdown/setup",
12
+ plugins: { markdown: markdown$1 }
13
+ },
14
+ {
15
+ files,
16
+ ignores: [GLOB_MARKDOWN_IN_MARKDOWN],
17
+ name: "eienjs/markdown/processor",
18
+ processor: mergeProcessors([markdown$1.processors.markdown, processorPassThrough])
19
+ },
20
+ {
21
+ files,
22
+ languageOptions: { parser: parserPlain },
23
+ name: "eienjs/markdown/parser"
24
+ },
25
+ {
26
+ files: [
27
+ GLOB_MARKDOWN,
28
+ GLOB_MARKDOWN_CODE,
29
+ ...componentExts.map((ext) => `${GLOB_MARKDOWN}/**/*.${ext}`)
30
+ ],
31
+ languageOptions: { parserOptions: { ecmaFeatures: { impliedStrict: true } } },
32
+ name: "eienjs/markdown/disables",
33
+ rules: {
34
+ "antfu/no-top-level-await": "off",
35
+ "no-alert": "off",
36
+ "no-console": "off",
37
+ "no-labels": "off",
38
+ "no-lone-blocks": "off",
39
+ "no-restricted-syntax": "off",
40
+ "no-undef": "off",
41
+ "no-unused-expressions": "off",
42
+ "no-unused-labels": "off",
43
+ "no-unused-vars": "off",
44
+ "unicode-bom": "off",
45
+ "n/prefer-global/process": "off",
46
+ "@stylistic/comma-dangle": "off",
47
+ "@stylistic/eol-last": "off",
48
+ "@stylistic/padding-line-between-statements": "off",
49
+ "@stylistic/max-len": "off",
50
+ "@typescript-eslint/consistent-type-imports": "off",
51
+ "@typescript-eslint/explicit-function-return-type": "off",
52
+ "@typescript-eslint/no-namespace": "off",
53
+ "@typescript-eslint/no-redeclare": "off",
54
+ "@typescript-eslint/no-require-imports": "off",
55
+ "@typescript-eslint/no-unused-expressions": "off",
56
+ "@typescript-eslint/no-unused-vars": "off",
57
+ "@typescript-eslint/no-use-before-define": "off",
58
+ "unused-imports/no-unused-imports": "off",
59
+ "unused-imports/no-unused-vars": "off",
60
+ ...overrides
61
+ }
62
+ }
63
+ ];
64
+ }
65
+
66
+ //#endregion
67
+ export { markdown };
@@ -0,0 +1,6 @@
1
+ import { TypedFlatConfigItem } from "../types.js";
2
+
3
+ //#region src/configs/node.d.ts
4
+ declare function node(): TypedFlatConfigItem[];
5
+ //#endregion
6
+ export { node };
@@ -0,0 +1,22 @@
1
+ import { pluginNode } from "../plugins.js";
2
+
3
+ //#region src/configs/node.ts
4
+ function node() {
5
+ return [{
6
+ name: "eienjs/node/rules",
7
+ plugins: { n: pluginNode },
8
+ rules: {
9
+ "n/handle-callback-err": ["error", "^(err|error)$"],
10
+ "n/no-deprecated-api": "error",
11
+ "n/no-exports-assign": "error",
12
+ "n/no-new-require": "error",
13
+ "n/no-path-concat": "error",
14
+ "n/prefer-global/buffer": ["error", "never"],
15
+ "n/prefer-global/process": ["error", "never"],
16
+ "n/process-exit-as-throw": "error"
17
+ }
18
+ }];
19
+ }
20
+
21
+ //#endregion
22
+ export { node };
@@ -0,0 +1,6 @@
1
+ import { OptionsNuxt, OptionsStylistic, TypedFlatConfigItem } from "../types.js";
2
+
3
+ //#region src/configs/nuxt.d.ts
4
+ declare function nuxt(options?: OptionsNuxt & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
5
+ //#endregion
6
+ export { nuxt };