Skip to content
Snippets Groups Projects

Feature/add linter to tailwind

Merged 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 :innocent:

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
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading