4.4.0 • Published 2 months ago
@digitalroute/eslint-config v4.4.0
@digitalroute/eslint-config
Eslint shareable configuration for Digitalroute projects. It is meant to be used with prettier, and is therefore for code-quality concerns instead of code formatting.
Usage
1 Install
Install this config as a devDependency
:
npm install @digitalroute/eslint-config --save-dev
2 Configure
Add the following to your package.json
:
{
"eslint": {
"extends": "@digitalroute/eslint-config"
}
}
or for typescript projects
{
"eslintConfig": {
"extends": "@digitalroute/eslint-config/typescript"
}
}
3 Add script
Add the following to your scripts in package.json
:
"eslint": "eslint '{src,test}/**/*.{js,jsx,ts,tsx}'",
Replace {src,test}
with any top-level directories you want to test.
What does this configuration use?
This configuration extends the following configurations (in chronological order):
- eslint:recommended
- xo-space
- plugin:node/recommended
- plugin:unicorn/recommended
- (Only in typescript) plugin:@typescript-eslint/eslint-recommended
- (Only in typescript) plugin:@typescript-eslint/recommended
- prettier
4.4.0
2 months ago
4.3.0
3 months ago
3.1.0
7 months ago
3.0.0
7 months ago
4.1.0
7 months ago
4.0.0
7 months ago
4.2.0
6 months ago
2.2.0
2 years ago
2.1.0
4 years ago
2.0.0
4 years ago
1.4.0
4 years ago
1.3.0
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago