This commit is contained in:
Will Hunt 2020-11-22 21:10:10 +00:00
parent 9fcb224d63
commit bd6838aff5
2 changed files with 21 additions and 62 deletions

21
.eslintrc.js Normal file
View File

@ -0,0 +1,21 @@
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'mocha'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
"@typescript-eslint/explicit-module-boundary-types": "off",
"camelcase": ["error", { "properties": "never", "ignoreDestructuring": true }],
},
"env": {
"node": true,
"es6": true,
},
};

View File

@ -1,62 +0,0 @@
{
"extends": "tslint:recommended",
"rules": {
"ordered-imports": false,
"no-trailing-whitespace": {
"severity": "error"
},
"max-classes-per-file": {
"severity": "warning"
},
"object-literal-sort-keys": false,
"no-any": {
"severity": "warning"
},
"arrow-return-shorthand": true,
"prefer-for-of": true,
"typedef": {
"severity": "warning"
},
"await-promise": [
true,
"RequestPromise"
],
"curly": true,
"no-empty": false,
"no-invalid-this": true,
"no-string-throw": {
"severity": "warning"
},
"no-unused-expression": true,
"prefer-const": true,
"indent": [
true,
"spaces",
4
],
"no-duplicate-imports": true,
"array-type": [
true,
"array"
],
"promise-function-async": true,
"no-bitwise": true,
"no-debugger": true,
"no-floating-promises": true,
"prefer-template": [
true,
"allow-single-concat"
],
"interface-name": false
},
"overrides": [
{
"files": [
"test_*.ts"
],
"rules": {
"no-unused-expressions": "off"
}
}
]
}