@kasoa/eslint-config 0.0.20 → 0.0.22
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/index.js +1 -2
- package/dist/base/typescript-eslint.d.ts.map +1 -1
- package/dist/base/typescript-eslint.js +3 -1
- package/package.json +12 -14
- package/src/base/index.ts +1 -2
- package/src/base/typescript-eslint.ts +3 -1
- 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/src/base/no-barrel-files.ts +0 -12
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"}
|
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":"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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kasoa/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
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",
|
|
@@ -55,7 +46,6 @@
|
|
|
55
46
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
56
47
|
"eslint-plugin-jsx-a11y-x": "^0.1.1",
|
|
57
48
|
"eslint-plugin-n": "^17.23.2",
|
|
58
|
-
"eslint-plugin-no-barrel-files": "^1.2.2",
|
|
59
49
|
"eslint-plugin-perfectionist": "^5.4.0",
|
|
60
50
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
61
51
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
@@ -68,16 +58,24 @@
|
|
|
68
58
|
"typescript-eslint": "^8.53.1"
|
|
69
59
|
},
|
|
70
60
|
"devDependencies": {
|
|
71
|
-
"@kasoa/tsconfig": "workspace:*",
|
|
72
61
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
73
62
|
"@types/node": "^25.0.10",
|
|
74
63
|
"@typescript/native-preview": "^7.0.0-dev.20260122.4",
|
|
75
|
-
"prettier": "^3.8.1"
|
|
64
|
+
"prettier": "^3.8.1",
|
|
65
|
+
"@kasoa/tsconfig": "0.0.0"
|
|
76
66
|
},
|
|
77
67
|
"peerDependencies": {
|
|
78
68
|
"eslint": "^9.35.0"
|
|
79
69
|
},
|
|
80
70
|
"engines": {
|
|
81
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'"
|
|
82
80
|
}
|
|
83
|
-
}
|
|
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
|
-
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";
|
|
@@ -17,7 +16,7 @@ export const base = defineConfig(
|
|
|
17
16
|
globalIgnores(["**/*.d.ts"]),
|
|
18
17
|
eslintConfig,
|
|
19
18
|
typescriptEslintConfig,
|
|
20
|
-
|
|
19
|
+
|
|
21
20
|
unicornXConfig,
|
|
22
21
|
vitestConfig,
|
|
23
22
|
importLiteConfig,
|
|
@@ -9,7 +9,9 @@ const sharedConfig = {
|
|
|
9
9
|
typescriptEslint.configs.stylisticTypeChecked,
|
|
10
10
|
],
|
|
11
11
|
parserOptions: {
|
|
12
|
-
projectService:
|
|
12
|
+
projectService: {
|
|
13
|
+
allowDefaultProject: ["*.config.ts"],
|
|
14
|
+
},
|
|
13
15
|
},
|
|
14
16
|
rules: {
|
|
15
17
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
@@ -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,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
|
-
);
|