1.0.8 • Published 2 months ago
@gcoguiec/eslint-config-base v1.0.8
- Single quotes, semicolons.
- Provides reasonable defaults for any ECMAScript projects (see
eslint-config-typescript
if you're looking for a TypeScript-oriented configuration). - Only does one thing and one thing only: linting.
- It is designed to cooperate well with auto-formatters.
Table of Contents
Getting Started
Install
pnpm add -D eslint eslint-plugin-import eslint-plugin-promise @gcoguiec/eslint-config-base
Register the configuration with eslint
Edit your .eslintrc
configuration file (you may have to create the file at your project root if it's missing) with the following :
{
"extends": "@gcoguiec/eslint-config-base"
}
(Optional) Add the scripts to your package.json
file
{
"scripts": {
"lint": "eslint . --ignore-path .gitignore",
"lint:fix": "pnpm lint --fix"
}
}
Note: you can replace pnpm
by your favorite package manager instead.
(Optional) Add the tasks to your justfile
lint *args:
pnpm eslint . --ignore-path .gitignore {{args}}
lint-fix:
@just lint --fix
See Also
Other ESLint configurations based on this package you may want to look at:
License
This package is licensed under BSD 2-Clause.