Skip to content

Commit

Permalink
feat: add ESLint
Browse files Browse the repository at this point in the history
Add ESLint to the project
- add `yarn lint` command
- add `yarn lint:fix` command

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
  • Loading branch information
niloysikdar committed Jun 17, 2022
1 parent c4f37a1 commit b645c9d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
public/
build/
dist/
docs/
11 changes: 11 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"scripts": {
"build": "tsc -p tsconfig.json",
"watch": "tsc --watch",
"lint": "eslint src/**/*",
"lint:fix": "eslint --fix src/**/*",
"pretty": "prettier --check .",
"pretty:fix": "prettier --write ."
},
Expand Down

0 comments on commit b645c9d

Please sign in to comment.