Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 1.69 KB

README.md

File metadata and controls

70 lines (53 loc) · 1.69 KB

Forked from @remix-run/eslint-config

Personal ESlint config forked from Remix to support non-remix environments.

Installation

First, install this package along with ESLint in your project. This package requires at least version 8.1 of ESLint

npm install -D eslint @rileytomasek/eslint-config

Node.js

Then create a file named .eslintrc.js in the root of your project:

module.exports = {
  extends: [
    "@rileytomasek/eslint-config",
    "@rileytomasek/eslint-config/node",
  ]
};

React

Then create a file named .eslintrc.js in the root of your project:

module.exports = {
  extends: [
    "@rileytomasek/eslint-config",
    "@rileytomasek/eslint-config/react",
  ]
};

Please note that because this ruleset is optional, we do not include the core libraries as peer dependencies for this package. If you use these rules, be sure that you have the following dependencies installed in your project:

{
  "dependencies": {
    "react": "*",
  }
}

Jest

This packages also ships with optional configuration options for projects that use Jest. To enable these rules, add the following to your .eslintrc:

module.exports = {
  extends: [
    "@rileytomasek/eslint-config",
    "@rileytomasek/eslint-config/jest",
  ],
};

Please note that because this ruleset is optional, we do not include the core libraries as peer dependencies for this package. If you use these rules, be sure that you have the following dependencies installed in your project:

{
  "dependencies": {
    "jest": ">=26.0.0"
  }
}