-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
68 lines (67 loc) · 1.95 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright (c) Aksio Insurtech. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
/**@type {import('eslint').Linter.Config} */
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
ignorePatterns: [
'*.d.ts',
'*.scss.d.ts',
'tsconfig.*',
'wallaby.js',
'dist',
'node_modules',
'wwwroot',
'templates'
],
plugins: [
'@typescript-eslint',
'header',
'no-null',
'import'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended'
],
settings: {
react: {
version: 'detect',
},
},
rules: {
'no-irregular-whitespace': 0,
'semi': [2, "always"],
'react/display-name': 0,
'react/react-in-jsx-scope': 0,
'no-prototype-builtins': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/no-var-requires': 0,
// eslint-plugin-header
'header/header': [
2,
'line',
[
' Copyright (c) Aksio Insurtech. All rights reserved.',
' Licensed under the MIT license. See LICENSE file in the project root for full license information.'
]
]
},
overrides: [
{
files: ['**/for_*/**'],
rules: {
'@typescript-eslint/naming-convention': 0,
'@typescript-eslint/no-unused-expressions': 0,
'no-restricted-globals': 0
}
}
]
};