1.0.2 • Published 1 year ago
@maxencebonamy/eslint-config v1.0.2
ESLint is a static code linter for JavaScript, which means it analyzes your JavaScript code for errors, style problems and coding convention violations. This is my ESLint configuration, which I use for my JavaScript and TypeScript projects.
Install the config:
!NOTE Prerequisites:
- NodeJS must be installed on your computer. If not, click here.
- Install the dependency:
npm install -D eslint @maxencebonamy/eslint-config
- Paste the following code into the
.eslintrc.json
file:
{
"extends": "@maxencebonamy"
}
- Add the scripts for linting into the
package.json
file by pasting the following code:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Enable auto fix with VS Code:
Install ESLint extension.
Paste the folling code into the
.vscode/settings.json
file:
{
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
2.0.0-beta.3
1 year ago
2.0.0-beta.2
1 year ago
2.0.0-beta.1
1 year ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago