2.0.0 • Published 9 months ago
@scitotec/eslint-plugin-rules v2.0.0
@scitotec/eslint-plugin-rules
A plugin providing custom ESLint rules made by Scitotec GmbH.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install @scitotec/eslint-plugin-rules:
$ npm install @scitotec/eslint-plugin-rules --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install @scitotec/eslint-plugin-rules globally.
Usage
Import @scitotec/rules within your eslint.config.js configuration file.
import pluginScitotec from '@scitotec/eslint-plugin-rules'Then just add the recommended rules to your plugin:
export default [
// ... your other rules...
...pluginScitotec.configs.recommended,
]Alternatively, add the plugin and configure the rules yourself:
export default [
// ... your other rules...
{
plugins: {
'@scitotec': pluginScitotec,
},
rules: {
"@scitotec/split-imports": "warn",
},
},
]Supported Rules
- split-imports: Require an independent import statement per module.