Skip to content
ESLint configurations based on RIDI style guide
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.eslintrc
.gitignore
.npmrc
.travis.yml
CHANGELOG.md
LICENSE
README.md
babel.js
index.js
package.json
prettier.js
react.js
typescript.js
yarn.lock

README.md

eslint-config

A rule set of RIDI's ESLint configurations based on Airbnb's.

Installation

Install @ridi/eslint-config package:

npm install --save-dev eslint @ridi/eslint-config

Usage

Default (airbnb based, outdated)

{
  "extends": "@ridi",
  "rules": {
    // exceptions
  }
}

Typescript

{
  "extends": [
    "@ridi/eslint-config/typescript",
  ],
}
  • @typescript-eslint/eslint-plugin

React

{
  "extends": [
    "@ridi/eslint-config/react",
  ],
}
  • eslint-plugin-import
  • eslint-plugin-jsx-a11y
  • eslint-plugin-react
  • eslint-plugin-react-hooks

Prettier

works fine with local configuration file (e.g. .prettierrc)

{
  "extends": [
    "@ridi/eslint-config/prettier",
  ],
}
  • eslint-plugin-prettier
You can’t perform that action at this time.