@kouts/eslint-config 1.3.20 → 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 -3
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -334,8 +334,6 @@ const typescript = [
|
|
|
334
334
|
{
|
|
335
335
|
name: "kouts/typescript",
|
|
336
336
|
rules: {
|
|
337
|
-
// Disable 'no-unused-vars' since TypeScript has its own version
|
|
338
|
-
"no-unused-vars": "off",
|
|
339
337
|
// Prefer T[] instead of Array<T>
|
|
340
338
|
"@typescript-eslint/array-type": ["error", { default: "array" }],
|
|
341
339
|
// Prefer type over interface for objects
|
|
@@ -496,7 +494,11 @@ const config = (options) => {
|
|
|
496
494
|
...opts.ts ? pluginImportTypescript : {},
|
|
497
495
|
rules: {
|
|
498
496
|
// TypeScript compilation already ensures that named imports exist in the referenced module
|
|
499
|
-
|
|
497
|
+
// and has its own version of no-unused-vars
|
|
498
|
+
...opts.ts ? {
|
|
499
|
+
"import/named": "off",
|
|
500
|
+
"no-unused-vars": "off"
|
|
501
|
+
} : {},
|
|
500
502
|
"import/export": "error",
|
|
501
503
|
"import/first": "error",
|
|
502
504
|
"import/no-duplicates": "error",
|
package/dist/index.js
CHANGED
|
@@ -333,8 +333,6 @@ const typescript = [
|
|
|
333
333
|
{
|
|
334
334
|
name: "kouts/typescript",
|
|
335
335
|
rules: {
|
|
336
|
-
// Disable 'no-unused-vars' since TypeScript has its own version
|
|
337
|
-
"no-unused-vars": "off",
|
|
338
336
|
// Prefer T[] instead of Array<T>
|
|
339
337
|
"@typescript-eslint/array-type": ["error", { default: "array" }],
|
|
340
338
|
// Prefer type over interface for objects
|
|
@@ -495,7 +493,11 @@ const config = (options) => {
|
|
|
495
493
|
...opts.ts ? pluginImportTypescript : {},
|
|
496
494
|
rules: {
|
|
497
495
|
// TypeScript compilation already ensures that named imports exist in the referenced module
|
|
498
|
-
|
|
496
|
+
// and has its own version of no-unused-vars
|
|
497
|
+
...opts.ts ? {
|
|
498
|
+
"import/named": "off",
|
|
499
|
+
"no-unused-vars": "off"
|
|
500
|
+
} : {},
|
|
499
501
|
"import/export": "error",
|
|
500
502
|
"import/first": "error",
|
|
501
503
|
"import/no-duplicates": "error",
|