uhr/.eslintrc.json
Manuel Friedli ac7cb66bd0
Some checks failed
continuous-integration/drone/push Build is failing
Refine linting rules.
2019-05-10 14:32:39 +02:00

74 lines
1.6 KiB
JSON

{
"parserOptions": {
"ecmaVersion": 6,
"project": "./tsconfig.json",
"sourceType": "module"
},
"parser": "@typescript-eslint/parser",
"plugins": [
"header",
"@typescript-eslint"
],
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"curly": "error",
"eol-last": [
"error",
"always"
],
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"no-unused-vars": "off",
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"sort-imports": "error",
"header/header": [
"error",
"header.ts"
],
"@typescript-eslint/member-ordering": [
"error"
],
"@typescript-eslint/no-namespace": [
"error",
{
"allowDeclarations": true
}
],
"@typescript-eslint/no-parameter-properties": [
"error",
{
"allows": [
"private readonly"
]
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
]
}
}