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