mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Lint
This commit is contained in:
parent
9fcb224d63
commit
bd6838aff5
21
.eslintrc.js
Normal file
21
.eslintrc.js
Normal 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,
|
||||
},
|
||||
};
|
62
tslint.json
62
tslint.json
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user