@st1ggy/linter-config 6.3.0 → 6.3.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-04-10T20:
|
|
3
|
-
"source": "@st1ggy/linter-config@6.3.
|
|
2
|
+
"generatedAt": "2026-04-10T20:19:22.957Z",
|
|
3
|
+
"source": "@st1ggy/linter-config@6.3.1 (local tree)",
|
|
4
4
|
"linterConfigRoot": "/Users/dnbragin/Projects/personal/linter-config",
|
|
5
5
|
"flatConfigs": {
|
|
6
6
|
"eslint-common": {
|
|
@@ -6369,7 +6369,7 @@
|
|
|
6369
6369
|
"eslint-svelte": {
|
|
6370
6370
|
"module": "src/eslint/eslint-svelte.config.js",
|
|
6371
6371
|
"sampleFile": "src/examples/example.svelte",
|
|
6372
|
-
"ruleCount":
|
|
6372
|
+
"ruleCount": 940,
|
|
6373
6373
|
"rules": {
|
|
6374
6374
|
"@babel/object-curly-spacing": "off",
|
|
6375
6375
|
"@babel/semi": "off",
|
|
@@ -7005,7 +7005,6 @@
|
|
|
7005
7005
|
"@typescript-eslint/consistent-generic-constructors": "error",
|
|
7006
7006
|
"@typescript-eslint/consistent-indexed-object-style": "error",
|
|
7007
7007
|
"@typescript-eslint/consistent-type-assertions": "error",
|
|
7008
|
-
"@typescript-eslint/consistent-type-definitions": "error",
|
|
7009
7008
|
"@typescript-eslint/func-call-spacing": "off",
|
|
7010
7009
|
"@typescript-eslint/indent": "off",
|
|
7011
7010
|
"@typescript-eslint/key-spacing": "off",
|
package/package.json
CHANGED
package/scripts/inventory.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { fileURLToPath } from 'node:url'
|
|
|
12
12
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
13
13
|
const LINTER_ROOT = process.env.LINTER_CONFIG_ROOT ?? path.resolve(__dirname, '..')
|
|
14
14
|
|
|
15
|
-
const SOURCE_LABEL = '@st1ggy/linter-config@6.3.
|
|
15
|
+
const SOURCE_LABEL = '@st1ggy/linter-config@6.3.1 (local tree)'
|
|
16
16
|
|
|
17
17
|
const flatConfigPresets = [
|
|
18
18
|
{
|
|
@@ -3,9 +3,25 @@ import { configs } from 'typescript-eslint'
|
|
|
3
3
|
|
|
4
4
|
import { filesTypeAware } from './constants.js'
|
|
5
5
|
|
|
6
|
+
// `flat/stylistic` enables `@typescript-eslint/consistent-type-definitions` as `'error'` only, which
|
|
7
|
+
// uses the rule default (`interface`). Strip it here so we set `type` explicitly below.
|
|
8
|
+
const stylisticWithoutTypeDefinitionStyle = configs.stylistic.map((block) => {
|
|
9
|
+
const rules = block.rules
|
|
10
|
+
|
|
11
|
+
if (!rules?.['@typescript-eslint/consistent-type-definitions']) {
|
|
12
|
+
return block
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const nextRules = { ...rules }
|
|
16
|
+
|
|
17
|
+
delete nextRules['@typescript-eslint/consistent-type-definitions']
|
|
18
|
+
|
|
19
|
+
return { ...block, rules: nextRules }
|
|
20
|
+
})
|
|
21
|
+
|
|
6
22
|
export default defineConfig([
|
|
7
23
|
...configs.recommended,
|
|
8
|
-
...
|
|
24
|
+
...stylisticWithoutTypeDefinitionStyle,
|
|
9
25
|
{
|
|
10
26
|
files: filesTypeAware,
|
|
11
27
|
languageOptions: {
|