uhr/.eslintrc.json

96 lines
2.8 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": [
"@typescript-eslint"
],
2019-05-05 12:18:46 +02:00
"env": {
"browser": true
},
2019-05-10 01:18:32 +02:00
"extends": [
"plugin:@typescript-eslint/recommended",
"eslint:recommended"
],
2019-05-05 12:18:46 +02:00
"rules": {
"curly": "error",
"deprecation": true,
"eofline": true,
"file-header": [
true,
{
"match": " This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program. If not, see <http://www.gnu.org/licenses/>.\n",
"enforce-trailing-newline": true
}
],
"sort-imports": "warn",
2019-05-05 12:18:46 +02:00
"member-ordering": [
true,
{
"order": "fields-first",
"alphabetize": true
}
],
2019-05-10 01:18:32 +02:00
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
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-05 12:18:46 +02:00
"prefer-for-of": true,
"semi": [
"error",
"always",
{
"omitLastInOneLineBlock": false
}
],
2019-05-05 12:18:46 +02:00
"static-this": true,
"triple-equals": true,
"typeof-compare": true,
"prefer-const": "warn",
"prefer-readonly": true,
"array-type": [
true,
"array"
],
"arrow-return-shorthand": [
true,
"multiline"
],
"quotes": [
"warn",
"single"
]
}
}