forked from jamenamcinteer/react-qr-barcode-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (44 loc) · 1.02 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
45
/* eslint-disable */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint'
],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended'
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
rules: {
'@typescript-eslint/camelcase': ['off', { 'properties': 'never' }],
'@typescript-eslint/quotes': ['error', 'single'],
'camelcase': 'off',
'comma-dangle': 2,
'indent': ['error', 2],
'no-extra-semi': 2,
'no-irregular-whitespace': 2,
'no-lonely-if': 2,
'no-multi-spaces': 2,
'no-multiple-empty-lines': 2,
'no-trailing-spaces': 2,
'no-unexpected-multiline': 2,
'no-unreachable': 'error',
'object-curly-spacing': ['error', 'always'],
'quotes': 'off',
'semi': ['error', 'never']
},
settings: {
react: {
version: 'detect'
}
}
}