@kouts/eslint-config 1.3.19 → 1.3.21
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/dist/index.cjs +5 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -494,7 +494,11 @@ const config = (options) => {
|
|
|
494
494
|
...opts.ts ? pluginImportTypescript : {},
|
|
495
495
|
rules: {
|
|
496
496
|
// TypeScript compilation already ensures that named imports exist in the referenced module
|
|
497
|
-
|
|
497
|
+
// and has its own version of no-unused-vars
|
|
498
|
+
...opts.ts ? {
|
|
499
|
+
"import/named": "off",
|
|
500
|
+
"no-unused-vars": "off"
|
|
501
|
+
} : {},
|
|
498
502
|
"import/export": "error",
|
|
499
503
|
"import/first": "error",
|
|
500
504
|
"import/no-duplicates": "error",
|
package/dist/index.js
CHANGED
|
@@ -493,7 +493,11 @@ const config = (options) => {
|
|
|
493
493
|
...opts.ts ? pluginImportTypescript : {},
|
|
494
494
|
rules: {
|
|
495
495
|
// TypeScript compilation already ensures that named imports exist in the referenced module
|
|
496
|
-
|
|
496
|
+
// and has its own version of no-unused-vars
|
|
497
|
+
...opts.ts ? {
|
|
498
|
+
"import/named": "off",
|
|
499
|
+
"no-unused-vars": "off"
|
|
500
|
+
} : {},
|
|
497
501
|
"import/export": "error",
|
|
498
502
|
"import/first": "error",
|
|
499
503
|
"import/no-duplicates": "error",
|