2020-03-23 11:18:29 -07:00
|
|
|
{
|
|
|
|
|
"root": true,
|
|
|
|
|
"plugins": ["jest", "@typescript-eslint"],
|
2020-06-09 09:58:15 -07:00
|
|
|
"extends": ["plugin:github/typescript"],
|
2020-03-23 11:18:29 -07:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
|
"parserOptions": {
|
|
|
|
|
"ecmaVersion": 2019,
|
|
|
|
|
"sourceType": "module",
|
|
|
|
|
"project": "./tsconfig.json"
|
|
|
|
|
},
|
|
|
|
|
"rules": {
|
|
|
|
|
"eslint-comments/no-use": "off",
|
|
|
|
|
"import/no-namespace": "off",
|
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
|
|
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
|
|
|
"warn",
|
|
|
|
|
{"accessibility": "no-public"}
|
|
|
|
|
],
|
|
|
|
|
"@typescript-eslint/no-require-imports": "error",
|
|
|
|
|
"@typescript-eslint/array-type": "warn",
|
|
|
|
|
"@typescript-eslint/await-thenable": "error",
|
|
|
|
|
"camelcase": "off",
|
|
|
|
|
"@typescript-eslint/explicit-function-return-type": [
|
|
|
|
|
"warn",
|
|
|
|
|
{"allowExpressions": true}
|
|
|
|
|
],
|
|
|
|
|
"@typescript-eslint/no-array-constructor": "error",
|
|
|
|
|
"@typescript-eslint/no-empty-interface": "warn",
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
|
|
|
"@typescript-eslint/no-for-in-array": "error",
|
|
|
|
|
"@typescript-eslint/no-misused-new": "warn",
|
|
|
|
|
"@typescript-eslint/no-namespace": "warn",
|
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "warn",
|
|
|
|
|
"@typescript-eslint/no-unnecessary-qualifier": "warn",
|
|
|
|
|
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
|
|
|
|
|
"@typescript-eslint/no-useless-constructor": "warn",
|
|
|
|
|
"@typescript-eslint/no-var-requires": "error",
|
|
|
|
|
"@typescript-eslint/prefer-for-of": "warn",
|
|
|
|
|
"@typescript-eslint/prefer-function-type": "warn",
|
|
|
|
|
"@typescript-eslint/prefer-includes": "warn",
|
|
|
|
|
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
|
|
|
|
|
"@typescript-eslint/promise-function-async": "warn",
|
|
|
|
|
"@typescript-eslint/require-array-sort-compare": "warn",
|
|
|
|
|
"@typescript-eslint/restrict-plus-operands": "error",
|
|
|
|
|
"semi": "off",
|
|
|
|
|
"@typescript-eslint/unbound-method": "error",
|
|
|
|
|
"prettier/prettier": "off"
|
|
|
|
|
},
|
|
|
|
|
"env": {
|
|
|
|
|
"node": true,
|
|
|
|
|
"es6": true,
|
|
|
|
|
"jest/globals": true
|
|
|
|
|
}
|
|
|
|
|
}
|