Skip to content

Commit

Permalink
chore: #11 add eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Luginbühl committed Aug 9, 2021
1 parent 3a47980 commit 84426f5
Show file tree
Hide file tree
Showing 3 changed files with 898 additions and 351 deletions.
80 changes: 80 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"semi": [
"error",
"always"
],
"keyword-spacing": [
"error",
{
"before": true
}
],
"space-before-blocks": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 0
}
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}
],
"@typescript-eslint/explicit-function-return-type": [
"off",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": true
}
],
"@typescript-eslint/explicit-module-boundary-types": [
"off"
],
"@typescript-eslint/no-floating-promises": [
"error",
{
"ignoreVoid": false
}
]
}
}
Loading

0 comments on commit 84426f5

Please sign in to comment.