-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
53 lines (48 loc) · 1.5 KB
/
index.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
/**
* Copyright (c) 2018-present, Umweltbundesamt GmbH
*
* Licensed under the terms of the LICENSE file distributed with this project.
*/
module.exports = {
parser: '@typescript-eslint/parser',
env: {
es6: true,
browser: true,
node: true,
jest: true
},
parserOptions: {
jsx: true,
useJSXTextNode: true
},
settings: {
react: {
version: 'detect'
}
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended'
],
plugins: ['@typescript-eslint', 'react-hooks'],
rules: {
'indent': 'off',
'no-console': 'warn',
'react/prop-types': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-angle-bracket-type-assertion': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/prefer-interface': 'warn',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { 'ignoreRestSiblings': true }],
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'@typescript-eslint/explicit-function-return-type': ['warn', { 'allowExpressions': true, 'allowTypedFunctionExpressions': true }],
}
}