Skip to content

Commit 3164bc2

Browse files
committed
build: disable eslint await-thenable
This was recently introduced and there are a number of intentional parts that our code does not conform. (cherry picked from commit 20a276c)
1 parent 5b804a5 commit 3164bc2

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

eslint.config.mjs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
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+
19
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat';
10+
import { FlatCompat } from '@eslint/eslintrc';
11+
import js from '@eslint/js';
212
import stylistic from '@stylistic/eslint-plugin';
313
import typescriptEslint from '@typescript-eslint/eslint-plugin';
4-
import _import from 'eslint-plugin-import';
14+
import tsParser from '@typescript-eslint/parser';
515
import header from 'eslint-plugin-header';
16+
import _import from 'eslint-plugin-import';
617
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';
1218

13-
const __filename = fileURLToPath(import.meta.url);
14-
const __dirname = path.dirname(__filename);
1519
const compat = new FlatCompat({
16-
baseDirectory: __dirname,
20+
baseDirectory: import.meta.dirname,
1721
recommendedConfig: js.configs.recommended,
1822
allConfig: js.configs.all,
1923
});
@@ -185,6 +189,7 @@ export default [
185189
},
186190
],
187191

192+
'@typescript-eslint/await-thenable': 'off',
188193
'@typescript-eslint/ban-types': 'off',
189194
'@typescript-eslint/no-implied-eval': 'off',
190195
'@typescript-eslint/no-var-requires': 'off',

0 commit comments

Comments
 (0)