eslint-plugin-sc-js
v0.2.0
Published
Strict Check rules for eslint for javascript / typescript
Maintainers
Readme
eslint-plugin-sc-js
- Strict Check rules for eslint.
- For Javascript / Typescript.
Supports eslint v9.
Installation
# by pnpm
$ pnpm add -D eslint-plugin-sc-js
# by npm
$ npm i --save-dev eslint-plugin-sc-jsUsage
for eslint.config.mjs
import eslintPluginSCJs from "eslint-plugin-sc-js"
export default [
{
plugins: {
js: eslintPluginSCJs, // It is not necessary when use the recommended config
},
},
eslintPluginSCJs.configs.recommended,
]Rules
✅: Set in the recommended configuration.
| Name | Description | 💼 | | ---------------------------------------------------------------------------------- | ------------------------------------------------ | --- | | file-path-patterns | Check if file path follows regular expression | | | forbidden-multiple-named-exports | Forbidden the multiple named exports at one file | | | individual-import | Import them individual | | | match-names-of-file-and-export | Match name of filename and export target | | | restrict-use-of-process-env | Restrict environment usage | ✅ |
