32 lines
618 B
JSON
32 lines
618 B
JSON
{
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint",
|
|
"prettier",
|
|
"jest"
|
|
],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier"
|
|
],
|
|
"rules": {
|
|
"no-console": 1,
|
|
"prettier/prettier": 2,
|
|
"@typescript-eslint/no-this-alias": [
|
|
"warn",
|
|
{
|
|
// "allowDestructuring": false, // Disallow `const { props, state } = this`; true by default
|
|
"allowedNames": [
|
|
"_this"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"jest/globals": true
|
|
}
|
|
} |