[eslint] add eslint config and prettier
Background / User story
This removes the previous eslint version as well as the eyeo config, then adds the airbnb base
What to change
- Design: N/A
- Research: N/A
- Spec: N/A
- Legal: N/A
- Development:
eslint
npm uninstall eslint eslint-config-eyeo
npx install-peerdeps -D eslint-config-airbnb-base
npm i -D @typescript-eslint/eslint-plugin eslint-config-airbnb-base eslint eslint-plugin-import @typescript-eslint/parser
- .eslintrc.js
- Recommended: Install eslint in your IDE
- As part of this ticket either reach out to each person on the team and inform them of the IDE plugin or bring it up as a topic in a group call
- Add
"test:lint": "eslint --ext .ts ./"
to package.json scripts- The path of this is just catching all .ts files since those are the ones that we are actively updating. Post reorganize, the “./” path can be updated
prettier
npm i -D prettier eslint-plugin-prettier eslint-config-prettier
- .prettierrc
- Recommended: Install prettier in your IDE
- As part of this ticket either reach out to each person on the team and inform them of the IDE plugin or bring it up as a topic in a group call
- Add
"prettier": "prettier ./**/*.ts ./**/*.md ./**/*.css ./**/*.scss ./**/*.html ./**/*.json --write",
to package.json scripts
note: this does not include running and committing the prettier changes since that will be a large change and can be it's own ticket
Hints for testers
No feature change. Simply everything should work as it did
Hints for translators
N/A
Edited by Sadie Braun