@kitschpatrol/eslint-config 4.6.7 → 4.7.1
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/eslint.config.cjs +2 -2
- package/init/tsconfig.eslint.json +4 -13
- package/init/tsconfig.json +26 -0
- package/package.json +6 -6
- package/readme.md +2 -0
package/eslint.config.cjs
CHANGED
|
@@ -296,7 +296,7 @@ module.exports = {
|
|
|
296
296
|
kebabCase: true,
|
|
297
297
|
pascalCase: true,
|
|
298
298
|
},
|
|
299
|
-
ignore: [
|
|
299
|
+
ignore: [String.raw`^\[slug\]\.astro$`],
|
|
300
300
|
},
|
|
301
301
|
],
|
|
302
302
|
},
|
|
@@ -333,7 +333,7 @@ module.exports = {
|
|
|
333
333
|
{
|
|
334
334
|
case: 'pascalCase',
|
|
335
335
|
ignore: [
|
|
336
|
-
|
|
336
|
+
String.raw`^\+`, // SvelteKit +page.svelte etc.
|
|
337
337
|
],
|
|
338
338
|
},
|
|
339
339
|
],
|
|
@@ -4,17 +4,8 @@
|
|
|
4
4
|
"allowJs": true
|
|
5
5
|
},
|
|
6
6
|
"extends": "./tsconfig.json",
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"**/**.svelte",
|
|
12
|
-
"**/**.astro",
|
|
13
|
-
"**/**.cjs",
|
|
14
|
-
"**/**.mjs",
|
|
15
|
-
"**/**.cts",
|
|
16
|
-
"**/**.mts",
|
|
17
|
-
"**/**.jsx",
|
|
18
|
-
"**/**.tsx"
|
|
19
|
-
]
|
|
7
|
+
|
|
8
|
+
/* Also lint config files. */
|
|
9
|
+
"include": ["**/*", "**/**.*"],
|
|
10
|
+
"exclude": ["dist/", "bin/"]
|
|
20
11
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"noErrorTruncation": true,
|
|
10
|
+
|
|
11
|
+
/* Bundler mode */
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"allowImportingTsExtensions": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
|
|
17
|
+
/* Linting */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
"noFallthroughCasesInSwitch": true
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
"include": ["**/*"],
|
|
25
|
+
"exclude": ["dist/", "bin/"]
|
|
26
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/eslint-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ESLint configuration for @kitschpatrol/shared-config.",
|
|
6
6
|
"repository": {
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"@pinojs/json-colorizer": "^4.0.0",
|
|
46
46
|
"@typescript-eslint/eslint-plugin": "^7.12.0",
|
|
47
47
|
"@typescript-eslint/parser": "^7.12.0",
|
|
48
|
-
"astro-eslint-parser": "^0.
|
|
48
|
+
"astro-eslint-parser": "^1.0.2",
|
|
49
49
|
"eslint-config-prettier": "^9.1.0",
|
|
50
|
-
"eslint-config-xo": "^0.
|
|
50
|
+
"eslint-config-xo": "^0.45.0",
|
|
51
51
|
"eslint-config-xo-typescript": "^4.0.0",
|
|
52
|
-
"eslint-plugin-astro": "^
|
|
52
|
+
"eslint-plugin-astro": "^1.2.0",
|
|
53
53
|
"eslint-plugin-html": "^8.1.1",
|
|
54
54
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
55
55
|
"eslint-plugin-mdx": "^3.1.5",
|
|
56
|
-
"eslint-plugin-n": "^
|
|
56
|
+
"eslint-plugin-n": "^17.8.1",
|
|
57
57
|
"eslint-plugin-perfectionist": "^2.10.0",
|
|
58
58
|
"eslint-plugin-svelte": "^2.39.0",
|
|
59
|
-
"eslint-plugin-unicorn": "^
|
|
59
|
+
"eslint-plugin-unicorn": "^53.0.0",
|
|
60
60
|
"execa": "^8.0.1",
|
|
61
61
|
"fs-extra": "^11.2.0"
|
|
62
62
|
},
|
package/readme.md
CHANGED
|
@@ -93,6 +93,8 @@ The whole flat file config thing is pending...
|
|
|
93
93
|
|
|
94
94
|
ESLint does not inherit files and paths from `.gitignore`. Ignored paths must be specified in `.eslintignore`.
|
|
95
95
|
|
|
96
|
+
This shared config will also initialize a `tsconfig.json` and a `tsconfig.eslint.json`. These should probably live in a separate configuration package, but they'll reside here for now.
|
|
97
|
+
|
|
96
98
|
<!-- license -->
|
|
97
99
|
|
|
98
100
|
## License
|