52 lines
1.1 KiB
JSON
52 lines
1.1 KiB
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"browser": true,
|
|
"commonjs": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"overrides": [
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": { "project": ["./tsconfig.json"] },
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"ignorePatterns": [
|
|
"**/target/*",
|
|
"src/public/script/*"
|
|
],
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
4
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"double"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"no-unused-vars":"off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"no-case-declarations":"off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"argsIgnorePattern": "^_",
|
|
"varsIgnorePattern": "^_",
|
|
"caughtErrorsIgnorePattern": "^_"
|
|
}
|
|
]
|
|
}
|
|
}
|