An ESLint shareable configuration that we used for our projects.
npm install -D @clytage/eslint-config
or with Yarn
yarn add -D @clytage/eslint-config
Click here for more details about ESLint guide.
Example:
{
"extends": "@clytage/eslint-config"
}
or "@clytage/eslint-config/node"
if you're on Node environment.
Example (TypeScript):
{
"extends": "@clytage/eslint-config/typescript",
"parserOptions": {
"project": "./tsconfig.json"
},
"ignorePatterns": [
"dist/**",
"node_modules/**"
]
}
or "@clytage/eslint-config/typescript/node"
if you're on Node environment.
This package is requires ESLint version 8.44.0
or above.
TypeScript config requires:
- @typescript-eslint/eslint-plugin version
6.0.0
or above. - @typescript-eslint/parser version
6.0.0
or above. - typescript version
3.3.1
to6.0.0
(ranged).