Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
perf: ⚡️ prettier => eslint, lint-staged + pretty-quick => husky
Browse files Browse the repository at this point in the history
Technically no code change should happen 😅️

- `eslint-config-prettier@8.1.0`
- `lint-staged@10.5.4`
- `prettier@2.2.1`
- `pretty-quick@3.1.0`

- `.eslintrc.js` (future-proof for codestyle imports)
  - dupe overrides at bottom, moved to alphasort and added `@question`
- `.prettierrc.js` (future-proof for codestyle imports)
- `.husky/*`
  - `pre-commit` => `yarn lint-staged`
  - `prepare-commit-msg` => `yarn pretty-quick --staged`

- `lint:eslint`
- `lint:fix` (passes `--fix` to eslint and `--write` to prettier)
- `lint:prettier`
- `lint` (refactored to call `prettier` => `eslint`)

- `lint-staged.config.js`
  - only run checks on staged files
  - ci/cd will run more intense `lint` before build / release
  • Loading branch information
JeromeFitz committed Feb 28, 2021
1 parent b28af21 commit 8d19d60
Show file tree
Hide file tree
Showing 14 changed files with 660 additions and 555 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
Loading

0 comments on commit 8d19d60

Please sign in to comment.