-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
40 lines (40 loc) · 905 Bytes
/
.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
/* eslint-disable @typescript-eslint/naming-convention */
module.exports = {
extends: [
'next/core-web-vitals',
'eslint-config-tc',
'eslint-config-typescript-tc',
'eslint-config-react-tc',
],
rules: {
'jest/no-deprecated-functions': 'off',
'react/react-in-jsx-scope': 'off',
'max-lines-per-function': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'react/require-default-props': 'off',
'unicorn/filename-case': [
'error',
{
case: 'camelCase',
},
],
'prettier/prettier': [
'error',
{
bracketSpacing: true,
printWidth: 80,
singleQuote: true,
endOfLine: 'auto',
},
],
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
},
plugins: ['@typescript-eslint'],
root: true,
};