Skip to content

Feature/add linter to tailwind

mateuszmiko requested to merge feature/add_linter_to_tailwind into development

Objective:

Add linter and prettier for tailwind.

What has been done:

  • added eslint-plugin-tailwindcss and prettier-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 and tailwindcss/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

Merge request reports

Loading