Feature/add linter to tailwind
Objective:
Add linter and prettier for tailwind.
What has been done:
- added
eslint-plugin-tailwindcss
andprettier-plugin-tailwindcss
- added 3 new scripts to
package.json
:
"prettier:ci": "./node_modules/.bin/prettier --check .",
"format": "next lint && ./node_modules/.bin/prettier --check .",
"format:fix": "next lint --fix && ./node_modules/.bin/prettier --write ."
- set
tailwindcss/enforces-shorthand
andtailwindcss/classnames-order
- formatted code
😇
Additionally:
- added
cypress.config.ts
to.eslintignore
- deleted 'color-hex-case': 'upper' from
prettier.config.js
because it is useless - added
prettier:ci
to CI - deleted
@types/images.d.ts
Edited by mateuszmiko