An ESLint shareable configuration that used in Zhycorp's projects ✔
npm install -D @zhycorp/eslint-config
or with yarn
yarn add -D @zhycorp/eslint-config
Click here to see ESLint guide
Example:
{
"extends": "@zhycorp/eslint-config"
}
or "@zhycorp/eslint-config/node"
for Node environment
Example (TS):
{
"extends": "@zhycorp/eslint-config/typescript"
}
or "@zhycorp/eslint-config/typescript/node"
for Node environment
Requires ESLint version 8.0.0 or above
TypeScript config requires:
- @typescript-eslint/parser version 5.0.0 or above
- @typescript-eslint/eslint-plugin version 5.0.0 or above
- typescript version 3.3.1 to 4.5.0 (required by
@typescript-eslint/parser
and@typescript-eslint/eslint-plugin
)