Skip to content

Commit

Permalink
feat: add linting, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dtbuchholz committed Jun 29, 2023
1 parent 3c7fd89 commit c806345
Show file tree
Hide file tree
Showing 23 changed files with 7,807 additions and 2,617 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"env": {
"browser": true,
"es2022": true,
"mocha": true,
"node": true
},
"plugins": ["@typescript-eslint", "import"],
"extends": ["standard-with-typescript", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"project": "./lint.tsconfig.json"
},
"rules": {
"import/order": "warn",
"@typescript-eslint/strict-boolean-expressions": 0
},
"ignorePatterns": ["/public/"]
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/public
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": true,
"trailingComma": "es5"
}
4 changes: 4 additions & 0 deletions lint.tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src"]
}
Loading

0 comments on commit c806345

Please sign in to comment.