File tree Expand file tree Collapse file tree 6 files changed +14
-11
lines changed
storage/framework/core/eslint-config/src Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export async function comments(): Promise<FlatConfigItem[]> {
11
11
rules : {
12
12
'eslint-comments/no-aggregating-enable' : 'error' ,
13
13
'eslint-comments/no-duplicate-disable' : 'error' ,
14
- // 'eslint-comments/no-unlimited-disable': 'error',
14
+ 'eslint-comments/no-unlimited-disable' : 'error' ,
15
15
'eslint-comments/no-unused-enable' : 'error' ,
16
16
} ,
17
17
} ,
Original file line number Diff line number Diff line change 1
1
import type { FlatConfigItem , OptionsStylistic } from '../types'
2
2
import { pluginAntfu , pluginImport } from '../plugins'
3
+ import { GLOB_SRC_EXT } from '../globs'
3
4
4
5
export async function imports ( options : OptionsStylistic = { } ) : Promise < FlatConfigItem [ ] > {
5
6
const {
@@ -33,5 +34,13 @@ export async function imports(options: OptionsStylistic = {}): Promise<FlatConfi
33
34
: { } ,
34
35
} ,
35
36
} ,
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
+ } ,
36
45
]
37
46
}
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ export async function svelte(
47
47
} ,
48
48
} ,
49
49
name : 'antfu:svelte:rules' ,
50
+ processor : pluginSvelte . processors [ '.svelte' ] ,
50
51
rules : {
51
52
'import/no-mutable-exports' : 'off' ,
52
53
'no-undef' : 'off' , // incompatible with most recent (attribute-form) generic types RFC
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export async function unicorn(): Promise<FlatConfigItem[]> {
26
26
// includes over indexOf when checking for existence
27
27
'unicorn/prefer-includes' : 'error' ,
28
28
// Prefer using the node: protocol
29
- // 'unicorn/prefer-node-protocol': 'error',
29
+ 'unicorn/prefer-node-protocol' : 'error' ,
30
30
// Prefer using number properties like `Number.isNaN` rather than `isNaN`
31
31
'unicorn/prefer-number-properties' : 'error' ,
32
32
// String methods startsWith/endsWith instead of more complicated stuff
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ export async function vue(
102
102
'vue/multi-word-component-names' : 'off' ,
103
103
'vue/no-dupe-keys' : 'off' ,
104
104
'vue/no-empty-pattern' : 'error' ,
105
- 'vue/no-extra-parens' : [ 'error' , 'functions' ] ,
106
105
'vue/no-irregular-whitespace' : 'error' ,
107
106
'vue/no-loss-of-precision' : 'error' ,
108
107
'vue/no-restricted-syntax' : [
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ export async function antfu(
117
117
configs . push ( typescript ( {
118
118
...resolveSubOptions ( options , 'typescript' ) ,
119
119
componentExts,
120
+ overrides : getOverrides ( options , 'typescript' ) ,
120
121
} ) )
121
122
}
122
123
@@ -137,19 +138,12 @@ export async function antfu(
137
138
if ( enableVue ) {
138
139
configs . push ( vue ( {
139
140
...resolveSubOptions ( options , 'vue' ) ,
141
+ overrides : getOverrides ( options , 'vue' ) ,
140
142
stylistic : stylisticOptions ,
141
143
typescript : ! ! enableTypeScript ,
142
144
} ) )
143
145
}
144
146
145
- // if (enableStacks) {
146
- // configs.push(stacks({
147
- // ...resolveSubOptions(options, 'stacks'),
148
- // stylistic: stylisticOptions,
149
- // typescript: !!enableTypeScript,
150
- // }))
151
- // }
152
-
153
147
if ( enableReact ) {
154
148
configs . push ( react ( {
155
149
overrides : getOverrides ( options , 'react' ) ,
You can’t perform that action at this time.
0 commit comments