2019-03-09 12:30:38 -05:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
2019-09-07 12:27:18 -04:00
|
|
|
"createDefaultProgram": true
|
2019-03-09 12:30:38 -05:00
|
|
|
},
|
|
|
|
"plugins": ["@typescript-eslint"],
|
|
|
|
"extends": [
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"prettier",
|
|
|
|
"prettier/@typescript-eslint"
|
|
|
|
],
|
|
|
|
"rules": {
|
2019-09-15 09:16:05 -04:00
|
|
|
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }],
|
2019-03-09 12:30:38 -05:00
|
|
|
"@typescript-eslint/explicit-member-accessibility": ["off"],
|
|
|
|
"@typescript-eslint/no-non-null-assertion": ["off"],
|
2019-07-16 00:19:26 -04:00
|
|
|
"@typescript-eslint/no-use-before-define": ["off"],
|
2019-03-09 12:30:38 -05:00
|
|
|
"@typescript-eslint/no-parameter-properties": ["off"],
|
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
"error",
|
2019-09-16 17:25:32 -04:00
|
|
|
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
|
2019-09-07 12:27:18 -04:00
|
|
|
],
|
|
|
|
"@typescript-eslint/ban-ts-ignore": ["off"],
|
2020-03-16 05:22:16 -04:00
|
|
|
"@typescript-eslint/no-empty-function": ["off"],
|
2020-03-20 09:38:34 -04:00
|
|
|
"no-return-await": "error",
|
|
|
|
"require-await": "error"
|
2019-09-07 12:27:18 -04:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
2019-09-16 17:25:32 -04:00
|
|
|
"files": ["*.js"],
|
2019-09-07 12:27:18 -04:00
|
|
|
"rules": {
|
2019-09-16 17:25:32 -04:00
|
|
|
"@typescript-eslint/explicit-function-return-type": ["off"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["tools/node_*.js"],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/no-var-requires": ["off"]
|
2019-09-07 12:27:18 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-03-09 12:30:38 -05:00
|
|
|
}
|