Menu
eslint-plugin-sc-js#
This is a package that requires individual rule settings for javascript.
Usage#
Installation#
1$ npm i -D eslint-plugin-sc-jsSetup#
1// eslint.config.mjs
2import eslintPluginSCJs from "eslint-plugin-sc-js"
3
4return [
5 {
6 plugins: {
7 "js": eslintPluginSCJs, // It is not necessary when use the recommended config
8 },
9 },
10 eslintPluginSCJs.configs.recommended,
11]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 | ✅ |