2.0.4 • Published 9 months ago
@anton.bobrov/eslint-config v2.0.4
@anton.bobrov/eslint-config
An ESLint configuration package that integrates Prettier and provides tailored setups for TypeScript, React, and Next.js.
Links
Installation
To get started, install ESLint, Prettier, and the configuration package. Ensure the versions match those below:
npm i eslint@8.56.0 prettier@3.3.3 --save-dev
npm i "@anton.bobrov/eslint-config" --save-dev
Usage
Create a .eslintrc.js
file:
/** @type {import("eslint").Linter.Config} */
module.exports = {
parserOptions: {
project: './tsconfig.eslint.json',
},
// only for base config
extends: ['@anton.bobrov/eslint-config'],
// only for React
extends: ['@anton.bobrov/eslint-config/react'],
// only for Next.js
extends: ['@anton.bobrov/eslint-config/next'],
};
Create tsconfig.eslint.json
:
{
"extends": "./tsconfig.json",
"include": ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx", "./.eslintrc.js"]
}
Create prettier.config.js
:
module.exports = require('@anton.bobrov/eslint-config/prettier');
Create .gitattributes
:
* text=auto eol=lf
Create .editorconfig
:
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
License
This project is licensed under the terms of the MIT license.
2.0.3
9 months ago
2.0.4
9 months ago
2.0.2
10 months ago
2.0.1
10 months ago
2.0.0
10 months ago
1.4.1
11 months ago
1.4.0
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.0
2 years ago
1.1.20
2 years ago
1.1.19
2 years ago
1.1.18
2 years ago
1.1.17
2 years ago
1.1.16
2 years ago
1.1.15
2 years ago
1.1.14
2 years ago
1.1.13
2 years ago
1.1.12
2 years ago
1.1.11
2 years ago
1.1.10
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.4
2 years ago
1.0.2
2 years ago