Skip to content

Commit ff8716d

Browse files
committed
chore: wip
1 parent bf93788 commit ff8716d

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

storage/framework/core/eslint-config/src/configs/comments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function comments(): Promise<FlatConfigItem[]> {
1111
rules: {
1212
'eslint-comments/no-aggregating-enable': 'error',
1313
'eslint-comments/no-duplicate-disable': 'error',
14-
// 'eslint-comments/no-unlimited-disable': 'error',
14+
'eslint-comments/no-unlimited-disable': 'error',
1515
'eslint-comments/no-unused-enable': 'error',
1616
},
1717
},

storage/framework/core/eslint-config/src/configs/imports.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { FlatConfigItem, OptionsStylistic } from '../types'
22
import { pluginAntfu, pluginImport } from '../plugins'
3+
import { GLOB_SRC_EXT } from '../globs'
34

45
export async function imports(options: OptionsStylistic = {}): Promise<FlatConfigItem[]> {
56
const {
@@ -33,5 +34,13 @@ export async function imports(options: OptionsStylistic = {}): Promise<FlatConfi
3334
: {},
3435
},
3536
},
37+
{
38+
files: ['**/bin/**/*', `**/bin.${GLOB_SRC_EXT}`],
39+
name: 'antfu:imports:bin',
40+
rules: {
41+
'antfu/no-import-dist': 'off',
42+
'antfu/no-import-node-modules-by-path': 'off',
43+
},
44+
},
3645
]
3746
}

storage/framework/core/eslint-config/src/configs/svelte.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export async function svelte(
4747
},
4848
},
4949
name: 'antfu:svelte:rules',
50+
processor: pluginSvelte.processors['.svelte'],
5051
rules: {
5152
'import/no-mutable-exports': 'off',
5253
'no-undef': 'off', // incompatible with most recent (attribute-form) generic types RFC

storage/framework/core/eslint-config/src/configs/unicorn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function unicorn(): Promise<FlatConfigItem[]> {
2626
// includes over indexOf when checking for existence
2727
'unicorn/prefer-includes': 'error',
2828
// Prefer using the node: protocol
29-
// 'unicorn/prefer-node-protocol': 'error',
29+
'unicorn/prefer-node-protocol': 'error',
3030
// Prefer using number properties like `Number.isNaN` rather than `isNaN`
3131
'unicorn/prefer-number-properties': 'error',
3232
// String methods startsWith/endsWith instead of more complicated stuff

storage/framework/core/eslint-config/src/configs/vue.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export async function vue(
102102
'vue/multi-word-component-names': 'off',
103103
'vue/no-dupe-keys': 'off',
104104
'vue/no-empty-pattern': 'error',
105-
'vue/no-extra-parens': ['error', 'functions'],
106105
'vue/no-irregular-whitespace': 'error',
107106
'vue/no-loss-of-precision': 'error',
108107
'vue/no-restricted-syntax': [

storage/framework/core/eslint-config/src/factory.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export async function antfu(
117117
configs.push(typescript({
118118
...resolveSubOptions(options, 'typescript'),
119119
componentExts,
120+
overrides: getOverrides(options, 'typescript'),
120121
}))
121122
}
122123

@@ -137,19 +138,12 @@ export async function antfu(
137138
if (enableVue) {
138139
configs.push(vue({
139140
...resolveSubOptions(options, 'vue'),
141+
overrides: getOverrides(options, 'vue'),
140142
stylistic: stylisticOptions,
141143
typescript: !!enableTypeScript,
142144
}))
143145
}
144146

145-
// if (enableStacks) {
146-
// configs.push(stacks({
147-
// ...resolveSubOptions(options, 'stacks'),
148-
// stylistic: stylisticOptions,
149-
// typescript: !!enableTypeScript,
150-
// }))
151-
// }
152-
153147
if (enableReact) {
154148
configs.push(react({
155149
overrides: getOverrides(options, 'react'),

0 commit comments

Comments
 (0)