1.0.2 • Published 2 years 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.jsonfile:
{
"extends": "@maxencebonamy"
}- Add the scripts for linting into the
package.jsonfile 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.jsonfile:
{
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}2.0.0-beta.3
2 years ago
2.0.0-beta.2
2 years ago
2.0.0-beta.1
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago