eslint-config-gbx
v4.0.2
Published
Very opinionated eslint configs for node and react.
Downloads
27
Readme
👋 Introduction
I was tired of playing around with eslint configs with each project of mine, and the rules being inconsistent. Thus, eslint-config-gbx was born. I use it for all my projects to keep consistent linting rules.
⚒️ Installation and Usage
Node
npm install --save-dev eslint eslint-config-prettier eslint-config-gbx eslint-plugin-import eslint-plugin-prettier eslint-plugin-simple-import-sort prettier
"extends": ["gbx"]
Node with Typescript
npm install --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-config-gbx eslint-plugin-import eslint-plugin-prettier eslint-plugin-simple-import-sort prettier typescript
"extends": ["gbx", "gbx/typescript"]
React
npm install --save-dev eslint eslint-config-prettier eslint-config-gbx eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-simple-import-sort prettier
"extends": ["gbx", "gbx/react"]
React with Typescript
npm install --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-config-gbx eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-simple-import-sort prettier typescript
"extends": ["gbx", "gbx/react", "gbx/typescript"]
Prettier Config
"prettier": {
"endOfLine": "auto",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 120,
"singleAttributePerLine": true
}
📖 Changelog
Wondering what we've shipped recently? Check out our changelog for key highlights, performance improvements, new features, and notable bugfixes.
📝 License
Licensed under the MIT License.