mirror of
https://github.com/maxswa/osrs-json-hiscores.git
synced 2025-10-15 10:19:04 +00:00
Add linters
This commit is contained in:
@@ -31,6 +31,9 @@
|
|||||||
"cheerio": "^1.0.0-rc.3"
|
"cheerio": "^1.0.0-rc.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jest": "^24.8.0"
|
"jest": "^24.8.0",
|
||||||
|
"tslint": "^5.17.0",
|
||||||
|
"tslint-config-prettier": "^1.18.0",
|
||||||
|
"typescript": "^3.5.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
20
tslint.json
Normal file
20
tslint.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"extends": ["tslint:latest", "tslint-config-prettier"],
|
||||||
|
"rules": {
|
||||||
|
"import-name": false,
|
||||||
|
"indent": [true, "spaces", 2],
|
||||||
|
"max-line-length": [true, 120],
|
||||||
|
"ter-arrow-parens": [false],
|
||||||
|
"strict-boolean-expressions": [false],
|
||||||
|
"variable-name": [false],
|
||||||
|
"semicolon": [true, "always", "ignore-bound-class-methods"],
|
||||||
|
"prefer-array-literal": [false],
|
||||||
|
"quotemark": [
|
||||||
|
true,
|
||||||
|
"single",
|
||||||
|
"jsx-double",
|
||||||
|
"avoid-escape",
|
||||||
|
"avoid-template"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user