@abinnovision/eslint-config-base 3.3.0 → 3.4.0
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/CHANGELOG.md +7 -0
- package/dist/configs/base.cjs +20 -0
- package/dist/configs/base.mjs +20 -0
- package/dist/configs/flavour-config-files.cjs +1 -0
- package/dist/configs/flavour-config-files.mjs +1 -0
- package/dist/configs/flavour-vitest.cjs +1 -0
- package/dist/configs/flavour-vitest.mjs +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.4.0](https://github.com/abinnovision/js-commons/compare/eslint-config-base-v3.3.0...eslint-config-base-v3.4.0) (2026-04-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add complementary import-x rules to shared base config ([#602](https://github.com/abinnovision/js-commons/issues/602)) ([5e84da1](https://github.com/abinnovision/js-commons/commit/5e84da10aebab4f31ba2712d87c5ed65a71a9d13))
|
|
9
|
+
|
|
3
10
|
## [3.3.0](https://github.com/abinnovision/js-commons/compare/eslint-config-base-v3.2.2...eslint-config-base-v3.3.0) (2026-04-28)
|
|
4
11
|
|
|
5
12
|
|
package/dist/configs/base.cjs
CHANGED
|
@@ -99,6 +99,26 @@ const config = (0, eslint_config.defineConfig)([{
|
|
|
99
99
|
"import/exports-last": "warn",
|
|
100
100
|
"import/first": "error",
|
|
101
101
|
"import/newline-after-import": "error",
|
|
102
|
+
"import/no-duplicates": ["error", { "prefer-inline": false }],
|
|
103
|
+
"import/no-self-import": "error",
|
|
104
|
+
"import/no-useless-path-segments": "error",
|
|
105
|
+
"import/no-empty-named-blocks": "error",
|
|
106
|
+
"import/no-mutable-exports": "error",
|
|
107
|
+
"import/no-relative-packages": "error",
|
|
108
|
+
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
109
|
+
"import/no-extraneous-dependencies": ["error", {
|
|
110
|
+
devDependencies: [
|
|
111
|
+
"**/*.{test,spec}.{ts,tsx,js,jsx,mts,mjs,cts,cjs}",
|
|
112
|
+
"**/__tests__/**/*.{ts,tsx,js,jsx}",
|
|
113
|
+
"**/*.config.{ts,js,mts,mjs,cts,cjs}",
|
|
114
|
+
"**/vitest.config.{ts,js,mts,mjs}",
|
|
115
|
+
"**/eslint.config.{ts,js,mts,mjs}",
|
|
116
|
+
"**/scripts/**/*.{ts,js,mts,mjs,cts,cjs}"
|
|
117
|
+
],
|
|
118
|
+
optionalDependencies: false,
|
|
119
|
+
peerDependencies: true,
|
|
120
|
+
bundledDependencies: true
|
|
121
|
+
}],
|
|
102
122
|
"no-unused-vars": "off",
|
|
103
123
|
"uimports/no-unused-imports": "error",
|
|
104
124
|
"uimports/no-unused-vars": ["warn", {
|
package/dist/configs/base.mjs
CHANGED
|
@@ -94,6 +94,26 @@ const config = defineConfig([{
|
|
|
94
94
|
"import/exports-last": "warn",
|
|
95
95
|
"import/first": "error",
|
|
96
96
|
"import/newline-after-import": "error",
|
|
97
|
+
"import/no-duplicates": ["error", { "prefer-inline": false }],
|
|
98
|
+
"import/no-self-import": "error",
|
|
99
|
+
"import/no-useless-path-segments": "error",
|
|
100
|
+
"import/no-empty-named-blocks": "error",
|
|
101
|
+
"import/no-mutable-exports": "error",
|
|
102
|
+
"import/no-relative-packages": "error",
|
|
103
|
+
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
104
|
+
"import/no-extraneous-dependencies": ["error", {
|
|
105
|
+
devDependencies: [
|
|
106
|
+
"**/*.{test,spec}.{ts,tsx,js,jsx,mts,mjs,cts,cjs}",
|
|
107
|
+
"**/__tests__/**/*.{ts,tsx,js,jsx}",
|
|
108
|
+
"**/*.config.{ts,js,mts,mjs,cts,cjs}",
|
|
109
|
+
"**/vitest.config.{ts,js,mts,mjs}",
|
|
110
|
+
"**/eslint.config.{ts,js,mts,mjs}",
|
|
111
|
+
"**/scripts/**/*.{ts,js,mts,mjs,cts,cjs}"
|
|
112
|
+
],
|
|
113
|
+
optionalDependencies: false,
|
|
114
|
+
peerDependencies: true,
|
|
115
|
+
bundledDependencies: true
|
|
116
|
+
}],
|
|
97
117
|
"no-unused-vars": "off",
|
|
98
118
|
"uimports/no-unused-imports": "error",
|
|
99
119
|
"uimports/no-unused-vars": ["warn", {
|
|
@@ -41,6 +41,7 @@ const config = (0, eslint_config.defineConfig)([{
|
|
|
41
41
|
"@typescript-eslint/no-empty-function": "off",
|
|
42
42
|
"no-magic-numbers": "off",
|
|
43
43
|
"no-console": "off",
|
|
44
|
+
"import/no-extraneous-dependencies": "off",
|
|
44
45
|
"vitest/no-focused-tests": "error",
|
|
45
46
|
"vitest/no-disabled-tests": "warn",
|
|
46
47
|
"vitest/prefer-lowercase-title": "warn",
|
|
@@ -39,6 +39,7 @@ const config = defineConfig([{
|
|
|
39
39
|
"@typescript-eslint/no-empty-function": "off",
|
|
40
40
|
"no-magic-numbers": "off",
|
|
41
41
|
"no-console": "off",
|
|
42
|
+
"import/no-extraneous-dependencies": "off",
|
|
42
43
|
"vitest/no-focused-tests": "error",
|
|
43
44
|
"vitest/no-disabled-tests": "warn",
|
|
44
45
|
"vitest/prefer-lowercase-title": "warn",
|