5.0.0 • Published 1 year ago
@alexasselin/eslint-plugin v5.0.0
@sharegate/eslint-plugin
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.