@vortiquo/eslint-config 1.2.0 → 1.2.1
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/base-typescript.js +4 -13
- package/package.json +3 -1
package/base-typescript.js
CHANGED
|
@@ -101,6 +101,8 @@ export const baseTypescript = [
|
|
|
101
101
|
},
|
|
102
102
|
// Disable type-aware linting for config files (typically not in tsconfig)
|
|
103
103
|
{
|
|
104
|
+
// Spread disableTypeChecked FIRST, then override with our settings
|
|
105
|
+
...tseslint.configs.disableTypeChecked,
|
|
104
106
|
name: 'vortiquo/typescript/config-files',
|
|
105
107
|
files: [
|
|
106
108
|
'**/*.config.{js,ts,mjs,cjs}',
|
|
@@ -122,19 +124,8 @@ export const baseTypescript = [
|
|
|
122
124
|
},
|
|
123
125
|
},
|
|
124
126
|
rules: {
|
|
125
|
-
//
|
|
126
|
-
|
|
127
|
-
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
128
|
-
'@typescript-eslint/no-unsafe-call': 'off',
|
|
129
|
-
'@typescript-eslint/no-unsafe-return': 'off',
|
|
130
|
-
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
131
|
-
'@typescript-eslint/require-await': 'off',
|
|
132
|
-
'@typescript-eslint/no-floating-promises': 'off',
|
|
133
|
-
'@typescript-eslint/await-thenable': 'off',
|
|
134
|
-
'@typescript-eslint/no-misused-promises': 'off',
|
|
135
|
-
'@typescript-eslint/no-unnecessary-condition': 'off',
|
|
136
|
-
'@typescript-eslint/strict-boolean-expressions': 'off',
|
|
137
|
-
'@typescript-eslint/consistent-type-exports': 'off',
|
|
127
|
+
// Spread the disableTypeChecked rules first, then add our overrides
|
|
128
|
+
...tseslint.configs.disableTypeChecked.rules,
|
|
138
129
|
// Relax strictness for config files
|
|
139
130
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
140
131
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vortiquo/eslint-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Modern ESLint v9 flat configurations with TypeScript, React, Next.js, and Node.js support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
"lint": "ls-lint",
|
|
15
15
|
"format": "prettier --write .",
|
|
16
16
|
"format:check": "prettier --check .",
|
|
17
|
+
"test": "node scripts/validate-configs.js",
|
|
18
|
+
"prepack": "node scripts/validate-configs.js",
|
|
17
19
|
"commit": "cz",
|
|
18
20
|
"prepare": "husky"
|
|
19
21
|
},
|