-
Notifications
You must be signed in to change notification settings - Fork 28
/
eslint.config.mjs
48 lines (41 loc) · 1.09 KB
/
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
41
42
43
44
45
46
47
48
import globals from 'globals';
import eslintJs from '@eslint/js';
import eslintN from 'eslint-plugin-n';
import eslintPrettierRecommended from 'eslint-plugin-prettier/recommended';
export default [
{
ignores: [
'tests/**/reference/**/*',
'build/tests/**/*',
// keys are manually parsed in process-test-directory.js and depend on format
'tests/resources/keys.mjs',
// Automated tests related resources
'__test__/__mocks__/tests/**/reference/**/*',
'__test__/build/tests/**/*',
],
},
eslintJs.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
ecmaVersion: 2021,
sourceType: 'module',
},
plugins: {
eslintN,
},
rules: {
'no-dupe-keys': 0,
'no-undef': 0,
'no-unused-vars': 0,
'n/no-process-exit': 0,
},
},
// https://github.com/prettier/eslint-plugin-prettier?tab=readme-ov-file#configuration-new-eslintconfigjs
eslintPrettierRecommended,
];