Code Linting
Install Master CSS ESLint in Visual Studio Code
Guide to installing Master CSS ESLint in your Visual Studio Code.
Install ESLint extension
Install the VSCode ESLint in the Visual Studio Marketplace if you haven't already.
Install Master CSS ESLint
Install the Master CSS ESLint Configuration into your project via package managers.
npm install -D @master/eslint-config-css@rc eslint
Set up ESLint config
Import and add the Master CSS ESLint Configuration css
to eslint.config.js
.
To find the setup guide for your language parser.
import css from '@master/eslint-config-css' export default [ css]
Add VS Code settings
Add @master/css/class-order
to the eslint.codeActionsOnSave.rules
section in user settings.
{ "eslint.codeActionsOnSave.rules": [ "@master/css/class-order" ]}