@ethang/eslint-config 16.0.1 → 16.0.3

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,5 +1,4 @@
1
1
  // @ts-check
2
- /* eslint-disable @typescript-eslint/no-unsafe-call */
3
2
  import { projectBuilder } from "@ethang/project-builder/project-builder.js";
4
3
 
5
4
  await projectBuilder("eslint-config-ethang", "master", {
package/eslint.config.js CHANGED
@@ -1,5 +1,4 @@
1
1
  // @ts-check
2
- /* eslint-disable @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,max-lines */
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";
@@ -23,6 +22,7 @@ export default tseslint.config(
23
22
  eslintPluginPrettier,
24
23
  {
25
24
  files: ["astro"],
25
+ languageOptions,
26
26
  plugins: { astro },
27
27
  rules: {
28
28
  "astro/missing-client-only-directive-value": "error",
@@ -44,6 +44,7 @@ export default tseslint.config(
44
44
  },
45
45
  {
46
46
  files: ["jsx", "tsx"],
47
+ languageOptions,
47
48
  plugins: {
48
49
  react,
49
50
  "react-hooks": reactHooks,
@@ -134,12 +135,13 @@ export default tseslint.config(
134
135
  "react/static-property-placement": "error",
135
136
  "react/style-prop-object": "error",
136
137
  "react/void-dom-elements-no-children": "error",
137
- // eslint-disable-next-line sort-keys
138
+
138
139
  "react-hooks/exhaustive-deps": "error",
139
140
  "react-hooks/rules-of-hooks": "error",
140
141
  },
141
142
  },
142
143
  {
144
+ files: ["js", "ts", "mjs"],
143
145
  languageOptions,
144
146
  plugins: {
145
147
  "@typescript-eslint": tseslint.plugin,
@@ -302,7 +304,7 @@ export default tseslint.config(
302
304
  "vars-on-top": "error",
303
305
  yoda: ["error", "always"],
304
306
  // eslint overloads
305
- // eslint-disable-next-line sort-keys
307
+
306
308
  "class-methods-use-this": "off", // Handled by tseslint
307
309
  "default-param-last": "off", // Handled by tseslint
308
310
  "dot-notation": "off", // Handled by tseslint
@@ -326,7 +328,6 @@ export default tseslint.config(
326
328
  "prefer-promise-reject-errors": "off", // Handled by tseslint
327
329
  "require-await": "off", // Handled by tseslint
328
330
 
329
- // eslint-disable-next-line sort-keys
330
331
  "n/exports-style": ["error", "exports"],
331
332
  "n/file-extension-in-import": ["error", "always"],
332
333
  "n/no-deprecated-api": "error",
@@ -343,7 +344,7 @@ export default tseslint.config(
343
344
  "n/prefer-node-protocol": "error",
344
345
 
345
346
  // typescript-eslint
346
- // eslint-disable-next-line sort-keys
347
+
347
348
  "@typescript-eslint/adjacent-overload-signatures": "error",
348
349
  "@typescript-eslint/array-type": "error",
349
350
  "@typescript-eslint/await-thenable": "error",
@@ -582,11 +583,9 @@ export default tseslint.config(
582
583
  "unicorn/text-encoding-identifier-case": "error",
583
584
  "unicorn/throw-new-error": "error",
584
585
 
585
- // eslint-disable-next-line sort-keys
586
586
  "simple-import-sort/exports": "error",
587
587
  "simple-import-sort/imports": "error",
588
588
 
589
- // eslint-disable-next-line sort-keys
590
589
  "a11y/alt-text": "error",
591
590
  "a11y/anchor-ambiguous-text": "error",
592
591
  "a11y/anchor-has-content": "error",
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "16.0.1",
3
+ "version": "16.0.3",
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",