DeprecatedThis package is deprecated
eslint-config-strict-check
- Strict config for eslint.
How to use
Installation
$ yarn add -D eslint-config-strict-check
Each to use for eslint.config.mjs
Use for TypeScript
// eslint.config.mjs
import eslintConfigStrictCheck from "eslint-config-strict-check"
export default [
...eslintConfigStrictCheck.configs.typescript,
]
Use for TypeScript with Jest
// eslint.config.mjs
import eslintConfigStrictCheck from "eslint-config-strict-check"
export default [
...eslintConfigStrictCheck.configs.typescriptMax,
]
Use for React with TypeScript
// eslint.config.mjs
import eslintConfigStrictCheck from "eslint-config-strict-check"
export default [
...eslintConfigStrictCheck.configs.react,
]
Use for React with TypeScript, Jest, Storybook
// eslint.config.mjs
import eslintConfigStrictCheck from "eslint-config-strict-check"
export default [
...eslintConfigStrictCheck.configs.reactMax,
]
Use for Next.js with TypeScript
This is the same settings as react config currently.
Because, have an error when extends eslint-config-next.
// eslint.config.mjs
import eslintConfigStrictCheck from "eslint-config-strict-check"
export default [
...eslintConfigStrictCheck.configs.next,
]
Use for Next.js with TypeScript, Jest, Storybook
This is the same settings as reactMax config currently.
Because, have an error when extends eslint-config-next.
// eslint.config.mjs
import eslintConfigStrictCheck from "eslint-config-strict-check"
export default [
...eslintConfigStrictCheck.configs.nextMax,
]
Each to use for .eslintrc.js
Use for TypeScript
// .eslintrc.js
module.exports = {
extends: ["strict-check"]
}
Use for TypeScript with Jest
// .eslintrc.js
module.exports = {
extends: ["strict-check/legacy-typescript-max"]
}
Use for React with TypeScript
// .eslintrc.js
module.exports = {
extends: ["strict-check/legacy-react"]
}
Use for React with TypeScript, Jest, Storybook
// .eslintrc.js
module.exports = {
extends: ["strict-check/legacy-react-max"]
}
Use for Next.js with TypeScript
// .eslintrc.js
module.exports = {
extends: ["strict-check/legacy-next"]
}
Use for Next.js with TypeScript, Jest, Storybook
// .eslintrc.js
module.exports = {
extends: ["strict-check/legacy-next-max"]
}
Each to use for eslint.config.js
Used config, plugin ( alphabetical )
config
plugin
- eslint-plugin-jest
- eslint-plugin-react
- eslint-plugin-react-hooks
- eslint-plugin-storybook
- eslint-plugin-unicorn
- eslint-plugin-strict-check
Recommended, but not includes
plugin
License
- MIT
- This is includes the work that is distributed in the Apache License 2.0.