Skip to content

Commit

Permalink
style: add eslint compatible with typescript and lint-staged (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: Yokozuna59 <u.yokozuna@gmail.com>
  • Loading branch information
Yokozuna59 authored May 13, 2023
1 parent 6c27d06 commit b3d52d9
Show file tree
Hide file tree
Showing 4 changed files with 991 additions and 66 deletions.
17 changes: 17 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.base.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
]
}
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"*.md": [
"markdownlint --fix"
],
"*.ts": [
"eslint --fix"
]
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"@commitlint/cli": "^17.6.3",
"@commitlint/config-angular": "^17.6.3",
"@commitlint/format": "^17.4.4",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"conventional-changelog-angular": "^5.0.13",
"eslint": "^8.39.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"markdownlint-cli": "^0.34.0"
Expand Down
Loading

0 comments on commit b3d52d9

Please sign in to comment.