@volvo-cars/eslint-plugin-css

0.5.3 • Public • Published

Configuration

This plugin provides next rules for .eslintrc:

rules:
  '@volvo-cars/css/deprecated-class': 'error'
  '@volvo-cars/css/redundant-class': 'warn'
  '@volvo-cars/css/conflicting-class': 'warn'
  '@volvo-cars/css/no-custom-class':
    [
      'warn',
      {
        whitelist: ['custom-class-to-whitelist'],
        whitelistPattern:'^somePrefix-.*',
      },
    ]

edls-css

If you want to use @volvo-cars/edls-css package together with @volvo-cars/eslint-plugin-css, you need to add the following configuration to your .eslintrc file:

settings:
  css:
    metaFiles:
      - '@volvo-cars/css/meta.json'
      - '@volvo-cars/edls-css/meta.json'

This will allow the @volvo-cars/eslint-plugin-css to lint properly the classes from the @volvo-cars/edls-css package.

Readme

Keywords

none

Package Sidebar

Install

npm i @volvo-cars/eslint-plugin-css

Weekly Downloads

378

Version

0.5.3

License

UNLICENSED

Unpacked Size

27.4 kB

Total Files

14

Last publish

Collaborators

  • sylvainestevezvolvocars
  • allenbargi-vcc
  • jacobrask
  • glenashley
  • volvocars-uip-bot
  • alizeait
  • kristiankalb
  • samny_volvocars