13.0.0 • Published 18 days ago
eslint-config-deepcrawl v13.0.0
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@^8.57.0
Usage
Update your .eslintrc
configuration:
{
"extends": ["deepcrawl"]
}
If you are using tsconfig paths, you also need to let eslint-plugin-import
know, which imports should it consider internal, for example:
{
"settings": {
"import/internal-regex": "^@(src|test)/"
}
}
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",
"printWidth": 120,
"quoteProps": "as-needed",
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}
with lint-staged
pre-commit hook done via husky
.
13.0.0
18 days ago
12.0.0
7 months ago
12.1.0
7 months ago
11.0.0
9 months ago
10.0.0
1 year ago
9.0.0
1 year ago
8.1.0
1 year ago
8.0.0
2 years ago
7.0.0
2 years ago
6.0.0
2 years ago
5.10.0
2 years ago
5.9.0
3 years ago
5.8.0
3 years ago
5.7.1
3 years ago
5.7.0
4 years ago
5.6.0
4 years ago
5.5.1
4 years ago
5.5.0
4 years ago
5.4.1
4 years ago
5.4.0
4 years ago
5.3.0
4 years ago
5.2.1
4 years ago