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