eslint-config-deepcrawl v14.4.1
eslint-config
ESLint rules used by DeepCrawl.
Installation
Add eslint-config-deepcrawl
and its peer dependencies to your package.json
:
yarn add --dev \
eslint-config-deepcrawl \
eslint@^9.22.0
Usage
Update your eslint.config.mjs
file:
import eslintConfigDeepcrawl from "eslint-config-deepcrawl";
export default [...eslintConfigDeepcrawl];
Recommendations
TypeScript
Have these options enabled in your tsconfig.json
file:
{
"compilerOptions": {
"noImplicitAny": true,
"strictPropertyInitialization": true
}
}
or enable @typescript-eslint/typedef
rule.
Prettier
Apart from ESLint, it is recommended to use the following Prettier configuration:
{
"arrowParens": "avoid",
"bracketSpacing": true,
"endOfLine": "lf",
"plugins": ["prettier-plugin-packagejson"],
"printWidth": 120,
"quoteProps": "as-needed",
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}
with lint-staged
pre-commit hook done via husky
.
3 months ago
3 months ago
4 months ago
7 months ago
7 months ago
8 months ago
8 months ago
10 months ago
9 months ago
8 months ago
8 months ago
10 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago