0.0.3 ⢠Published 5 months ago
eslint-plugin-svg v0.0.3
eslint-plugin-svg
Rules for consistent, readable and valid SVG files.
!CAUTION Status: Work In Progress. Not ready for use.
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 [
// Other configs...
...pluginSvg.configs.recommended,
]
: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 | š¼ | š§ | š” |
---|---|---|---|---|
no-empty-title | Disallow empty title element | ā | ||
no-empty-desc | Disallow empty desc element | ā | ||
no-empty-text | Disallow empty text element | ā | ||
no-empty-container | Disallow empty container element | ā | ||
no-deprecated | Disallow deprecated elements | ā | ||
no-elements | Disallow elements by name | |||
no-doctype | Disallow doctype | ā | š§ |