@trigen/eslint-config
v8.0.0-alpha.32
Published
Trigen's ESLint config.
Downloads
608
Readme
@trigen/eslint-config
Trigen's ESLint config.
Install
pnpm add -D @trigen/eslint-config
# or
yarn add -D @trigen/eslint-config
# or
npm i -D @trigen/eslint-config
Configure
Create .eslintrc.json
with next content:
{
"extends": "@trigen/eslint-config"
}
Additional configs
There are additional configs for specific language features:
| Config | Description | |--------|-------------| | @trigen/eslint-config/commonjs | Rules for CommonJS modules. | | @trigen/eslint-config/esm | Rules for ES modules. | | @trigen/eslint-config/tsm | Rules for TS modules. | | @trigen/eslint-config/react | Rules for ReactJS code. | | @trigen/eslint-config/jest | Rules for Jest tests. | | @trigen/eslint-config/jest-dom | Rules for Jest DOM tests. | | @trigen/eslint-config/storybook | Rules for Storybook's stories. | | @trigen/eslint-config/typescript | Rules for TypeScript code. | | @trigen/eslint-config/typescript-requiring-type-checking | Rules for TypeScript code with type checking. |
Example:
{
"extends": [
"@trigen/eslint-config",
"@trigen/eslint-config/react",
"@trigen/eslint-config/typescript",
"@trigen/eslint-config/typescript-requiring-type-checking"
]
}