-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
41 lines (41 loc) · 1.13 KB
/
Copy path.eslintrc.js
File metadata and controls
41 lines (41 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
module.exports = {
env: {
es2021: true,
node: true,
browser: true
},
globals: { connection: 'writable', db: 'writable' },
extends: [
'plugin:@next/next/recommended',
'plugin:react/recommended',
'standard',
'standard-jsx',
'standard-react'
],
plugins: ['react', 'react-hooks'],
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
ecmaFeatures: { jsx: true, impliedStrict: true }
},
overrides: [
{
extends: ['standard-with-typescript'],
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
rules: {
// Make TypeScript ESLint less strict.
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/no-dynamic-delete': 'off'
}
}
],
rules: {
'react/react-in-jsx-scope': 'off',
'react/no-unknown-property': ['error', { ignore: ['jsx', 'global'] }]
}
}