forked from segmentio/consent-manager
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.js
52 lines (52 loc) · 1.69 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
46
47
48
49
50
51
52
module.exports = {
extends: require.resolve('ng-build/config/eslintrc.js'),
plugins: ['react', '@typescript-eslint', 'prettier'],
env: {
browser: true,
jest: true
},
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/tslint/config': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/semi': 'off',
'import/namespace': 'off',
'import/no-extraneous-dependencies': 'off',
'import/order': 'off',
'import/default': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'no-restricted-syntax': 'off',
eqeqeq: 'off',
'no-useless-return': 'off',
'no-shadow': 'off',
'no-global-assign': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-no-bind': 'off',
'jsdoc/require-param-type': 'off',
'func-names': 'off',
'quote-props': 'off',
'react/jsx-indent-props': 'off',
'react/jsx-one-expression-per-line': 'off',
'space-before-function-paren': 'off',
'@typescript-eslint/space-before-function-paren': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'no-console': 'off',
'@typescript-eslint/no-non-null-assertion': 'off'
},
settings: {
react: {
pragma: 'React',
version: 'detect'
}
}
}