-
Notifications
You must be signed in to change notification settings - Fork 7
feat: add css-baseline
preset
#887
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
Conversation
css-baseline
preset
@@ -76,8 +76,6 @@ module.exports = { | |||
|
|||
### `eslint.config.js` (Flat Config) | |||
|
|||
> [!NOTE] | |||
> Flat Config support is experimental. The applicable rules and scope may have changed. |
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.
👍
flat/lib/css-baseline.js
Outdated
}, | ||
}, | ||
] | ||
}; |
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.
Could you please run Prettier formatting on this code?
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.
↑ fixed ! 👍 🙏
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.
LGTM!
🏁 Outline
This PR mainly adds a ruleset that checks Baseline Widely Available feature for CSS.
📝 Description
@eslint/css
has been added, as well as the minimum common rules.css/use-baseline
: warns on the feature that is less than Widely Availablecss/no-duplicate-imports
: errors on the duplicated@import
declarations✅ Test
The tests mainly check:
css/use-baseline
&css/no-duplicate-imports
error/success casessee,
test/flat/preset-css-baseline-test.js