-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
47 lines (47 loc) · 931 Bytes
/
Copy path.eslintrc.js
File metadata and controls
47 lines (47 loc) · 931 Bytes
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
module.exports = {
root: true,
env: {
node: true,
es2022: true,
jest: true,
browser: true,
},
extends: [
'eslint:recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'no-console': 'off',
'no-debugger': 'off',
'no-undef': 'off',
'no-case-declarations': 'off',
'no-dupe-keys': 'off',
'no-useless-escape': 'off',
},
globals: {
'React': 'readonly',
'RequestInit': 'readonly',
'HeadersInit': 'readonly',
},
ignorePatterns: [
'node_modules/',
'dist/',
'build/',
'coverage/',
'*.config.js',
'*.config.ts',
'test-*.js',
'demo-*.js',
'scripts/',
'website/src/app/demo/',
'__tests__/',
'packages/eslint-rules/',
],
};