@knapsack/eslint-config-starter 4.89.7--canary.7141.0f67f1c.0 → 4.89.7--canary.db3ed2c.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/eslint-config-base.js +10 -0
- package/package.json +4 -4
package/eslint-config-base.js
CHANGED
|
@@ -56,6 +56,16 @@ module.exports = {
|
|
|
56
56
|
files: ['*.ts', '*.tsx', '*.mts'],
|
|
57
57
|
extends: ['plugin:@typescript-eslint/recommended'],
|
|
58
58
|
rules: {
|
|
59
|
+
// Enforce type imports to keep JS bundles small
|
|
60
|
+
// Uses inline style: `import { type Thing }` instead of `import type { Thing }`
|
|
61
|
+
// This reduces merge conflicts when adding non-type imports to the same statement
|
|
62
|
+
'@typescript-eslint/consistent-type-imports': [
|
|
63
|
+
'error',
|
|
64
|
+
{
|
|
65
|
+
prefer: 'type-imports',
|
|
66
|
+
fixStyle: 'inline-type-imports',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
59
69
|
// @TODO: KSP-4627: re-enable 'jsx-a11y/control-has-associated-label'
|
|
60
70
|
'jsx-a11y/control-has-associated-label': [0],
|
|
61
71
|
'@typescript-eslint/no-explicit-any': [1],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knapsack/eslint-config-starter",
|
|
3
3
|
"description": "ESlint Config",
|
|
4
|
-
"version": "4.89.7--canary.
|
|
4
|
+
"version": "4.89.7--canary.db3ed2c.0",
|
|
5
5
|
"bin": "./bin.js",
|
|
6
6
|
"main": "eslint-config-base.js",
|
|
7
7
|
"exports": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"start": "tsc --watch"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@knapsack/creator-utils": "4.89.7--canary.
|
|
28
|
-
"@knapsack/prettier-config": "4.89.7--canary.
|
|
27
|
+
"@knapsack/creator-utils": "4.89.7--canary.db3ed2c.0",
|
|
28
|
+
"@knapsack/prettier-config": "4.89.7--canary.db3ed2c.0",
|
|
29
29
|
"@rushstack/eslint-patch": "^1.8.0",
|
|
30
30
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
31
31
|
"@typescript-eslint/parser": "^7.18.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"directory": "tools/eslint-config-starter",
|
|
59
59
|
"type": "git"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "db3ed2c4b8c3e5e965045dda706eeae21e26c39e"
|
|
62
62
|
}
|