ESLint Configuration
Shared JS configuration for Raposify apps
This is an NPM package to be used across all Javascript projects in Raposify. It is based on the official recommended configurations for the following ESLint plugins:
- ESLint
- React (configured for Preact)
- Jest
- Prettier
How to use
- In your project, install this package as a dev dependency:
> npm i eslint @raposify/eslint-config -D
- Add the following to your
package.json
file"eslintConfig": { "extends": "@raposify" }
How to update
To update this package
- Clone the repo
> git clone https://gitlab.com/raposify/eslint-config.git
- Install dependencies
> npm i
- Modify rules in
index.js
- Test the package by creating a new project, then installing this package with
Follow the "How to use" instructions (above).> npm i path/to/this/repo -D
- Commit changes to this repo
- Increment the version in
package.json
> npm version <patch|minor|major>
- Commit version upgrade to this repo
- Go back to the package directory and publish it
> npm publish --access public