@kasoa/eslint-config 0.0.21 → 0.0.23
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/base/index.d.ts.map +1 -1
- package/dist/base/typescript-eslint.d.ts.map +1 -1
- package/dist/base/typescript-eslint.js +3 -1
- package/dist/eslint.config.d.ts +2 -0
- package/dist/eslint.config.d.ts.map +1 -0
- package/dist/eslint.config.js +1 -0
- package/dist/src/base/eslint.d.ts +2 -0
- package/dist/src/base/eslint.d.ts.map +1 -0
- package/dist/src/base/eslint.js +22 -0
- package/dist/src/base/import-lite.d.ts +2 -0
- package/dist/src/base/import-lite.d.ts.map +1 -0
- package/dist/src/base/import-lite.js +8 -0
- package/dist/src/base/index.d.ts +2 -0
- package/dist/src/base/index.d.ts.map +1 -0
- package/dist/src/base/index.js +13 -0
- package/dist/src/base/perfectionist.d.ts +3 -0
- package/dist/src/base/perfectionist.d.ts.map +1 -0
- package/dist/src/base/perfectionist.js +52 -0
- package/dist/src/base/regexp.d.ts +2 -0
- package/dist/src/base/regexp.d.ts.map +1 -0
- package/dist/src/base/regexp.js +3 -0
- package/dist/src/base/sonarjs.d.ts +2 -0
- package/dist/src/base/sonarjs.d.ts.map +1 -0
- package/dist/src/base/sonarjs.js +9 -0
- package/dist/src/base/typescript-eslint.d.ts +2 -0
- package/dist/src/base/typescript-eslint.d.ts.map +1 -0
- package/dist/src/base/typescript-eslint.js +48 -0
- package/dist/src/base/unicorn-x.d.ts +2 -0
- package/dist/src/base/unicorn-x.d.ts.map +1 -0
- package/dist/src/base/unicorn-x.js +10 -0
- package/dist/src/base/unused-imports.d.ts +2 -0
- package/dist/src/base/unused-imports.d.ts.map +1 -0
- package/dist/src/base/unused-imports.js +11 -0
- package/dist/src/base/vitest.d.ts +2 -0
- package/dist/src/base/vitest.d.ts.map +1 -0
- package/dist/src/base/vitest.js +6 -0
- package/dist/src/node/index.d.ts +2 -0
- package/dist/src/node/index.d.ts.map +1 -0
- package/dist/src/node/index.js +4 -0
- package/dist/src/node/n.d.ts +2 -0
- package/dist/src/node/n.d.ts.map +1 -0
- package/dist/src/node/n.js +8 -0
- package/dist/src/react/eslint-react.d.ts +2 -0
- package/dist/src/react/eslint-react.d.ts.map +1 -0
- package/dist/src/react/eslint-react.js +11 -0
- package/dist/src/react/index.d.ts +2 -0
- package/dist/src/react/index.d.ts.map +1 -0
- package/dist/src/react/index.js +9 -0
- package/dist/src/react/jsx-a11y.d.ts +2 -0
- package/dist/src/react/jsx-a11y.d.ts.map +1 -0
- package/dist/src/react/jsx-a11y.js +6 -0
- package/dist/src/react/react-hooks.d.ts +2 -0
- package/dist/src/react/react-hooks.d.ts.map +1 -0
- package/dist/src/react/react-hooks.js +6 -0
- package/dist/src/react/react-refresh.d.ts +2 -0
- package/dist/src/react/react-refresh.d.ts.map +1 -0
- package/dist/src/react/react-refresh.js +6 -0
- package/dist/src/react/react-you-might-not-need-an-effect.d.ts +2 -0
- package/dist/src/react/react-you-might-not-need-an-effect.d.ts.map +1 -0
- package/dist/src/react/react-you-might-not-need-an-effect.js +6 -0
- package/package.json +12 -13
- package/src/base/index.ts +0 -1
package/dist/base/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,IAAI,kCAchB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/typescript-eslint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/typescript-eslint.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,sBAAsB,kCAwBlC,CAAC"}
|
|
@@ -7,7 +7,9 @@ const sharedConfig = {
|
|
|
7
7
|
typescriptEslint.configs.stylisticTypeChecked,
|
|
8
8
|
],
|
|
9
9
|
parserOptions: {
|
|
10
|
-
projectService:
|
|
10
|
+
projectService: {
|
|
11
|
+
allowDefaultProject: ["*.config.ts"],
|
|
12
|
+
},
|
|
11
13
|
},
|
|
12
14
|
rules: {
|
|
13
15
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../eslint.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { node as default } from "./src/node/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../../src/base/eslint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAmBvB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import eslint from "@eslint/js";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const eslintConfig = defineConfig(eslint.configs.recommended, {
|
|
4
|
+
rules: {
|
|
5
|
+
curly: ["error", "multi-line", "consistent"],
|
|
6
|
+
"default-case-last": "error",
|
|
7
|
+
eqeqeq: "error",
|
|
8
|
+
"grouped-accessor-pairs": ["error", "getBeforeSet"],
|
|
9
|
+
"logical-assignment-operators": ["error", "always"],
|
|
10
|
+
"max-params": "warn",
|
|
11
|
+
"no-alert": "error",
|
|
12
|
+
"no-console": ["warn", { allow: ["info", "warn", "error"] }],
|
|
13
|
+
"no-constructor-return": "error",
|
|
14
|
+
"no-else-return": ["error", { allowElseIf: false }],
|
|
15
|
+
"no-param-reassign": ["error", { props: false }],
|
|
16
|
+
"no-shadow": "off",
|
|
17
|
+
"no-unneeded-ternary": "error",
|
|
18
|
+
"no-useless-return": "error",
|
|
19
|
+
"object-shorthand": "error",
|
|
20
|
+
"prefer-template": "error",
|
|
21
|
+
},
|
|
22
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-lite.d.ts","sourceRoot":"","sources":["../../../src/base/import-lite.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,kCAK3B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import importLite from "eslint-plugin-import-lite";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const importLiteConfig = defineConfig(importLite.configs.recommended, {
|
|
4
|
+
rules: {
|
|
5
|
+
"import-lite/consistent-type-specifier-style": ["error", "top-level"],
|
|
6
|
+
"import-lite/newline-after-import": "error",
|
|
7
|
+
},
|
|
8
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,IAAI,kCAchB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import gitignore from "eslint-config-flat-gitignore";
|
|
2
|
+
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
3
|
+
import { defineConfig, globalIgnores } from "eslint/config";
|
|
4
|
+
import { eslintConfig } from "./eslint.js";
|
|
5
|
+
import { importLiteConfig } from "./import-lite.js";
|
|
6
|
+
import { perfectionistConfig } from "./perfectionist.js";
|
|
7
|
+
import { regexpConfig } from "./regexp.js";
|
|
8
|
+
import { sonarjsConfig } from "./sonarjs.js";
|
|
9
|
+
import { typescriptEslintConfig } from "./typescript-eslint.js";
|
|
10
|
+
import { unicornXConfig } from "./unicorn-x.js";
|
|
11
|
+
import { unusedImportsConfig } from "./unused-imports.js";
|
|
12
|
+
import { vitestConfig } from "./vitest.js";
|
|
13
|
+
export const base = defineConfig(gitignore(), globalIgnores(["**/*.d.ts"]), eslintConfig, typescriptEslintConfig, unicornXConfig, vitestConfig, importLiteConfig, unusedImportsConfig, perfectionistConfig, sonarjsConfig, regexpConfig, eslintConfigPrettier);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../../src/base/perfectionist.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,kCAwB9B,CAAC;AAEH,eAAO,MAAM,sBAAsB,kCAoBjC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import perfectionist from "eslint-plugin-perfectionist";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
const baseConfig = {
|
|
4
|
+
order: "asc",
|
|
5
|
+
type: "natural",
|
|
6
|
+
};
|
|
7
|
+
export const perfectionistConfig = defineConfig({
|
|
8
|
+
plugins: { perfectionist },
|
|
9
|
+
rules: {
|
|
10
|
+
"perfectionist/sort-imports": [
|
|
11
|
+
"error",
|
|
12
|
+
{
|
|
13
|
+
...baseConfig,
|
|
14
|
+
newlinesBetween: 0,
|
|
15
|
+
groups: [
|
|
16
|
+
"type-import",
|
|
17
|
+
["type-parent", "type-sibling", "type-index", "type-internal"],
|
|
18
|
+
"value-builtin",
|
|
19
|
+
"value-external",
|
|
20
|
+
"value-internal",
|
|
21
|
+
["value-parent", "value-sibling", "value-index"],
|
|
22
|
+
"value-side-effect",
|
|
23
|
+
"unknown",
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
"perfectionist/sort-named-imports": ["error", baseConfig],
|
|
28
|
+
"perfectionist/sort-interfaces": ["error", baseConfig],
|
|
29
|
+
"perfectionist/sort-object-types": ["error", baseConfig],
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
export const perfectionistJsxConfig = defineConfig({
|
|
33
|
+
plugins: { perfectionist },
|
|
34
|
+
rules: {
|
|
35
|
+
"perfectionist/sort-jsx-props": [
|
|
36
|
+
"error",
|
|
37
|
+
{
|
|
38
|
+
...baseConfig,
|
|
39
|
+
customGroups: [
|
|
40
|
+
{ elementNamePattern: "^key$", groupName: "key" },
|
|
41
|
+
{ elementNamePattern: "^ref$", groupName: "ref" },
|
|
42
|
+
{ elementNamePattern: "^on[A-Z]", groupName: "callback" },
|
|
43
|
+
{
|
|
44
|
+
elementNamePattern: "(?:^className$|ClassName$)",
|
|
45
|
+
groupName: "className",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
groups: ["key", "ref", "unknown", "callback", "className"],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regexp.d.ts","sourceRoot":"","sources":["../../../src/base/regexp.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAExB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sonarjs.d.ts","sourceRoot":"","sources":["../../../src/base/sonarjs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,kCAKxB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import sonarjs from "eslint-plugin-sonarjs";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
const COGNITIVE_COMPLEXITY_THRESHOLD = 15;
|
|
4
|
+
export const sonarjsConfig = defineConfig(sonarjs.configs.recommended, {
|
|
5
|
+
rules: {
|
|
6
|
+
"sonarjs/cognitive-complexity": ["warn", COGNITIVE_COMPLEXITY_THRESHOLD],
|
|
7
|
+
"sonarjs/deprecation": "off",
|
|
8
|
+
},
|
|
9
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-eslint.d.ts","sourceRoot":"","sources":["../../../src/base/typescript-eslint.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,sBAAsB,kCAwBlC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
import globals from "globals";
|
|
3
|
+
import typescriptEslint from "typescript-eslint";
|
|
4
|
+
const sharedConfig = {
|
|
5
|
+
extends: [
|
|
6
|
+
typescriptEslint.configs.strictTypeChecked,
|
|
7
|
+
typescriptEslint.configs.stylisticTypeChecked,
|
|
8
|
+
],
|
|
9
|
+
parserOptions: {
|
|
10
|
+
projectService: true,
|
|
11
|
+
},
|
|
12
|
+
rules: {
|
|
13
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
|
14
|
+
"@typescript-eslint/method-signature-style": ["error", "property"],
|
|
15
|
+
"@typescript-eslint/no-shadow": "error",
|
|
16
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
17
|
+
"@typescript-eslint/prefer-readonly": "error",
|
|
18
|
+
"@typescript-eslint/require-array-sort-compare": "error",
|
|
19
|
+
"@typescript-eslint/switch-exhaustiveness-check": "error",
|
|
20
|
+
"no-shadow": "off",
|
|
21
|
+
"@typescript-eslint/consistent-type-exports": [
|
|
22
|
+
"error",
|
|
23
|
+
{ fixMixedExportsWithInlineTypeSpecifier: true },
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export const typescriptEslintConfig = defineConfig({
|
|
28
|
+
extends: sharedConfig.extends,
|
|
29
|
+
files: ["**/*.{js,jsx,mjs,ts,tsx,mts}"],
|
|
30
|
+
rules: sharedConfig.rules,
|
|
31
|
+
languageOptions: {
|
|
32
|
+
parserOptions: sharedConfig.parserOptions,
|
|
33
|
+
},
|
|
34
|
+
}, {
|
|
35
|
+
extends: sharedConfig.extends,
|
|
36
|
+
files: ["**/*.{cjs,cts}"],
|
|
37
|
+
languageOptions: {
|
|
38
|
+
parserOptions: sharedConfig.parserOptions,
|
|
39
|
+
sourceType: "commonjs",
|
|
40
|
+
globals: {
|
|
41
|
+
...globals.node,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
rules: {
|
|
45
|
+
...sharedConfig.rules,
|
|
46
|
+
"@typescript-eslint/no-require-imports": "off",
|
|
47
|
+
},
|
|
48
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unicorn-x.d.ts","sourceRoot":"","sources":["../../../src/base/unicorn-x.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,kCAOzB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import unicornX from "eslint-plugin-unicorn-x";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const unicornXConfig = defineConfig(unicornX.configs.recommended, {
|
|
4
|
+
rules: {
|
|
5
|
+
"unicorn-x/better-regex": "error",
|
|
6
|
+
"unicorn-x/prefer-import-meta-properties": "error",
|
|
7
|
+
"unicorn-x/prevent-abbreviations": "off",
|
|
8
|
+
"unicorn-x/no-array-for-each": "error",
|
|
9
|
+
},
|
|
10
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unused-imports.d.ts","sourceRoot":"","sources":["../../../src/base/unused-imports.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,kCAQ9B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import unusedImports from "eslint-plugin-unused-imports";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const unusedImportsConfig = defineConfig({
|
|
4
|
+
plugins: {
|
|
5
|
+
"unused-imports": unusedImports,
|
|
6
|
+
},
|
|
7
|
+
rules: {
|
|
8
|
+
"unused-imports/no-unused-imports": "error",
|
|
9
|
+
"unused-imports/no-unused-vars": "off",
|
|
10
|
+
},
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../../../src/base/vitest.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAGvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,kCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"n.d.ts","sourceRoot":"","sources":["../../../src/node/n.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,kCAQtB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import nodePlugin from "eslint-plugin-n";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const nodeConfig = defineConfig(nodePlugin.configs["flat/recommended-module"], {
|
|
4
|
+
rules: {
|
|
5
|
+
"n/no-missing-import": "off",
|
|
6
|
+
"n/no-unpublished-import": "off",
|
|
7
|
+
},
|
|
8
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint-react.d.ts","sourceRoot":"","sources":["../../../src/react/eslint-react.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,kCAQ5B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import eslintReact from "@eslint-react/eslint-plugin";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const eslintReactConfig = defineConfig({
|
|
4
|
+
...eslintReact.configs["strict-type-checked"],
|
|
5
|
+
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
6
|
+
rules: {
|
|
7
|
+
...eslintReact.configs["strict-type-checked"].rules,
|
|
8
|
+
"@eslint-react/no-unstable-context-value": "off",
|
|
9
|
+
"@eslint-react/prefer-namespace-import": "error",
|
|
10
|
+
},
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK,kCAQjB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
import { base } from "../base/index.js";
|
|
3
|
+
import { perfectionistJsxConfig } from "../base/perfectionist.js";
|
|
4
|
+
import { eslintReactConfig } from "./eslint-react.js";
|
|
5
|
+
import { jsxA11yConfig } from "./jsx-a11y.js";
|
|
6
|
+
import { reactHooksConfig } from "./react-hooks.js";
|
|
7
|
+
import { reactRefreshConfig } from "./react-refresh.js";
|
|
8
|
+
import { reactYouMightNotNeedAnEffectConfig } from "./react-you-might-not-need-an-effect.js";
|
|
9
|
+
export const react = defineConfig(base, eslintReactConfig, jsxA11yConfig, reactHooksConfig, reactRefreshConfig, reactYouMightNotNeedAnEffectConfig, perfectionistJsxConfig);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-a11y.d.ts","sourceRoot":"","sources":["../../../src/react/jsx-a11y.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,kCAGxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-hooks.d.ts","sourceRoot":"","sources":["../../../src/react/react-hooks.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,kCAG3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-refresh.d.ts","sourceRoot":"","sources":["../../../src/react/react-refresh.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,kCAG7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-you-might-not-need-an-effect.d.ts","sourceRoot":"","sources":["../../../src/react/react-you-might-not-need-an-effect.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kCAAkC,kCAG7C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import reactYouMightNotNeedAnEffect from "eslint-plugin-react-you-might-not-need-an-effect";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const reactYouMightNotNeedAnEffectConfig = defineConfig({
|
|
4
|
+
...reactYouMightNotNeedAnEffect.configs.recommended,
|
|
5
|
+
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
6
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kasoa/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Kasoa's ESLint config",
|
|
@@ -35,15 +35,6 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"dev": "tsgo --watch",
|
|
40
|
-
"build": "tsgo",
|
|
41
|
-
"lint": "eslint --fix --cache .",
|
|
42
|
-
"format": "prettier --write --cache --experimental-cli .",
|
|
43
|
-
"typecheck": "tsgo --noEmit",
|
|
44
|
-
"test": "echo 'No tests'",
|
|
45
|
-
"prepublishOnly": "pnpm build"
|
|
46
|
-
},
|
|
47
38
|
"dependencies": {
|
|
48
39
|
"@eslint-react/eslint-plugin": "^2.7.2",
|
|
49
40
|
"@eslint/js": "latest",
|
|
@@ -67,16 +58,24 @@
|
|
|
67
58
|
"typescript-eslint": "^8.53.1"
|
|
68
59
|
},
|
|
69
60
|
"devDependencies": {
|
|
70
|
-
"@kasoa/tsconfig": "workspace:*",
|
|
71
61
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
72
62
|
"@types/node": "^25.0.10",
|
|
73
63
|
"@typescript/native-preview": "^7.0.0-dev.20260122.4",
|
|
74
|
-
"prettier": "^3.8.1"
|
|
64
|
+
"prettier": "^3.8.1",
|
|
65
|
+
"@kasoa/tsconfig": "0.0.0"
|
|
75
66
|
},
|
|
76
67
|
"peerDependencies": {
|
|
77
68
|
"eslint": "^9.35.0"
|
|
78
69
|
},
|
|
79
70
|
"engines": {
|
|
80
71
|
"node": ">=24"
|
|
72
|
+
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"dev": "tsgo --watch",
|
|
75
|
+
"build": "tsgo",
|
|
76
|
+
"lint": "eslint --fix --cache .",
|
|
77
|
+
"format": "prettier --write --cache --experimental-cli .",
|
|
78
|
+
"typecheck": "tsgo --noEmit",
|
|
79
|
+
"test": "echo 'No tests'"
|
|
81
80
|
}
|
|
82
|
-
}
|
|
81
|
+
}
|
package/src/base/index.ts
CHANGED
|
@@ -3,7 +3,6 @@ import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
|
3
3
|
import { defineConfig, globalIgnores } from "eslint/config";
|
|
4
4
|
import { eslintConfig } from "./eslint.js";
|
|
5
5
|
import { importLiteConfig } from "./import-lite.js";
|
|
6
|
-
|
|
7
6
|
import { perfectionistConfig } from "./perfectionist.js";
|
|
8
7
|
import { regexpConfig } from "./regexp.js";
|
|
9
8
|
import { sonarjsConfig } from "./sonarjs.js";
|