|
| 1 | +/** |
| 2 | + * @license |
| 3 | + * Copyright Google LLC All Rights Reserved. |
| 4 | + * |
| 5 | + * Use of this source code is governed by an MIT-style license that can be |
| 6 | + * found in the LICENSE file at https://angular.dev/license |
| 7 | + */ |
| 8 | + |
1 | 9 | import { fixupConfigRules, fixupPluginRules } from '@eslint/compat'; |
| 10 | +import { FlatCompat } from '@eslint/eslintrc'; |
| 11 | +import js from '@eslint/js'; |
2 | 12 | import stylistic from '@stylistic/eslint-plugin'; |
3 | 13 | import typescriptEslint from '@typescript-eslint/eslint-plugin'; |
4 | | -import _import from 'eslint-plugin-import'; |
| 14 | +import tsParser from '@typescript-eslint/parser'; |
5 | 15 | import header from 'eslint-plugin-header'; |
| 16 | +import _import from 'eslint-plugin-import'; |
6 | 17 | import globals from 'globals'; |
7 | | -import tsParser from '@typescript-eslint/parser'; |
8 | | -import path from 'node:path'; |
9 | | -import { fileURLToPath } from 'node:url'; |
10 | | -import js from '@eslint/js'; |
11 | | -import { FlatCompat } from '@eslint/eslintrc'; |
12 | 18 |
|
13 | | -const __filename = fileURLToPath(import.meta.url); |
14 | | -const __dirname = path.dirname(__filename); |
15 | 19 | const compat = new FlatCompat({ |
16 | | - baseDirectory: __dirname, |
| 20 | + baseDirectory: import.meta.dirname, |
17 | 21 | recommendedConfig: js.configs.recommended, |
18 | 22 | allConfig: js.configs.all, |
19 | 23 | }); |
@@ -185,6 +189,7 @@ export default [ |
185 | 189 | }, |
186 | 190 | ], |
187 | 191 |
|
| 192 | + '@typescript-eslint/await-thenable': 'off', |
188 | 193 | '@typescript-eslint/ban-types': 'off', |
189 | 194 | '@typescript-eslint/no-implied-eval': 'off', |
190 | 195 | '@typescript-eslint/no-var-requires': 'off', |
|
0 commit comments