-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.js
52 lines (52 loc) · 1.44 KB
/
.eslintrc.js
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
50
51
52
module.exports = {
parser: '@typescript-eslint/parser',
env: {
browser: true,
es2021: true
},
extends: [
'next/core-web-vitals',
'plugin:react/recommended',
'standard-with-typescript'
],
overrides: [
{
files: ['*.ts', '*.tsx'],
// extends: [
// 'plugin:@typescript-eslint/recommended',
// 'plugin:@typescript-eslint/recommended-requiring-type-checking'
// ],
parserOptions: {
project: ['./tsconfig.json']
}
}
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: [
'react',
'@typescript-eslint',
'only-warn'
],
rules: {
'react/react-in-jsx-scope': 0,
'@typescript-eslint/explicit-function-return-type': 'off',
'semi': ['error', 'always'],
'@typescript-eslint/semi': ['error', 'always'],
'quote-props': 0,
'comma-dangle': 0,
'@typescript-eslint/comma-dangle': 0,
'space-before-function-paren': ['error', 'never'],
'@typescript-eslint/space-before-function-paren': ['error', 'never'],
'@typescript-eslint/strict-boolean-expressions': 0,
'@typescript-eslint/no-confusing-void-expression': 0,
'@typescript-eslint/consistent-type-assertions': 0,
'no-use-before-define': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/restrict-template-expressions': 0,
'no-floating-decimal': 0,
'@typescript-eslint/consistent-indexed-object-style': 0,
}
};