@xsynaptic/eslint-config 1.0.3 → 1.0.4
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/package.json +1 -1
- package/src/get-config.ts +4 -7
package/package.json
CHANGED
package/src/get-config.ts
CHANGED
|
@@ -31,8 +31,7 @@ export function getConfig(
|
|
|
31
31
|
parser: tseslint.parser,
|
|
32
32
|
parserOptions: {
|
|
33
33
|
// projectService: true, // Astro ecosystem tools can't use this yet; 2024Q4
|
|
34
|
-
|
|
35
|
-
// project: ["./tsconfig.json"],
|
|
34
|
+
project: ["./tsconfig.json"],
|
|
36
35
|
},
|
|
37
36
|
},
|
|
38
37
|
plugins: {
|
|
@@ -96,11 +95,10 @@ export function getConfig(
|
|
|
96
95
|
const astroConfig = [
|
|
97
96
|
...astroPlugin.configs["flat/recommended"],
|
|
98
97
|
...astroPlugin.configs["jsx-a11y-strict"],
|
|
99
|
-
|
|
100
|
-
// Remove some safety rules around `any` for various reasons
|
|
101
|
-
// Astro.props isn't typed correctly in some contexts, so a bunch of things ends up being `any`
|
|
102
98
|
{
|
|
103
99
|
files: ["**/*.astro"],
|
|
100
|
+
// Remove some safety rules around `any` for various reasons
|
|
101
|
+
// Astro.props isn't typed correctly in some contexts, so a bunch of things ends up being `any`
|
|
104
102
|
rules: {
|
|
105
103
|
"@typescript-eslint/no-unsafe-argument": "off",
|
|
106
104
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
@@ -111,9 +109,8 @@ export function getConfig(
|
|
|
111
109
|
},
|
|
112
110
|
|
|
113
111
|
// Disable typed rules for scripts inside Astro files
|
|
114
|
-
// https://github.com/ota-meshi/eslint-plugin-astro/issues/240
|
|
115
112
|
{
|
|
116
|
-
files: ["**/*.astro/*.ts"],
|
|
113
|
+
files: ["**/*.astro/*.ts", "*.astro/*.ts"],
|
|
117
114
|
languageOptions: {
|
|
118
115
|
parserOptions: {
|
|
119
116
|
// eslint-disable-next-line unicorn/no-null
|