-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
eslint.config.mjs
40 lines (38 loc) · 1023 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
export default defineConfig([
js.configs.recommended,
...tseslint.configs.recommended,
{
ignores: [
'**/dist',
'tsconfig.json',
'.cache-eslint-remote-tester',
'docs',
],
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
files: ['*config*', 'ci/**', '**/test/**/*.ts*', '**/*.js', '**/*.cjs'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
languageOptions: {
globals: {
require: 'readonly',
module: 'readonly',
process: 'readonly',
},
},
},
eslintPluginPrettierRecommended,
]);
/** @param config {import('eslint').Linter.FlatConfig} */
function defineConfig(config) {
return config;
}