@leandromatos/eslint-config v3.0.0-rc.12
ESlint Config
This package's version, v3.x, works with ESLint v9.x. If you are using an older version of ESLint, please use the package's version v2.x..
This is a custom and sharable ESLint configuration for TypeScript, JavaScript, and React projects. It includes the following packages:
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-prettier
- eslint-plugin-react-hooks
- eslint-plugin-react
- eslint-plugin-simple-import-sort
- eslint
- prettier-plugin-tailwindcss
- prettier
- typescript-eslint
Usage
It's crucial to note that you must install the
typescript
package, even in a project that uses only JavaScript. This is because ESLint leverages TypeScript to parse the code and provide more accurate error messages.
Use yarn or another package manager to install the package. For example:
yarn add --dev eslint typescript @leandromatos/eslint-config
Create a new
eslint.config.js
file in the root of your project and add the following content:const { flatConfig } = require("@leandromatos/eslint-config") module.exports = [ ...flatConfig ]
If you want to override some rules, you can do so by adding new configuration objects to the array. For example:
const { flatConfig } = require("@leandromatos/eslint-config") module.exports = [ ...flatConfig, { rules: { "no-unused-vars": "warn" } } ]
License
This package is licensed under the MIT License. For more information, see the LICENSE file.
5 days ago
12 days ago
12 days ago
12 days ago
12 days ago
18 days ago
25 days ago
25 days ago
25 days ago
29 days ago
29 days ago
29 days ago
28 days ago
2 months ago
2 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
5 months ago
10 months ago
7 months ago
7 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago