2.0.5 • Published 1 year ago
@anton.bobrov/eslint-config v2.0.5
@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-devUsage
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=lfCreate .editorconfig:
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = falseLicense
This project is licensed under the terms of the MIT license.
2.0.5
1 year ago
2.0.3
1 year ago
2.0.4
1 year ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.4.1
1 year 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
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.4
3 years ago
1.0.2
3 years ago