uhr/.eslintrc.json

75 lines
1.6 KiB
JSON
Raw Normal View History

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