Code Linting
Install Master CSS ESLint in Svelte
Guide to installing Master CSS ESLint in your Svelte project.
Installation
Install the plugin and parser into your project via package managers.
npm install -D @master/eslint-config-css@rc eslint-plugin-svelte eslint
Set up your config
Create .eslintrc.json
if you don't have one.
- Add
@master/css
to theextends
section. - Add
plugin:svelte/recommended
to theextends
section.
{ "extends": [ "@master/css", "plugin:svelte/recommended" ]}
Start linting your code
npx eslint *.svelte
Not working in Visual Studio Code? Next, set up the VSCode ESLint.