eslint-plugin-svg
v0.0.0
Published
Rules for consistent, readable and valid SVG files.
Downloads
78
Readme
eslint-plugin-svg
Rules for consistent, readable and valid SVG files.
[!WARNING] This plugin is Work In Progress. API may change at every release. Please use with caution.
Install
npm install eslint-plugin-svg -D
yarn add eslint-plugin-svg -D
pnpm add eslint-plugin-svg -D
Usage
Config in ESLint config files:
import pluginSvg from 'eslint-plugin-svg'
/**
* @type {import('eslint').Linter.Config[]}
*/
export default [
...pluginSvg.configs.recommended,
// Other configs...
]
:apple: For advanced usaged, please check Advanced Usage
Rules
💼 Configurations enabled in.
✅ Set in the recommended
preset.
🔧 Automatically fixable by the --fix
CLI option.
💡 Manually fixable by editor suggestions.
| Name | Description | 💼 | 🔧 | 💡 | | :--- | :---------- | :-: | :-: | :-: |