0.0.3 • Published 5 months ago

eslint-plugin-svg v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

eslint-plugin-svg

CI NPM VERSION NPM DOWNLOADS CODECOV LICENSE

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.

NameDescriptionšŸ’¼šŸ”§šŸ’”
no-empty-titleDisallow empty title elementāœ…
no-empty-descDisallow empty desc elementāœ…
no-empty-textDisallow empty text elementāœ…
no-empty-containerDisallow empty container elementāœ…
no-deprecatedDisallow deprecated elementsāœ…
no-elementsDisallow elements by name
no-doctypeDisallow doctypeāœ…šŸ”§

License

MIT License Ā© 2024-PRESENT ntnyq

0.0.1

6 months ago

0.0.3

5 months ago

0.0.2

6 months ago

0.0.0

6 months ago