Skip to content

Commit

Permalink
chore: Setup prettier, eslint, husky, and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
oBusk committed Mar 14, 2020
1 parent 46caff0 commit b3bbc7a
Show file tree
Hide file tree
Showing 5 changed files with 2,047 additions and 5 deletions.
27 changes: 27 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"env": {
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/react-in-jsx-scope": 0,
"react/prop-types": 0,
"react/no-unescaped-entities": 0
}
}
5 changes: 5 additions & 0 deletions .huskyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "lint-staged"
}
}
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"**/*.{ts,tsx,js,jsx}": ["eslint --fix"],
"**/*.{md,yml,yaml,json}": ["prettier --write"]
}
Loading

0 comments on commit b3bbc7a

Please sign in to comment.