|
1 | 1 | import globals from 'globals' |
2 | | -import { pluginUnusedImports } from '../plugins' |
3 | 2 | import { GLOB_SRC, GLOB_SRC_EXT } from '../constants/glob' |
| 3 | +import { pluginUnusedImports } from '../plugins' |
4 | 4 | import type { |
5 | 5 | OptionsIsInEditor, |
6 | 6 | OptionsOverrides, |
7 | 7 | TypedFlatConfigItem, |
8 | 8 | } from '../types' |
9 | 9 |
|
10 | | -export async function javascript( |
| 10 | +export function javascript( |
11 | 11 | options: OptionsIsInEditor & OptionsOverrides = {}, |
12 | | -): Promise<TypedFlatConfigItem[]> { |
| 12 | +): TypedFlatConfigItem[] { |
13 | 13 | const { isInEditor = false, overrides = {} } = options |
14 | 14 |
|
15 | 15 | return [ |
@@ -218,16 +218,8 @@ export async function javascript( |
218 | 218 | 'prefer-rest-params': 'error', |
219 | 219 | 'prefer-spread': 'error', |
220 | 220 | 'prefer-template': 'error', |
221 | | - 'sort-imports': [ |
222 | | - 'error', |
223 | | - { |
224 | | - allowSeparatedGroups: false, |
225 | | - ignoreCase: false, |
226 | | - ignoreDeclarationSort: true, |
227 | | - ignoreMemberSort: false, |
228 | | - memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'], |
229 | | - }, |
230 | | - ], |
| 221 | + 'require-await': 'error', |
| 222 | + 'require-yield': 'error', |
231 | 223 |
|
232 | 224 | 'symbol-description': 'error', |
233 | 225 | 'unicode-bom': ['error', 'never'], |
|
0 commit comments