Skip to content

Conversation

@mpsijm
Copy link
Contributor

@mpsijm mpsijm commented Jun 7, 2022

Pull Request Name

Description

The check for removing duplicates is completely separate from the sorting, even when {officialSorting: false}. Therefore, it shouldn't harm to also execute this check when {officialSorting: true}.

Fixes #127

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update

How Has This Been Tested?

  • I've added the following test: <div class="h-4 h-4 w-4">Using official sorting, with duplicates</div> with config {officialSorting: true} (removeDuplicates is true by default).

Test Configuration:

  • OS + version: Arch Linux (last upgraded today)
  • NPM version: 8.5.5
  • Node version: 16.15.1

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@francoismassart
Copy link
Owner

👋 Hi @mpsijm ,

thank you for your contributions.

Both remaining PR looks fine and I'll merge them in the following days, just to make sure nobody complains between releases.

Our team at my main job has been reduced so I have less opportunities to spend time on the plugin but I hope this is temporary 😉

mpsijm added 3 commits June 13, 2022 10:03
…ing officialSorting

The check for removing duplicates is completely separate from the
sorting, even when {officialSorting: false}. Therefore, it shouldn't
harm to also execute this check when {officialSorting: true}.
@mpsijm mpsijm force-pushed the fix/issue-127-removeDuplicates-officialSorting branch from 84f07e3 to 3954659 Compare June 13, 2022 08:03
@francoismassart
Copy link
Owner

👋 @mpsijm,
I'll include your changes inside the previous PR #132 which will:

  • Support classnames generated by plugin(s)
  • Deprecate officialSorting and prependCustom, always considered to be true (required in order to support plugins)
  • FIX multiples bugs listed in the PR no-custom-classname plugin support #132
  • and also keep removeDuplicates option

I'll publish a beta version soon and collect feedback from our users.

Thanks again for your contributions 🙏

francoismassart added a commit that referenced this pull request Jun 20, 2022
- Drop support for `officialSorting` & `prependCustom` (`classnames-order`)
- New features from v3.1.0
- Tests adapted
- New tests
- README
- Include fix from #144 (by @mpsijm)
@francoismassart
Copy link
Owner

I just published a beta version with the fixes listed on #132
https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/fix/no-custom-classname-plugin-support#readme

npm i eslint-plugin-tailwindcss@3.6.0-beta.0

Please give it a try and provide feedback and or issues 👍
Thank you

francoismassart added a commit that referenced this pull request Jun 28, 2022
* Use `generateRules` for `no-custom-classname`
* chore: updating `groups.js`
* tests: add tests for listed issues
* Speeding up the rule using @mpsijm ’s code
* fix: support for v3.1.0
* Drop support for `officialSorting` & `prependCustom` (`classnames-order`)
* Include fix from #144 (by @mpsijm)
* chore: removing the `groups` option
* chore: remove unused code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Don't ignore removeDuplicates option when using officialSorting

2 participants