Add linter

This commit is contained in:
2022-07-22 00:16:35 +00:00
parent 806476076f
commit 10bfccd49f
4 changed files with 2207 additions and 454 deletions

29
.eslintrc.json Normal file
View File

@@ -0,0 +1,29 @@
{
"globals": {},
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"@matt-fidd"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"max-len": "off",
"sort-imports": [
"error",
{
"allowSeparatedGroups": true
}
]
}
}