forked from zpao/qrcode.react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (36 loc) · 949 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
module.exports = {
parser: '@typescript-eslint/parser',
env: {
es6: true,
node: true,
browser: true,
},
plugins: ['react', '@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
],
settings: {
react: {
version: '16.2.0',
},
},
rules: {
// Will use the TS version
// 'no-unused-vars': ['error', {ignoreRestSiblings: true}],
// Meh - don't agree with it
'react/no-unescaped-entities': 'off',
// Meh - I don't feel the need for all things to be const
'prefer-const': 'off',
// Not as helpful as it seems. I wa
// '@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': ['error', {ignoreRestSiblings: true}],
'@typescript-eslint/no-inferrable-types': [
'error',
{ignoreParameters: true},
],
},
};