-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
40 lines (38 loc) · 956 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 configuration
// http://eslint.org/docs/user-guide/configuring
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
],
plugins: ['react', 'prettier'],
rules: {
// Prevent definitions of unused prop types
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unused-prop-types.md#rule-options
'react/no-unused-prop-types': 'error',
// https://eslint.org/docs/rules/no-unused-vars#ignorerestsiblings
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
// https://eslint.org/docs/rules/no-console
'no-console': 'warn',
},
env: {
es6: true,
browser: true,
node: true,
},
globals: {},
settings: {
react: {
version: '16.3.0',
},
},
};