eslint-config-codely v4.5.0
π How to use
Install the dependency.
npm install --save-dev eslint-config-codely
Add it to your
eslint.config.js
:import eslintConfigCodely from "eslint-config-codely"; export default [ // If you're using js ...eslintConfigCodely.js, // Or if you're using ts. The ts config includes the js one, so you don't need to include it manually. ...eslintConfigCodely.ts, { // Your config here } ]
Also, you can use the
full
config, which includes thejs
,ts
and very opinionated Codely configs.import eslintConfigCodely from "eslint-config-codely"; export default [ ...eslintConfigCodely.full, { // Your config here } ]
We have a
course
setting. This is the same as thefull
config, but with a narrower width due to the zoom used during video recordings:import eslintConfigCodely from "eslint-config-codely"; export default [ ...eslintConfigCodely.course, { // Your config here } ]
!NOTE
Some rules enabled by default requirestrict: true
to be set in yourtsconfig.json
.
π€ What it does
- Lints JavaScript using
eslint:recommended
and Prettier. - Additionally, lints TypeScript using
@typescript-eslint/recommended
and@typescript-eslint/recommended-requiring-type-checking
. - Uses the following plugins:
import
: helps validate proper imports.simple-import-sort
: sorts imports.unused-imports
: finds and removes unused ES6 module imports.
- Uses rules inside the configs folder.
πΒ Codely Code Quality Standards
Publishing this package we are committing ourselves to the following code quality standards:
- π€ Respect Semantic Versioning: No breaking changes in patch or minor versions.
- π€ No surprises in transitive dependencies: Use the bare minimum dependencies needed to meet the purpose.
- π― One specific purpose to meet without having to carry a bunch of unnecessary other utilities.
- β Tests as documentation and usage examples.
- π Well documented ReadMe showing how to install and use.
- βοΈ License favoring Open Source and collaboration.
π Related resources
- π¦ Linting en JavaScript y TypeScript: Used as a template to bootstrap this plugin.
- π― Codely's ESLint Hexagonal Architecture plugin: A plugin that helps you to enforce hexagonal architecture best practises. Valid for your JavaScript or TypeScript projects.
Opinionated skeletons ready for different purposes:
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago