-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 1.31 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
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'standard'
],
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
plugins: ['@typescript-eslint', 'mocha'],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module' // Allows for the use of imports
},
rules: {
// 0 = "off", 1 = "warn", 2 = "error"
camelcase: 0,
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': 2,
'@typescript-eslint/explicit-member-accessibility': 0,
'no-unused-expressions': 0,
'@typescript-eslint/indent': ['warn', 2],
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'no-useless-constructor': 0,
'@typescript-eslint/no-parameter-properties': 0,
/* Mocha Test Rules */
'mocha/no-exclusive-tests': 'error',
/* TODO: We should fix the errors and re-enable these rules */
'@typescript-eslint/no-empty-function': 0,
'node/no-deprecated-api': 0,
'no-prototype-builtins': 0,
'no-async-promise-executor': 0,
// "max-len": ["warn", {"code": 80, "ignoreUrls": true}],
'no-console': 1
}
}