-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.js
33 lines (29 loc) · 872 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
module.exports = {
env: {
browser: true,
es6: true
},
extends: ['plugin:react/recommended', 'airbnb', 'prettier', 'prettier/react'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
ecmaFeatures: {
jsx: true
},
sourceType: 'module'
},
plugins: ['import', 'prettier', 'react', 'react-hooks'],
rules: {
'react/prop-types': 'off',
// We don't need to import React when using Next.js
'react/react-in-jsx-scope': 'off',
// Allows us to use JSX in js files
'react/jsx-filename-extension': 'off',
// Allows us to spread props
'react/jsx-props-no-spreading': 'off',
// When using Link, we specify the href on Link instead of a.
// Link will add it to a so we leave it off. This disables
// warnings about a not having an href in JSX.
'jsx-a11y/anchor-is-valid': 'off'
}
};