Strict Check

eslint-plugin-sc-js#

This is a package that requires individual rule settings for javascript.

Usage#

Installation#

1$ npm i -D eslint-plugin-sc-js

Setup#

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.

NameDescription💼
file-path-patternsCheck if file path follows regular expression
forbidden-multiple-named-exportsForbidden the multiple named exports at one file
individual-importImport them individual
match-names-of-file-and-exportMatch name of filename and export target
restrict-use-of-process-envRestrict environment usage