@kasoa/eslint-config 0.0.19 → 0.0.21
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.js +1 -2
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +1 -2
- package/package.json +17 -18
- package/src/base/index.ts +2 -2
- package/src/react/index.ts +0 -2
- package/dist/base/no-barrel-files.d.ts +0 -3
- package/dist/base/no-barrel-files.d.ts.map +0 -1
- package/dist/base/no-barrel-files.js +0 -7
- package/dist/react/react-compiler.d.ts +0 -2
- package/dist/react/react-compiler.d.ts.map +0 -1
- package/dist/react/react-compiler.js +0 -6
- package/src/base/no-barrel-files.ts +0 -12
- package/src/react/react-compiler.ts +0 -7
package/dist/base/index.js
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
|
-
import { noBarrelFilesConfig } from "./no-barrel-files.js";
|
|
7
6
|
import { perfectionistConfig } from "./perfectionist.js";
|
|
8
7
|
import { regexpConfig } from "./regexp.js";
|
|
9
8
|
import { sonarjsConfig } from "./sonarjs.js";
|
|
@@ -11,4 +10,4 @@ import { typescriptEslintConfig } from "./typescript-eslint.js";
|
|
|
11
10
|
import { unicornXConfig } from "./unicorn-x.js";
|
|
12
11
|
import { unusedImportsConfig } from "./unused-imports.js";
|
|
13
12
|
import { vitestConfig } from "./vitest.js";
|
|
14
|
-
export const base = defineConfig(gitignore(), globalIgnores(["**/*.d.ts"]), eslintConfig, typescriptEslintConfig,
|
|
13
|
+
export const base = defineConfig(gitignore(), globalIgnores(["**/*.d.ts"]), eslintConfig, typescriptEslintConfig, unicornXConfig, vitestConfig, importLiteConfig, unusedImportsConfig, perfectionistConfig, sonarjsConfig, regexpConfig, eslintConfigPrettier);
|
|
@@ -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
|
@@ -3,8 +3,7 @@ import { base } from "../base/index.js";
|
|
|
3
3
|
import { perfectionistJsxConfig } from "../base/perfectionist.js";
|
|
4
4
|
import { eslintReactConfig } from "./eslint-react.js";
|
|
5
5
|
import { jsxA11yConfig } from "./jsx-a11y.js";
|
|
6
|
-
import { reactCompilerConfig } from "./react-compiler.js";
|
|
7
6
|
import { reactHooksConfig } from "./react-hooks.js";
|
|
8
7
|
import { reactRefreshConfig } from "./react-refresh.js";
|
|
9
8
|
import { reactYouMightNotNeedAnEffectConfig } from "./react-you-might-not-need-an-effect.js";
|
|
10
|
-
export const react = defineConfig(base, eslintReactConfig, jsxA11yConfig, reactHooksConfig, reactRefreshConfig,
|
|
9
|
+
export const react = defineConfig(base, eslintReactConfig, jsxA11yConfig, reactHooksConfig, reactRefreshConfig, reactYouMightNotNeedAnEffectConfig, perfectionistJsxConfig);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kasoa/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Kasoa's ESLint config",
|
|
@@ -35,6 +35,15 @@
|
|
|
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
|
+
},
|
|
38
47
|
"dependencies": {
|
|
39
48
|
"@eslint-react/eslint-plugin": "^2.7.2",
|
|
40
49
|
"@eslint/js": "latest",
|
|
@@ -46,13 +55,11 @@
|
|
|
46
55
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
47
56
|
"eslint-plugin-jsx-a11y-x": "^0.1.1",
|
|
48
57
|
"eslint-plugin-n": "^17.23.2",
|
|
49
|
-
"eslint-plugin-
|
|
50
|
-
"eslint-plugin-perfectionist": "^5.3.1",
|
|
51
|
-
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
58
|
+
"eslint-plugin-perfectionist": "^5.4.0",
|
|
52
59
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
53
60
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
54
61
|
"eslint-plugin-react-you-might-not-need-an-effect": "^0.8.5",
|
|
55
|
-
"eslint-plugin-regexp": "^
|
|
62
|
+
"eslint-plugin-regexp": "^3.0.0",
|
|
56
63
|
"eslint-plugin-sonarjs": "^3.0.5",
|
|
57
64
|
"eslint-plugin-unicorn-x": "^3.2.1",
|
|
58
65
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
@@ -60,24 +67,16 @@
|
|
|
60
67
|
"typescript-eslint": "^8.53.1"
|
|
61
68
|
},
|
|
62
69
|
"devDependencies": {
|
|
70
|
+
"@kasoa/tsconfig": "workspace:*",
|
|
63
71
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
64
|
-
"@types/node": "^25.0.
|
|
65
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
66
|
-
"prettier": "^3.8.
|
|
67
|
-
"@kasoa/tsconfig": "0.0.0"
|
|
72
|
+
"@types/node": "^25.0.10",
|
|
73
|
+
"@typescript/native-preview": "^7.0.0-dev.20260122.4",
|
|
74
|
+
"prettier": "^3.8.1"
|
|
68
75
|
},
|
|
69
76
|
"peerDependencies": {
|
|
70
77
|
"eslint": "^9.35.0"
|
|
71
78
|
},
|
|
72
79
|
"engines": {
|
|
73
80
|
"node": ">=24"
|
|
74
|
-
},
|
|
75
|
-
"scripts": {
|
|
76
|
-
"dev": "tsgo --watch",
|
|
77
|
-
"build": "tsgo",
|
|
78
|
-
"lint": "eslint --fix --cache --concurrency=auto .",
|
|
79
|
-
"format": "prettier --write --cache --experimental-cli .",
|
|
80
|
-
"typecheck": "tsgo --noEmit",
|
|
81
|
-
"test": "echo 'No tests'"
|
|
82
81
|
}
|
|
83
|
-
}
|
|
82
|
+
}
|
package/src/base/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ 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
|
-
|
|
6
|
+
|
|
7
7
|
import { perfectionistConfig } from "./perfectionist.js";
|
|
8
8
|
import { regexpConfig } from "./regexp.js";
|
|
9
9
|
import { sonarjsConfig } from "./sonarjs.js";
|
|
@@ -17,7 +17,7 @@ export const base = defineConfig(
|
|
|
17
17
|
globalIgnores(["**/*.d.ts"]),
|
|
18
18
|
eslintConfig,
|
|
19
19
|
typescriptEslintConfig,
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
unicornXConfig,
|
|
22
22
|
vitestConfig,
|
|
23
23
|
importLiteConfig,
|
package/src/react/index.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { base } from "../base/index.js";
|
|
|
3
3
|
import { perfectionistJsxConfig } from "../base/perfectionist.js";
|
|
4
4
|
import { eslintReactConfig } from "./eslint-react.js";
|
|
5
5
|
import { jsxA11yConfig } from "./jsx-a11y.js";
|
|
6
|
-
import { reactCompilerConfig } from "./react-compiler.js";
|
|
7
6
|
import { reactHooksConfig } from "./react-hooks.js";
|
|
8
7
|
import { reactRefreshConfig } from "./react-refresh.js";
|
|
9
8
|
import { reactYouMightNotNeedAnEffectConfig } from "./react-you-might-not-need-an-effect.js";
|
|
@@ -14,7 +13,6 @@ export const react = defineConfig(
|
|
|
14
13
|
jsxA11yConfig,
|
|
15
14
|
reactHooksConfig,
|
|
16
15
|
reactRefreshConfig,
|
|
17
|
-
reactCompilerConfig,
|
|
18
16
|
reactYouMightNotNeedAnEffectConfig,
|
|
19
17
|
perfectionistJsxConfig,
|
|
20
18
|
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"no-barrel-files.d.ts","sourceRoot":"","sources":["../../src/base/no-barrel-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,eAAO,MAAM,mBAAmB,UAO/B,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,kCAG9B,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Config } from "eslint/config";
|
|
2
|
-
import noBarrelFiles from "eslint-plugin-no-barrel-files";
|
|
3
|
-
import { defineConfig } from "eslint/config";
|
|
4
|
-
|
|
5
|
-
export const noBarrelFilesConfig = defineConfig(
|
|
6
|
-
noBarrelFiles.flat as unknown as Config,
|
|
7
|
-
{
|
|
8
|
-
rules: {
|
|
9
|
-
"no-barrel-files/no-barrel-files": "error",
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
);
|