@ethang/eslint-config 16.0.0 → 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 -8
- 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",
|
|
@@ -336,7 +338,6 @@ export default tseslint.config(
|
|
|
336
338
|
"n/no-missing-import": "error",
|
|
337
339
|
"n/no-missing-require": "error",
|
|
338
340
|
"n/no-unpublished-bin": "error",
|
|
339
|
-
"n/no-unpublished-import": "error",
|
|
340
341
|
"n/no-unpublished-require": "error",
|
|
341
342
|
"n/no-unsupported-features/es-builtins": "error",
|
|
342
343
|
"n/no-unsupported-features/es-syntax": "error",
|
|
@@ -344,7 +345,7 @@ export default tseslint.config(
|
|
|
344
345
|
"n/prefer-node-protocol": "error",
|
|
345
346
|
|
|
346
347
|
// typescript-eslint
|
|
347
|
-
|
|
348
|
+
|
|
348
349
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
349
350
|
"@typescript-eslint/array-type": "error",
|
|
350
351
|
"@typescript-eslint/await-thenable": "error",
|
|
@@ -583,11 +584,9 @@ export default tseslint.config(
|
|
|
583
584
|
"unicorn/text-encoding-identifier-case": "error",
|
|
584
585
|
"unicorn/throw-new-error": "error",
|
|
585
586
|
|
|
586
|
-
// eslint-disable-next-line sort-keys
|
|
587
587
|
"simple-import-sort/exports": "error",
|
|
588
588
|
"simple-import-sort/imports": "error",
|
|
589
589
|
|
|
590
|
-
// eslint-disable-next-line sort-keys
|
|
591
590
|
"a11y/alt-text": "error",
|
|
592
591
|
"a11y/anchor-ambiguous-text": "error",
|
|
593
592
|
"a11y/anchor-has-content": "error",
|