@lichthagel/eslint-config 1.0.33 → 1.0.35
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/dist/index.cjs +18 -13
- package/dist/index.d.cts +953 -194
- package/dist/index.d.mts +953 -194
- package/dist/index.mjs +12 -7
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -25,17 +25,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
27
|
let globals = require("globals");
|
|
28
|
-
globals = __toESM(globals);
|
|
28
|
+
globals = __toESM(globals, 1);
|
|
29
29
|
let _eslint_js = require("@eslint/js");
|
|
30
|
-
_eslint_js = __toESM(_eslint_js);
|
|
30
|
+
_eslint_js = __toESM(_eslint_js, 1);
|
|
31
31
|
let eslint_plugin_perfectionist = require("eslint-plugin-perfectionist");
|
|
32
|
-
eslint_plugin_perfectionist = __toESM(eslint_plugin_perfectionist);
|
|
32
|
+
eslint_plugin_perfectionist = __toESM(eslint_plugin_perfectionist, 1);
|
|
33
33
|
let _stylistic_eslint_plugin = require("@stylistic/eslint-plugin");
|
|
34
|
-
_stylistic_eslint_plugin = __toESM(_stylistic_eslint_plugin);
|
|
34
|
+
_stylistic_eslint_plugin = __toESM(_stylistic_eslint_plugin, 1);
|
|
35
35
|
let typescript_eslint = require("typescript-eslint");
|
|
36
|
-
typescript_eslint = __toESM(typescript_eslint);
|
|
36
|
+
typescript_eslint = __toESM(typescript_eslint, 1);
|
|
37
37
|
let eslint_plugin_unicorn = require("eslint-plugin-unicorn");
|
|
38
|
-
eslint_plugin_unicorn = __toESM(eslint_plugin_unicorn);
|
|
38
|
+
eslint_plugin_unicorn = __toESM(eslint_plugin_unicorn, 1);
|
|
39
39
|
//#region src/configs/browser.ts
|
|
40
40
|
var browser_default = [{
|
|
41
41
|
name: "lichthagel/browser",
|
|
@@ -198,7 +198,8 @@ var javascript_default = [{
|
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region src/configs/node.ts
|
|
200
200
|
const node = async () => {
|
|
201
|
-
|
|
201
|
+
const { default: pluginN } = await import("eslint-plugin-n");
|
|
202
|
+
return [pluginN.configs["flat/recommended-module"], {
|
|
202
203
|
name: "lichthagel/node",
|
|
203
204
|
languageOptions: { globals: { ...globals.default.node } },
|
|
204
205
|
rules: {
|
|
@@ -254,7 +255,7 @@ var perfectionist_default = [{
|
|
|
254
255
|
//#region src/configs/solid.ts
|
|
255
256
|
const solid = async (options = {}) => {
|
|
256
257
|
const { withTypescript = false } = options;
|
|
257
|
-
const configSolid = await import("eslint-plugin-solid/configs/recommended")
|
|
258
|
+
const { default: configSolid } = await import("eslint-plugin-solid/configs/recommended");
|
|
258
259
|
return [{
|
|
259
260
|
name: "solid/recommended",
|
|
260
261
|
files: ["**/*.jsx", ...withTypescript ? ["**/*.tsx"] : []],
|
|
@@ -346,7 +347,8 @@ var stylistic_default = [{
|
|
|
346
347
|
const SVELTE_FILES = ["**/*.svelte"];
|
|
347
348
|
const svelte = async (options = {}) => {
|
|
348
349
|
const { disableStylistic = false, withTypescript = false } = options;
|
|
349
|
-
|
|
350
|
+
const { default: pluginSvelte } = await import("eslint-plugin-svelte");
|
|
351
|
+
return [...pluginSvelte.configs["flat/recommended"].map((configItem) => ({
|
|
350
352
|
name: "svelte/recommended",
|
|
351
353
|
...configItem
|
|
352
354
|
})), {
|
|
@@ -398,18 +400,19 @@ const svelte = async (options = {}) => {
|
|
|
398
400
|
"svelte/require-store-callbacks-use-set-param": "error",
|
|
399
401
|
"svelte/spaced-html-comment": ["error", "always"],
|
|
400
402
|
"svelte/valid-each-key": "error",
|
|
401
|
-
...disableStylistic
|
|
403
|
+
...disableStylistic && {
|
|
402
404
|
"@stylistic/indent": "off",
|
|
403
405
|
"@stylistic/indent-binary-ops": "off",
|
|
404
406
|
"@stylistic/no-trailing-spaces": "off"
|
|
405
|
-
}
|
|
407
|
+
}
|
|
406
408
|
}
|
|
407
409
|
}];
|
|
408
410
|
};
|
|
409
411
|
//#endregion
|
|
410
412
|
//#region src/configs/tailwindcss.ts
|
|
411
413
|
const tailwindcss = async () => {
|
|
412
|
-
|
|
414
|
+
const { default: pluginTailwind } = await import("eslint-plugin-tailwindcss");
|
|
415
|
+
return [...pluginTailwind.configs["flat/recommended"].map((config) => {
|
|
413
416
|
var _config$name;
|
|
414
417
|
return {
|
|
415
418
|
...config,
|
|
@@ -465,7 +468,9 @@ var unicorn_default = [{
|
|
|
465
468
|
"unicorn/import-style": "off",
|
|
466
469
|
"unicorn/no-null": "off",
|
|
467
470
|
"unicorn/no-useless-undefined": ["error", { checkArguments: false }],
|
|
468
|
-
"unicorn/prevent-abbreviations": "off"
|
|
471
|
+
"unicorn/prevent-abbreviations": "off",
|
|
472
|
+
"unicorn/comment-content": "off",
|
|
473
|
+
"unicorn/consistent-boolean-name": "off"
|
|
469
474
|
}
|
|
470
475
|
}];
|
|
471
476
|
//#endregion
|