Skip to content

Commit

Permalink
dx: remove eslint precommit config, move rules to main config
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdyman committed Sep 11, 2022
1 parent 4ab6990 commit e7d5d8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
5 changes: 2 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,15 @@
"lines-around-comment": 0,
"no-constant-binary-expression": "error",
"no-confusing-arrow": 0,
"no-console": ["warn", { "allow": ["warn"] }],
"no-debugger": 0,
"no-console": "error",
"no-shadow": "warn",

"react/jsx-indent": 0,
"react/jsx-indent-props": 0,
"react/prop-types": 0,

"@typescript-eslint/no-unused-vars": [
"warn",
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
Expand Down
17 changes: 0 additions & 17 deletions .eslintrc.precommit.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": [
"pretty-quick --staged",
"eslint --config ./.eslintrc.precommit.js --fix",
"eslint --fix",
"yarn test --bail --findRelatedTests"
]
},
Expand Down

0 comments on commit e7d5d8f

Please sign in to comment.