Setup eslint. Run after prettier in lint cmd

This commit is contained in:
2022-12-11 19:19:37 +01:00
parent 73a738b0ae
commit 21dc1a5175
3 changed files with 524 additions and 11 deletions

21
.eslintrc Normal file
View File

@@ -0,0 +1,21 @@
{
"root": true,
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"import/extensions": 0,
"max-classes-per-file": 1,
"no-empty": [
2,
{
"allowEmptyCatch": true
}
],
"no-promise-executor-return": 1,
"no-shadow": "off",
"no-underscore-dangle": "off"
}
}