@ethang/eslint-config 16.0.2 → 16.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/build.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  // @ts-check
2
- /** eslint-disable **/
3
2
  import { projectBuilder } from "@ethang/project-builder/project-builder.js";
4
3
 
4
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
5
5
  await projectBuilder("eslint-config-ethang", "master", {
6
6
  isLibrary: true,
7
7
  postVersionBumpScripts: ["DEDUPE", "LINT"],
package/eslint.config.js CHANGED
@@ -1,5 +1,4 @@
1
1
  // @ts-check
2
- /** eslint-disable **/
3
2
  import parser from "@typescript-eslint/parser";
4
3
  import astro from "eslint-plugin-astro";
5
4
  import a11y from "eslint-plugin-jsx-a11y/lib/index.js";
@@ -19,10 +18,13 @@ const languageOptions = {
19
18
  },
20
19
  };
21
20
 
21
+ const ignores = ["eslint.config.js", "node_modules", "dist"];
22
+
22
23
  export default tseslint.config(
23
24
  eslintPluginPrettier,
24
25
  {
25
- files: ["astro"],
26
+ files: ["**/*.{astro}"],
27
+ ignores,
26
28
  languageOptions,
27
29
  plugins: { astro },
28
30
  rules: {
@@ -44,7 +46,8 @@ export default tseslint.config(
44
46
  },
45
47
  },
46
48
  {
47
- files: ["jsx", "tsx"],
49
+ files: ["**/*.{jsx,tsx}"],
50
+ ignores,
48
51
  languageOptions,
49
52
  plugins: {
50
53
  react,
@@ -142,7 +145,8 @@ export default tseslint.config(
142
145
  },
143
146
  },
144
147
  {
145
- files: ["js", "ts", "mjs"],
148
+ files: ["**/*.{js,ts,mjs}"],
149
+ ignores,
146
150
  languageOptions,
147
151
  plugins: {
148
152
  "@typescript-eslint": tseslint.plugin,
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "16.0.2",
3
+ "version": "16.0.4",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
7
7
  "main": "eslint.config.js",
8
8
  "scripts": {
9
- "lint": "eslint --fix",
9
+ "lint": "eslint . --fix",
10
10
  "build": "node build.mjs"
11
11
  },
12
12
  "type": "module",