95 lines
2.8 KiB
JSON
95 lines
2.8 KiB
JSON
{
|
|
"parserOptions": {
|
|
"ecmaVersion": 6,
|
|
"project": "./tsconfig.json",
|
|
"sourceType": "module"
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"env": {
|
|
"browser": true
|
|
},
|
|
"extends": [
|
|
"plugin:@typescript-eslint/recommended",
|
|
"eslint:recommended"
|
|
],
|
|
"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",
|
|
"member-ordering": [
|
|
true,
|
|
{
|
|
"order": "fields-first",
|
|
"alphabetize": true
|
|
}
|
|
],
|
|
"no-console": [
|
|
"error",
|
|
{
|
|
"allow": [
|
|
"warn",
|
|
"error"
|
|
]
|
|
}
|
|
],
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
"vars": "all",
|
|
"args": "after-used",
|
|
"ignoreRestSiblings": false
|
|
}
|
|
],
|
|
"@typescript-eslint/no-namespace": [
|
|
"error",
|
|
{
|
|
"allowDeclarations": true
|
|
}
|
|
],
|
|
"@typescript-eslint/no-parameter-properties": [
|
|
"error",
|
|
{
|
|
"allows": [
|
|
"private readonly"
|
|
]
|
|
}
|
|
],
|
|
"prefer-for-of": true,
|
|
"semi": [
|
|
"error",
|
|
"always",
|
|
{
|
|
"omitLastInOneLineBlock": false
|
|
}
|
|
],
|
|
"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"
|
|
]
|
|
}
|
|
}
|