-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
37 lines (35 loc) · 1.1 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
env: { browser: true, node: true, es6: true },
settings: { react: { version: 'detect' } },
extends: [
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
// 'next',
// 'next/core-web-vitals',
'plugin:@next/next/recommended',
'prettier',
],
rules: {
// '@typescript-eslint/semi': 0,
// 'import/prefer-default-export': 0,
// 'react/destructuring-assignment': 0,
'prettier/prettier': 2,
'jsx-quotes': 2,
'react/jsx-curly-brace-presence': 2,
'react/prop-types': 0, // TS handles this
// '@typescript-eslint/explicit-function-return-type': 0,
// '@typescript-eslint/indent': 0,
'react/require-default-props': 0, // Since we do not use prop-types
'jsx-a11y/anchor-is-valid': 0,
},
// parserOptions: {
// project: './tsconfig.eslint.json',
// },
// overrides: [{ files: ['**/*.test.tsx'], env: { jest: true } }],
plugins: ['prettier'],
}