96 lines
1.9 KiB
JSON
96 lines
1.9 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"rules": {
|
|
"indent": [
|
|
"warn",
|
|
"tab",
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"linebreak-style": [
|
|
"warn",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"warn",
|
|
"double"
|
|
],
|
|
"semi": [
|
|
"warn",
|
|
"always"
|
|
],
|
|
"no-multiple-empty-lines": [
|
|
"warn",
|
|
{
|
|
"max": 1
|
|
}
|
|
],
|
|
"no-console": [
|
|
"warn",
|
|
{
|
|
"allow": [
|
|
"error"
|
|
]
|
|
}
|
|
],
|
|
"no-extra-parens": [
|
|
"warn"
|
|
],
|
|
"no-unreachable-loop": [
|
|
"error"
|
|
],
|
|
"curly": [
|
|
"warn",
|
|
"all"
|
|
],
|
|
"dot-notation": [
|
|
"warn",
|
|
{
|
|
"allowKeywords": false
|
|
}
|
|
],
|
|
"camelcase": [
|
|
"warn",
|
|
{
|
|
"allow":[
|
|
"reinterpret_cast",
|
|
"nonnull_cast"
|
|
]
|
|
}
|
|
],
|
|
"@typescript-eslint/ban-types": [
|
|
"error",
|
|
{
|
|
"types": {}
|
|
}
|
|
],
|
|
"@typescript-eslint/no-unused-vars":[
|
|
"warn",
|
|
{
|
|
"varsIgnorePattern": "_",
|
|
"argsIgnorePattern": "_"
|
|
}
|
|
]
|
|
}
|
|
}
|