@kouts/eslint-config 1.3.8 → 1.3.9
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 +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -493,6 +493,8 @@ const config = (options) => {
|
|
|
493
493
|
},
|
|
494
494
|
...opts.ts ? pluginImportTypescript : {},
|
|
495
495
|
rules: {
|
|
496
|
+
// TypeScript compilation already ensures that named imports exist in the referenced module
|
|
497
|
+
...opts.ts ? { "import/named": "off" } : {},
|
|
496
498
|
"import/export": "error",
|
|
497
499
|
"import/first": "error",
|
|
498
500
|
"import/no-duplicates": "error",
|
package/dist/index.js
CHANGED
|
@@ -492,6 +492,8 @@ const config = (options) => {
|
|
|
492
492
|
},
|
|
493
493
|
...opts.ts ? pluginImportTypescript : {},
|
|
494
494
|
rules: {
|
|
495
|
+
// TypeScript compilation already ensures that named imports exist in the referenced module
|
|
496
|
+
...opts.ts ? { "import/named": "off" } : {},
|
|
495
497
|
"import/export": "error",
|
|
496
498
|
"import/first": "error",
|
|
497
499
|
"import/no-duplicates": "error",
|