-
Notifications
You must be signed in to change notification settings - Fork 74
/
.eslintrc.js
44 lines (44 loc) · 1.06 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
ignorePatterns: ['next.config.js'],
globals: {
document: true,
window: true,
fetch: true,
module: true,
console: true,
process: true
},
env: {
jest: true,
},
extends: [
'eslint:recommended', // eslint default rules
'plugin:@typescript-eslint/eslint-recommended', // eslint TypeScript rules (github.com/typescript-eslint/typescript-eslint)
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended', // eslint react rules (github.com/yannickcr/eslint-plugin-react)
'plugin:jsx-a11y/recommended', // accessibility plugin
],
rules: {
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/media-has-caption': 'off',
'import/prefer-default-export': 'off',
'semi': 'warn',
"react/no-unknown-property": [
2,
{
"ignore": [
"jsx",
"global"
]
}
]
},
};