2.3.11 • Published 1 year ago
@gustavogvbs/eslint-config v2.3.11
My ESLint and Prettier config
Whats included?
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Import Helpers;
- Prettier;
Setup
Step 1
Install dependencies
npm i -D @gustavogvbs/eslint-configStep 2
Inside the configuration file: .eslintrc.json
React
{
"extends": ["@gustavogvbs/eslint-config/react"]
}or
Node.js
{
"extends": "@gustavogvbs/eslint-config/react"
}Step 3
Inside .prettierrc.json
{
"extends": "gustavogvbs/eslint-config/prettier"
}Optional
Adding plugin configuration eslint-plugin-import-helpers
Inside .eslintrc.json
{
"extends": ["@gustavogvbs/eslint-config/react"],
"rules": {
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": [...], // configure the import method
"alphabetize": { "order": "asc", "ignoreCase": true }
}
]
}
}2.3.0
1 year ago
2.2.1
1 year ago
2.3.2
1 year ago
2.2.3
1 year ago
2.3.1
1 year ago
2.2.2
1 year ago
2.3.4
1 year ago
2.2.5
1 year ago
2.3.3
1 year ago
2.2.4
1 year ago
2.3.6
1 year ago
2.3.5
1 year ago
2.2.6
1 year ago
2.1.0
1 year ago
2.0.0
1 year ago
2.3.8
1 year ago
2.3.7
1 year ago
2.3.9
1 year ago
2.3.11
1 year ago
2.3.10
1 year ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago