You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1023 B
58 lines
1023 B
{
|
|
"parser": "@typescript-eslint/parser",
|
|
"env": {
|
|
"es6": true,
|
|
"node": true,
|
|
"jest/globals": true
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 2019,
|
|
"project": "tsconfig.json"
|
|
},
|
|
"extends": [
|
|
"airbnb-base",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier/@typescript-eslint",
|
|
"plugin:prettier/recommended",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
"plugin:import/typescript"
|
|
],
|
|
"plugins": [
|
|
"prettier",
|
|
"jest"
|
|
],
|
|
"rules": {
|
|
"no-console": 0,
|
|
"prettier/prettier": "error",
|
|
"no-underscore-dangle": [
|
|
"error",
|
|
{
|
|
"allow": [
|
|
"__get__",
|
|
"__set__"
|
|
]
|
|
}
|
|
],
|
|
"import/extensions": [
|
|
"error",
|
|
"ignorePackages",
|
|
{
|
|
"js": "never",
|
|
"jsx": "never",
|
|
"ts": "never",
|
|
"tsx": "never"
|
|
}
|
|
],
|
|
"@typescript-eslint/no-this-alias": [
|
|
"error",
|
|
{
|
|
"allowedNames": [
|
|
"self"
|
|
] // Allow `const self = this`; `[]` by default
|
|
}
|
|
]
|
|
}
|
|
} |