@ethang/eslint-config 16.0.3 → 16.0.5
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/build.mjs +1 -0
- package/eslint.config.js +8 -4
- package/package.json +1 -1
package/build.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
import { projectBuilder } from "@ethang/project-builder/project-builder.js";
|
|
3
3
|
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
4
5
|
await projectBuilder("eslint-config-ethang", "master", {
|
|
5
6
|
isLibrary: true,
|
|
6
7
|
postVersionBumpScripts: ["DEDUPE", "LINT"],
|
package/eslint.config.js
CHANGED
|
@@ -18,10 +18,13 @@ const languageOptions = {
|
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
const ignores = ["eslint.config.js", "node_modules", "dist"];
|
|
22
|
+
|
|
21
23
|
export default tseslint.config(
|
|
22
24
|
eslintPluginPrettier,
|
|
23
25
|
{
|
|
24
|
-
files: ["astro"],
|
|
26
|
+
files: ["**/*.{astro}"],
|
|
27
|
+
ignores,
|
|
25
28
|
languageOptions,
|
|
26
29
|
plugins: { astro },
|
|
27
30
|
rules: {
|
|
@@ -43,7 +46,8 @@ export default tseslint.config(
|
|
|
43
46
|
},
|
|
44
47
|
},
|
|
45
48
|
{
|
|
46
|
-
files: ["jsx
|
|
49
|
+
files: ["**/*.{jsx,tsx}"],
|
|
50
|
+
ignores,
|
|
47
51
|
languageOptions,
|
|
48
52
|
plugins: {
|
|
49
53
|
react,
|
|
@@ -141,7 +145,8 @@ export default tseslint.config(
|
|
|
141
145
|
},
|
|
142
146
|
},
|
|
143
147
|
{
|
|
144
|
-
files: ["js
|
|
148
|
+
files: ["**/*.{js,ts,mjs}"],
|
|
149
|
+
ignores,
|
|
145
150
|
languageOptions,
|
|
146
151
|
plugins: {
|
|
147
152
|
"@typescript-eslint": tseslint.plugin,
|
|
@@ -329,7 +334,6 @@ export default tseslint.config(
|
|
|
329
334
|
"require-await": "off", // Handled by tseslint
|
|
330
335
|
|
|
331
336
|
"n/exports-style": ["error", "exports"],
|
|
332
|
-
"n/file-extension-in-import": ["error", "always"],
|
|
333
337
|
"n/no-deprecated-api": "error",
|
|
334
338
|
"n/no-exports-assign": "error",
|
|
335
339
|
"n/no-extraneous-import": "error",
|