2.3.11 • Published 11 months ago

@gustavogvbs/eslint-config v2.3.11

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

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-config

Step 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

12 months ago

2.2.1

12 months ago

2.3.2

12 months ago

2.2.3

12 months ago

2.3.1

12 months ago

2.2.2

12 months ago

2.3.4

12 months ago

2.2.5

12 months ago

2.3.3

12 months ago

2.2.4

12 months ago

2.3.6

12 months ago

2.3.5

12 months ago

2.2.6

12 months ago

2.1.0

12 months ago

2.0.0

12 months ago

2.3.8

12 months ago

2.3.7

12 months ago

2.3.9

12 months ago

2.3.11

11 months ago

2.3.10

11 months 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