eslint-config-gfp v4.5.2
This is the config used for all products based on the Green Frontend platform.
How to use
Install package:
npm install --save-dev eslint eslint-config-gfpAdd lint script in package.json
"scripts": { "lint": "eslint *.js" },Create
.eslintrc.jsonin the root of the project. To use our browser rules (comes with angular environment, made for ES5):{ "extends": "gfp" }To use our node JS rules (made for ES6 progressively), use:
{ "extends": "gfp/node" }To use our React JS rules (including JSX support), use:
{ "extends": "gfp/react" }To use our React Native JS rules (including JSX support), use:
{ "extends": "gfp/react-native" }To use our Jest JS rules, use:
{ "extends": "gfp/jest" }If you are using Prettier with any of our eslint configurations, add:
{ "extends": "gfp/prettier" }
Contributing
We use semantic versioning. That means that if you introduce a change that will break current API (the eslint rules fails) it is a MAJOR change.
If you introduce a change that only "warn" about a new rule it is considered a MINOR change.
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago