forked from naorzr/container-on-demand
/
.eslintrc.js
42 lines (42 loc) · 1.36 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
module.exports = {
root: true,
env: {
browser: true,
es6: true,
node: true,
},
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
globals: {
MyGlobal: true,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
ignorePatterns: ['**/*.pem', '**/*.key', '**/*.Dockerfile', '**/*.pac'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
project: './tsconfig.eslint.json',
},
plugins: ['@typescript-eslint', 'fp'],
rules: {
'fp/no-class': 'error',
'fp/no-events': 'warn',
'no-mixed-operators': 'off',
'no-console': 'off',
'no-undef': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/no-array-constructor': ['off'],
'@typescript-eslint/explicit-module-boundary-types': ['off'],
'@typescript-eslint/no-explicit-any': ['warn'],
'@typescript-eslint/no-inferrable-types': ['off'],
'@typescript-eslint/member-delimiter-style': ['off'],
'@typescript-eslint/interface-name-prefix': ['off'],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/class-name-casing': ['off'],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
};