forked from gravitee-io/gravitee-management-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
108 lines (108 loc) · 2.86 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
module.exports = {
env: {
browser: true,
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
},
ignorePatterns: ['**/*.js'],
plugins: ['eslint-plugin-jsdoc', '@typescript-eslint', 'eslint-plugin-import'],
extends: [
'angular',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
reportUnusedDisableDirectives: true,
rules: {
'angular/no-private-call': 'error',
'angular/controller-as-route': 'error',
'angular/controller-name': 'error',
'angular/module-setter': 'error',
'angular/log': 'error',
'angular/di': 'error',
'angular/on-watch': 'error',
'angular/no-service-method': 'off',
'angular/module-getter': 'off',
'angular/definedundefined': 'off',
'angular/document-service': 'off',
'angular/json-functions': 'off',
'angular/typecheck-array': 'off',
'angular/typecheck-string': 'off',
'angular/typecheck-function': 'off',
'angular/window-service': 'off',
'angular/interval-service': 'off',
'angular/timeout-service': 'off',
'no-bitwise': 'warn',
'no-redeclare': 'warn',
'no-useless-escape': 'error',
'no-prototype-builtins': 'warn',
'no-cond-assign': 'warn',
'@typescript-eslint/ban-types': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
eqeqeq: ['warn', 'smart'],
'guard-for-in': 'warn',
'id-blacklist': 'off',
'id-match': 'off',
'jsdoc/check-alignment': 'error',
'jsdoc/check-indentation': 'off',
'jsdoc/newline-after-description': 'error',
'no-caller': 'error',
'no-console': [
'warn',
{
allow: [
'warn',
'dir',
'timeLog',
'assert',
'clear',
'count',
'countReset',
'group',
'groupEnd',
'table',
'dirxml',
'error',
'groupCollapsed',
'Console',
'profile',
'profileEnd',
'timeStamp',
'context',
],
},
],
'no-debugger': 'error',
'no-empty': 'off',
'no-eval': 'error',
'no-fallthrough': 'error',
'no-new-wrappers': 'error',
'no-underscore-dangle': 'off',
'no-unused-labels': 'error',
radix: 'error',
'spaced-comment': [
'warn',
'always',
{
markers: ['/'],
},
],
'import/order': [
'error',
{
groups: ['internal', 'external', 'builtin', 'object', 'type', 'index', 'sibling', 'parent'],
'newlines-between': 'always',
},
],
},
};