@kasoa/eslint-config 0.0.2 → 0.0.3
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/eslint.d.ts +1 -1
- package/dist/base/eslint.d.ts.map +1 -1
- package/dist/base/eslint.js +7 -2
- package/dist/base/import-lite.d.ts +1 -1
- package/dist/base/import-lite.d.ts.map +1 -1
- package/dist/base/import-lite.js +1 -1
- package/dist/base/index.d.ts +1 -1
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.js +4 -4
- package/dist/base/perfectionist.d.ts +1 -1
- package/dist/base/perfectionist.d.ts.map +1 -1
- package/dist/base/perfectionist.js +1 -1
- package/dist/base/typescript-eslint.d.ts +1 -1
- package/dist/base/typescript-eslint.d.ts.map +1 -1
- package/dist/base/unicorn-x.d.ts +1 -1
- package/dist/base/unicorn-x.d.ts.map +1 -1
- package/dist/base/unicorn-x.js +1 -1
- package/dist/base/unused-imports.d.ts +1 -1
- package/dist/base/unused-imports.d.ts.map +1 -1
- package/dist/base/unused-imports.js +1 -1
- package/dist/base/vitest.d.ts +1 -1
- package/dist/base/vitest.d.ts.map +1 -1
- package/dist/base/vitest.js +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/n.d.ts +1 -1
- package/dist/node/n.d.ts.map +1 -1
- package/dist/node/n.js +7 -2
- package/dist/react/eslint-react.d.ts +1 -1
- package/dist/react/eslint-react.d.ts.map +1 -1
- package/dist/react/eslint-react.js +6 -2
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +4 -3
- package/dist/react/jsx-a11y-x.d.ts +1 -1
- package/dist/react/jsx-a11y-x.d.ts.map +1 -1
- package/dist/react/jsx-a11y-x.js +2 -2
- package/dist/react/react-compiler.d.ts +1 -1
- package/dist/react/react-compiler.d.ts.map +1 -1
- package/dist/react/react-compiler.js +1 -1
- package/dist/react/react-hooks.d.ts +1 -1
- package/dist/react/react-hooks.d.ts.map +1 -1
- package/dist/react/react-hooks.js +2 -2
- package/dist/react/react-refresh.d.ts +1 -1
- package/dist/react/react-refresh.d.ts.map +1 -1
- package/dist/react/react-refresh.js +1 -1
- package/dist/react/react-you-might-not-need-an-effect.d.ts +2 -0
- package/dist/react/react-you-might-not-need-an-effect.d.ts.map +1 -0
- package/dist/react/react-you-might-not-need-an-effect.js +3 -0
- package/package.json +12 -11
- package/src/base/eslint.ts +6 -1
- package/src/node/n.ts +6 -0
- package/src/react/eslint-react.ts +5 -0
- package/src/react/index.ts +2 -0
- package/src/react/react-hooks.ts +1 -1
- package/src/react/react-you-might-not-need-an-effect.ts +6 -0
- package/dist/eslint.config.d.ts +0 -3
- package/dist/eslint.config.d.ts.map +0 -1
- package/dist/eslint.config.js +0 -10
- package/dist/src/base/eslint.d.ts +0 -2
- package/dist/src/base/eslint.d.ts.map +0 -1
- package/dist/src/base/eslint.js +0 -3
- package/dist/src/base/import-lite.d.ts +0 -2
- package/dist/src/base/import-lite.d.ts.map +0 -1
- package/dist/src/base/import-lite.js +0 -8
- package/dist/src/base/index.d.ts +0 -2
- package/dist/src/base/index.d.ts.map +0 -1
- package/dist/src/base/index.js +0 -11
- package/dist/src/base/perfectionist.d.ts +0 -2
- package/dist/src/base/perfectionist.d.ts.map +0 -1
- package/dist/src/base/perfectionist.js +0 -49
- package/dist/src/base/typescript-eslint.d.ts +0 -2
- package/dist/src/base/typescript-eslint.d.ts.map +0 -1
- package/dist/src/base/typescript-eslint.js +0 -8
- package/dist/src/base/unicorn-x.d.ts +0 -2
- package/dist/src/base/unicorn-x.d.ts.map +0 -1
- package/dist/src/base/unicorn-x.js +0 -9
- package/dist/src/base/unused-imports.d.ts +0 -2
- package/dist/src/base/unused-imports.d.ts.map +0 -1
- package/dist/src/base/unused-imports.js +0 -20
- package/dist/src/base/vitest.d.ts +0 -2
- package/dist/src/base/vitest.d.ts.map +0 -1
- package/dist/src/base/vitest.js +0 -6
- package/dist/src/node/index.d.ts +0 -2
- package/dist/src/node/index.d.ts.map +0 -1
- package/dist/src/node/index.js +0 -4
- package/dist/src/node/n.d.ts +0 -2
- package/dist/src/node/n.d.ts.map +0 -1
- package/dist/src/node/n.js +0 -3
- package/dist/src/react/eslint-react.d.ts +0 -2
- package/dist/src/react/eslint-react.d.ts.map +0 -1
- package/dist/src/react/eslint-react.js +0 -3
- package/dist/src/react/index.d.ts +0 -2
- package/dist/src/react/index.d.ts.map +0 -1
- package/dist/src/react/index.js +0 -8
- package/dist/src/react/jsx-a11y-x.d.ts +0 -2
- package/dist/src/react/jsx-a11y-x.d.ts.map +0 -1
- package/dist/src/react/jsx-a11y-x.js +0 -4
- package/dist/src/react/react-compiler.d.ts +0 -2
- package/dist/src/react/react-compiler.d.ts.map +0 -1
- package/dist/src/react/react-compiler.js +0 -3
- package/dist/src/react/react-hooks.d.ts +0 -2
- package/dist/src/react/react-hooks.d.ts.map +0 -1
- package/dist/src/react/react-hooks.js +0 -3
- package/dist/src/react/react-refresh.d.ts +0 -2
- package/dist/src/react/react-refresh.d.ts.map +0 -1
- package/dist/src/react/react-refresh.js +0 -3
package/dist/base/eslint.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const eslintConfig: import("eslint").
|
|
1
|
+
export declare const eslintConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=eslint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../src/base/eslint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../src/base/eslint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAKvB,CAAC"}
|
package/dist/base/eslint.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { defineConfig } from "eslint/config";
|
|
2
1
|
import eslint from "@eslint/js";
|
|
3
|
-
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const eslintConfig = defineConfig(eslint.configs.recommended, {
|
|
4
|
+
rules: {
|
|
5
|
+
eqeqeq: "error",
|
|
6
|
+
"object-shorthand": "error",
|
|
7
|
+
},
|
|
8
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const importLiteConfig: import("eslint").
|
|
1
|
+
export declare const importLiteConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=import-lite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-lite.d.ts","sourceRoot":"","sources":["../../src/base/import-lite.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"import-lite.d.ts","sourceRoot":"","sources":["../../src/base/import-lite.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,kCAQ5B,CAAC"}
|
package/dist/base/import-lite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineConfig } from "eslint/config";
|
|
2
1
|
import importLite from "eslint-plugin-import-lite";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
3
|
export const importLiteConfig = defineConfig(importLite.configs.recommended, {
|
|
4
4
|
rules: {
|
|
5
5
|
"import-lite/consistent-type-specifier-style": ["error", "top-level"],
|
package/dist/base/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const base: import("eslint").
|
|
1
|
+
export declare const base: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
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":"AAWA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,IAAI,kCAWhB,CAAC"}
|
package/dist/base/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
2
1
|
import gitignore from "eslint-config-flat-gitignore";
|
|
2
|
+
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
3
3
|
import { defineConfig, globalIgnores } from "eslint/config";
|
|
4
4
|
import { eslintConfig } from "./eslint.js";
|
|
5
|
+
import { importLiteConfig } from "./import-lite.js";
|
|
6
|
+
import { perfectionistConfig } from "./perfectionist.js";
|
|
5
7
|
import { typescriptEslintConfig } from "./typescript-eslint.js";
|
|
6
8
|
import { unicornXConfig } from "./unicorn-x.js";
|
|
7
|
-
import { vitestConfig } from "./vitest.js";
|
|
8
9
|
import { unusedImportsConfig } from "./unused-imports.js";
|
|
9
|
-
import {
|
|
10
|
-
import { perfectionistConfig } from "./perfectionist.js";
|
|
10
|
+
import { vitestConfig } from "./vitest.js";
|
|
11
11
|
export const base = defineConfig(gitignore(), globalIgnores(["**/*.d.ts"]), eslintConfig, typescriptEslintConfig, unicornXConfig, vitestConfig, importLiteConfig, unusedImportsConfig, perfectionistConfig, eslintConfigPrettier);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const perfectionistConfig: import("eslint").
|
|
1
|
+
export declare const perfectionistConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=perfectionist.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/base/perfectionist.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/base/perfectionist.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,kCA8C9B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const typescriptEslintConfig: import("eslint").
|
|
1
|
+
export declare const typescriptEslintConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=typescript-eslint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/typescript-eslint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/typescript-eslint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB,kCASlC,CAAC"}
|
package/dist/base/unicorn-x.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const unicornXConfig: import("eslint").
|
|
1
|
+
export declare const unicornXConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=unicorn-x.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unicorn-x.d.ts","sourceRoot":"","sources":["../../src/base/unicorn-x.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"unicorn-x.d.ts","sourceRoot":"","sources":["../../src/base/unicorn-x.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,kCAMzB,CAAC"}
|
package/dist/base/unicorn-x.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineConfig } from "eslint/config";
|
|
2
1
|
import unicornX from "eslint-plugin-unicorn-x";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
3
|
export const unicornXConfig = defineConfig(unicornX.configs.recommended, {
|
|
4
4
|
rules: {
|
|
5
5
|
"unicorn-x/prevent-abbreviations": "off",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const unusedImportsConfig: import("eslint").
|
|
1
|
+
export declare const unusedImportsConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=unused-imports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unused-imports.d.ts","sourceRoot":"","sources":["../../src/base/unused-imports.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"unused-imports.d.ts","sourceRoot":"","sources":["../../src/base/unused-imports.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,kCAiB9B,CAAC"}
|
package/dist/base/vitest.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const vitestConfig: import("eslint").
|
|
1
|
+
export declare const vitestConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=vitest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../../src/base/vitest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../../src/base/vitest.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,kCAGvB,CAAC"}
|
package/dist/base/vitest.js
CHANGED
package/dist/node/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const node: import("eslint").
|
|
1
|
+
export declare const node: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,kCAAiC,CAAC"}
|
package/dist/node/index.js
CHANGED
package/dist/node/n.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const nodeConfig: import("eslint").
|
|
1
|
+
export declare const nodeConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=n.d.ts.map
|
package/dist/node/n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"n.d.ts","sourceRoot":"","sources":["../../src/node/n.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"n.d.ts","sourceRoot":"","sources":["../../src/node/n.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,kCAQtB,CAAC"}
|
package/dist/node/n.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { defineConfig } from "eslint/config";
|
|
2
1
|
import nodePlugin from "eslint-plugin-n";
|
|
3
|
-
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const nodeConfig = defineConfig(nodePlugin.configs["flat/recommended-module"], {
|
|
4
|
+
rules: {
|
|
5
|
+
"n/no-unpublished-import": "off",
|
|
6
|
+
"n/no-missing-import": "off",
|
|
7
|
+
},
|
|
8
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const eslintReactConfig: import("eslint").
|
|
1
|
+
export declare const eslintReactConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=eslint-react.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-react.d.ts","sourceRoot":"","sources":["../../src/react/eslint-react.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"eslint-react.d.ts","sourceRoot":"","sources":["../../src/react/eslint-react.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,kCAO7B,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import { defineConfig } from "eslint/config";
|
|
2
1
|
import eslintReact from "@eslint-react/eslint-plugin";
|
|
3
|
-
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const eslintReactConfig = defineConfig(eslintReact.configs["recommended-type-checked"], {
|
|
4
|
+
rules: {
|
|
5
|
+
"@eslint-react/prefer-namespace-import": "error",
|
|
6
|
+
},
|
|
7
|
+
});
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const react: import("eslint").
|
|
1
|
+
export declare const react: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK,kCAQjB,CAAC"}
|
package/dist/react/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
1
2
|
import { base } from "../base/index.js";
|
|
2
3
|
import { eslintReactConfig } from "./eslint-react.js";
|
|
3
4
|
import { jsxA11yXConfig } from "./jsx-a11y-x.js";
|
|
5
|
+
import { reactCompilerConfig } from "./react-compiler.js";
|
|
4
6
|
import { reactHooksConfig } from "./react-hooks.js";
|
|
5
7
|
import { reactRefreshConfig } from "./react-refresh.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
export const react = defineConfig(base, eslintReactConfig, jsxA11yXConfig, reactHooksConfig, reactRefreshConfig, reactCompilerConfig);
|
|
8
|
+
import { reactYouMightNotNeedAnEffectConfig } from "./react-you-might-not-need-an-effect.js";
|
|
9
|
+
export const react = defineConfig(base, eslintReactConfig, jsxA11yXConfig, reactHooksConfig, reactRefreshConfig, reactCompilerConfig, reactYouMightNotNeedAnEffectConfig);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const jsxA11yXConfig: import("eslint").
|
|
1
|
+
export declare const jsxA11yXConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=jsx-a11y-x.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-a11y-x.d.ts","sourceRoot":"","sources":["../../src/react/jsx-a11y-x.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsx-a11y-x.d.ts","sourceRoot":"","sources":["../../src/react/jsx-a11y-x.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,kCAE1B,CAAC"}
|
package/dist/react/jsx-a11y-x.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// @ts-expect-error
|
|
1
|
+
// @ts-expect-error - eslint-plugin-jsx-a11y-x is not typed
|
|
3
2
|
import jsxA11yX from "eslint-plugin-jsx-a11y-x";
|
|
3
|
+
import { defineConfig } from "eslint/config";
|
|
4
4
|
export const jsxA11yXConfig = defineConfig(jsxA11yX.flatConfigs.strict);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const reactCompilerConfig: import("eslint").
|
|
1
|
+
export declare const reactCompilerConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=react-compiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-compiler.d.ts","sourceRoot":"","sources":["../../src/react/react-compiler.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"react-compiler.d.ts","sourceRoot":"","sources":["../../src/react/react-compiler.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,kCAE/B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const reactHooksConfig: import("eslint").
|
|
1
|
+
export declare const reactHooksConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=react-hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-hooks.d.ts","sourceRoot":"","sources":["../../src/react/react-hooks.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"react-hooks.d.ts","sourceRoot":"","sources":["../../src/react/react-hooks.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,kCAE5B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { defineConfig } from "eslint/config";
|
|
2
1
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
3
|
-
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
export const reactHooksConfig = defineConfig(reactHooks.configs.flat["recommended-latest"]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const reactRefreshConfig: import("eslint").
|
|
1
|
+
export declare const reactRefreshConfig: import("eslint/config").Config[];
|
|
2
2
|
//# sourceMappingURL=react-refresh.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-refresh.d.ts","sourceRoot":"","sources":["../../src/react/react-refresh.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"react-refresh.d.ts","sourceRoot":"","sources":["../../src/react/react-refresh.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,kCAE9B,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,kCAE9C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kasoa/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Kasoa's ESLint config",
|
|
@@ -33,29 +33,30 @@
|
|
|
33
33
|
"./react": "./dist/react/index.js"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@eslint-react/eslint-plugin": "^
|
|
36
|
+
"@eslint-react/eslint-plugin": "^2.2.2",
|
|
37
37
|
"@eslint/js": "latest",
|
|
38
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
39
|
-
"eslint": "^9.
|
|
38
|
+
"@vitest/eslint-plugin": "^1.3.23",
|
|
39
|
+
"eslint": "^9.38.0",
|
|
40
40
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
41
41
|
"eslint-config-prettier": "^10.1.8",
|
|
42
42
|
"eslint-plugin-import-lite": "^0.3.0",
|
|
43
43
|
"eslint-plugin-jsx-a11y-x": "^0.1.1",
|
|
44
44
|
"eslint-plugin-n": "^17.23.1",
|
|
45
|
-
"eslint-plugin-perfectionist": "^4.15.
|
|
45
|
+
"eslint-plugin-perfectionist": "^4.15.1",
|
|
46
46
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
47
|
-
"eslint-plugin-react-hooks": "^
|
|
48
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
47
|
+
"eslint-plugin-react-hooks": "^7.0.0",
|
|
48
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
49
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.6.0",
|
|
49
50
|
"eslint-plugin-unicorn-x": "^3.2.1",
|
|
50
51
|
"eslint-plugin-unused-imports": "^4.2.0",
|
|
51
52
|
"globals": "^16.4.0",
|
|
52
|
-
"typescript-eslint": "^8.
|
|
53
|
+
"typescript-eslint": "^8.46.1"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^24.
|
|
56
|
-
"jiti": "^2.
|
|
56
|
+
"@types/node": "^24.8.1",
|
|
57
|
+
"jiti": "^2.6.1",
|
|
57
58
|
"prettier": "^3.6.2",
|
|
58
|
-
"typescript": "^5.9.
|
|
59
|
+
"typescript": "^5.9.3",
|
|
59
60
|
"@kasoa/tsconfig": "0.0.0"
|
|
60
61
|
},
|
|
61
62
|
"peerDependencies": {
|
package/src/base/eslint.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import eslint from "@eslint/js";
|
|
2
2
|
import { defineConfig } from "eslint/config";
|
|
3
3
|
|
|
4
|
-
export const eslintConfig = defineConfig(eslint.configs.recommended
|
|
4
|
+
export const eslintConfig = defineConfig(eslint.configs.recommended, {
|
|
5
|
+
rules: {
|
|
6
|
+
eqeqeq: "error",
|
|
7
|
+
"object-shorthand": "error",
|
|
8
|
+
},
|
|
9
|
+
});
|
package/src/node/n.ts
CHANGED
package/src/react/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { jsxA11yXConfig } from "./jsx-a11y-x.js";
|
|
|
5
5
|
import { reactCompilerConfig } from "./react-compiler.js";
|
|
6
6
|
import { reactHooksConfig } from "./react-hooks.js";
|
|
7
7
|
import { reactRefreshConfig } from "./react-refresh.js";
|
|
8
|
+
import { reactYouMightNotNeedAnEffectConfig } from "./react-you-might-not-need-an-effect.js";
|
|
8
9
|
|
|
9
10
|
export const react = defineConfig(
|
|
10
11
|
base,
|
|
@@ -13,4 +14,5 @@ export const react = defineConfig(
|
|
|
13
14
|
reactHooksConfig,
|
|
14
15
|
reactRefreshConfig,
|
|
15
16
|
reactCompilerConfig,
|
|
17
|
+
reactYouMightNotNeedAnEffectConfig,
|
|
16
18
|
);
|
package/src/react/react-hooks.ts
CHANGED
package/dist/eslint.config.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../eslint.config.ts"],"names":[],"mappings":";AAGA,wBAOG"}
|
package/dist/eslint.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../../src/base/eslint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,uEAA2C,CAAC"}
|
package/dist/src/base/eslint.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"import-lite.d.ts","sourceRoot":"","sources":["../../../src/base/import-lite.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,uEAQ5B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
});
|
package/dist/src/base/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,IAAI,uEAWhB,CAAC"}
|
package/dist/src/base/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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 { typescriptEslintConfig } from "./typescript-eslint.js";
|
|
8
|
-
import { unicornXConfig } from "./unicorn-x.js";
|
|
9
|
-
import { unusedImportsConfig } from "./unused-imports.js";
|
|
10
|
-
import { vitestConfig } from "./vitest.js";
|
|
11
|
-
export const base = defineConfig(gitignore(), globalIgnores(["**/*.d.ts"]), eslintConfig, typescriptEslintConfig, unicornXConfig, vitestConfig, importLiteConfig, unusedImportsConfig, perfectionistConfig, eslintConfigPrettier);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../../src/base/perfectionist.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,uEA8C9B,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import perfectionist from "eslint-plugin-perfectionist";
|
|
2
|
-
import { defineConfig } from "eslint/config";
|
|
3
|
-
export const perfectionistConfig = defineConfig({
|
|
4
|
-
plugins: {
|
|
5
|
-
perfectionist,
|
|
6
|
-
},
|
|
7
|
-
rules: {
|
|
8
|
-
"perfectionist/sort-exports": [
|
|
9
|
-
"error",
|
|
10
|
-
{
|
|
11
|
-
order: "asc",
|
|
12
|
-
type: "natural",
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
"perfectionist/sort-imports": [
|
|
16
|
-
"error",
|
|
17
|
-
{
|
|
18
|
-
groups: [
|
|
19
|
-
"type",
|
|
20
|
-
["parent-type", "sibling-type", "index-type", "internal-type"],
|
|
21
|
-
"builtin",
|
|
22
|
-
"external",
|
|
23
|
-
"internal",
|
|
24
|
-
["parent", "sibling", "index"],
|
|
25
|
-
"side-effect",
|
|
26
|
-
"object",
|
|
27
|
-
"unknown",
|
|
28
|
-
],
|
|
29
|
-
newlinesBetween: 0,
|
|
30
|
-
order: "asc",
|
|
31
|
-
type: "natural",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
"perfectionist/sort-named-exports": [
|
|
35
|
-
"error",
|
|
36
|
-
{
|
|
37
|
-
order: "asc",
|
|
38
|
-
type: "natural",
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
"perfectionist/sort-named-imports": [
|
|
42
|
-
"error",
|
|
43
|
-
{
|
|
44
|
-
order: "asc",
|
|
45
|
-
type: "natural",
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-eslint.d.ts","sourceRoot":"","sources":["../../../src/base/typescript-eslint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB,uEASlC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "eslint/config";
|
|
2
|
-
import typescriptEslint from "typescript-eslint";
|
|
3
|
-
export const typescriptEslintConfig = defineConfig(typescriptEslint.configs.strictTypeChecked, typescriptEslint.configs.stylisticTypeChecked, {
|
|
4
|
-
rules: {
|
|
5
|
-
"@typescript-eslint/consistent-type-imports": "error",
|
|
6
|
-
"@typescript-eslint/explicit-module-boundary-types": "error",
|
|
7
|
-
},
|
|
8
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unicorn-x.d.ts","sourceRoot":"","sources":["../../../src/base/unicorn-x.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,uEAMzB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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/prevent-abbreviations": "off",
|
|
6
|
-
"unicorn-x/better-regex": "error",
|
|
7
|
-
"unicorn-x/prefer-import-meta-properties": "error",
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unused-imports.d.ts","sourceRoot":"","sources":["../../../src/base/unused-imports.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,uEAiB9B,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import unusedImports from "eslint-plugin-unused-imports";
|
|
2
|
-
import { defineConfig } from "eslint/config";
|
|
3
|
-
export const unusedImportsConfig = defineConfig({
|
|
4
|
-
rules: {
|
|
5
|
-
"unused-imports/no-unused-vars": [
|
|
6
|
-
"warn",
|
|
7
|
-
{
|
|
8
|
-
varsIgnorePattern: "^_",
|
|
9
|
-
argsIgnorePattern: "^_",
|
|
10
|
-
args: "after-used",
|
|
11
|
-
vars: "all",
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
"unused-imports/no-unused-imports": "error",
|
|
15
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
16
|
-
},
|
|
17
|
-
plugins: {
|
|
18
|
-
"unused-imports": unusedImports,
|
|
19
|
-
},
|
|
20
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../../../src/base/vitest.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,uEAGvB,CAAC"}
|
package/dist/src/base/vitest.js
DELETED
package/dist/src/node/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,uEAAiC,CAAC"}
|
package/dist/src/node/index.js
DELETED
package/dist/src/node/n.d.ts
DELETED
package/dist/src/node/n.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"n.d.ts","sourceRoot":"","sources":["../../../src/node/n.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,uEAEtB,CAAC"}
|
package/dist/src/node/n.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-react.d.ts","sourceRoot":"","sources":["../../../src/react/eslint-react.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,uEAE7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,KAAK,uEAOjB,CAAC"}
|
package/dist/src/react/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "eslint/config";
|
|
2
|
-
import { base } from "../base/index.js";
|
|
3
|
-
import { eslintReactConfig } from "./eslint-react.js";
|
|
4
|
-
import { jsxA11yXConfig } from "./jsx-a11y-x.js";
|
|
5
|
-
import { reactCompilerConfig } from "./react-compiler.js";
|
|
6
|
-
import { reactHooksConfig } from "./react-hooks.js";
|
|
7
|
-
import { reactRefreshConfig } from "./react-refresh.js";
|
|
8
|
-
export const react = defineConfig(base, eslintReactConfig, jsxA11yXConfig, reactHooksConfig, reactRefreshConfig, reactCompilerConfig);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-a11y-x.d.ts","sourceRoot":"","sources":["../../../src/react/jsx-a11y-x.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,uEAE1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-compiler.d.ts","sourceRoot":"","sources":["../../../src/react/react-compiler.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,uEAE/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-hooks.d.ts","sourceRoot":"","sources":["../../../src/react/react-hooks.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,uEAE5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-refresh.d.ts","sourceRoot":"","sources":["../../../src/react/react-refresh.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,uEAE9B,CAAC"}
|