-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
74 lines (72 loc) · 1.86 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'next',
'next/core-web-vitals',
'plugin:@typescript-eslint/recommended',
'prettier'
],
overrides: [
{
env: {
node: true
},
files: ['.eslintrc.{js,cjs}']
}
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'eslint-plugin-prettier'],
ignorePatterns: ['components/ui/*'], // ignore lint for all files in the /components folder
rules: {
'react/no-unescaped-entities': 'off',
'@next/next/no-page-custom-font': 'off',
'template-curly-spacing': 'off',
'no-template-curly-in-string': 'off',
indent: 'off',
camelcase: 'off',
'no-return-assign': 'off',
'one-var': 'off',
'no-prototype-builtins': 'warn',
'prefer-promise-reject-errors': 'off',
'standard/object-curly-even-spacing': 'off',
'react/prop-types': 'off',
'react/no-unused-prop-types': 'off',
'react/self-closing-comp': 'off',
'react/jsx-boolean-value': 'off',
'react/jsx-pascal-case': 'off',
'react/jsx-handler-names': 'off',
// 'react-hooks/exhaustive-deps': 'off',
'react/jsx-indent-props': [2, 2],
'jsx-quotes': ['error', 'prefer-double'],
'space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}
],
'no-unused-vars': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'no-use-before-define': 'off',
'prettier/prettier': [
'warn',
{
arrowParens: 'avoid',
trailingComma: 'none',
semi: false,
endOfLine: 'auto',
tabWidth: 2,
printWidth: 80,
useTabs: false,
singleQuote: true,
jsxSingleQuote: false
}
],
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'off'
}
}