-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trigger error on custom class #4312
Conversation
Storybook staging is available at https://kiwicom-orbit-lint-apply-err-to-custom-classname.surge.sh |
Size Change: +2 B (0%) Total Size: 441 kB
ℹ️ View Unchanged
|
Deploying orbit with Cloudflare Pages
|
The second commit reads:
However, I don't see any replacement of a warn rule, it's essentially adding a new rule. |
@mvidalgarcia On our root eslint config, we have it defined as a warn. On the orbit-components package, I override that definition to be an error (on that package only). This way we can keep the warning on the other packages but we have a failing pipeline on the orbit-components package. WDYT? |
@@ -31,6 +31,7 @@ module.exports = { | |||
files: ["src/**/*.ts?(x)"], | |||
rules: { | |||
"@typescript-eslint/consistent-type-imports": "warn", | |||
"tailwindcss/no-custom-classname": [2, { whitelist: ["(orbit\\-).*"] }], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline, for readability.
"tailwindcss/no-custom-classname": [2, { whitelist: ["(orbit\\-).*"] }], | |
"tailwindcss/no-custom-classname": ["error", { whitelist: ["(orbit\\-).*"] }], |
Ok ok, I didn't know this. Perhaps we can add this information in the commit body. |
89d4641
to
e0c25f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏎️
098a486
to
7a15c97
Compare
Only changing the rule for orbit-components package. The root eslint config remains as a warning, for other packages.
7a15c97
to
a389a96
Compare
Update versions for typescript-lint and es-lint deps and change from warning to error the no-custom-classname rule for tailwind.
The new rule is only applied on orbit-components, so it does not affect the docs package or any other package.
FEPLT-1760