5.0.0 • Published 1 year ago

@alexasselin/eslint-plugin v5.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@sharegate/eslint-plugin

License npm version

ShareGate’s ESLint configs.

Installation

Install the package.

With npm

npm i --save-dev @sharegate/eslint-plugin

With yarn

yarn add --dev @sharegate/eslint-plugin

Usage

TODO

Plugin-Provided Rules

This plugin provides the following custom rules, which are included as appropriate in all core linting configs:

  • prefer-cx: Prefer cx over classnames as the name of classnames imports.
  • restrict-full-import: Prevent importing the entirety of a package.
  • strict-css-modules-names: CSS modules should have the same file name (minus the file extension) as the scoped component and be located in the same folder.