Skip to content

Commit

Permalink
add eslint and prettier configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
toschmidt committed Feb 21, 2020
1 parent 73a7f6d commit 6c39a5c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages/*/node_modules/*
packages/backend/mongodb/
38 changes: 38 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.lint.json"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"overrides": [
{
"files": ["*.ts", "*.d.ts"],
"rules": {
"max-len": [
"error",
{
"code": 120,
"ignoreUrls": true
}
],
"camelcase": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/camelcase": "off"
}
}
]
}
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all"
}

0 comments on commit 6c39a5c

Please sign in to comment.