eslint-config-gbx

4.0.1 • Public • Published

ESLint logo

eslint-config-gbx

👋 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.

❤️ Thanks

Thanks to ESlint and Prettier for making such great tools.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-gbx

Weekly Downloads

23

Version

4.0.1

License

MIT

Unpacked Size

17 kB

Total Files

7

Last publish

Collaborators

  • grbull