-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
49 lines (45 loc) · 1.13 KB
/
.eslintrc.cjs
File metadata and controls
49 lines (45 loc) · 1.13 KB
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
49
module.exports = {
root: true,
extends: [
'@block65/eslint-config',
'@block65/eslint-config/typescript',
'@block65/eslint-config/react',
],
parserOptions: {
project: [
'./tsconfig.json',
'./examples/browser/tsconfig.json',
'./examples/browser/tsconfig-sw.json',
'./examples/browser/tsconfig.node.json',
'./examples/nodejs/tsconfig.json',
'./examples/cloudflare-workers/tsconfig.json',
'./packages/web-push/tsconfig.json',
'./packages/web-push/test/tsconfig.json',
],
},
rules: {
'no-console': 'off',
},
overrides: [
{
files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
rules: {
'no-restricted-syntax': 'off',
'@typescript-eslint/no-import-type-side-effects': 'error',
},
},
{
files: ['**/*.test.ts', '**/*.test.tsx', '**/test/*.ts'],
rules: {
'@typescript-eslint/consistent-type-imports': 'off',
'import/no-extraneous-dependencies': 'off',
},
},
{
files: ['*.config.js', '*.config.ts'],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
],
};