@cardinal/eslint-config-react
v8.0.0
Published
Cardinal base React ESLint config
Downloads
24
Readme
@cardinal/eslint-config-react
Cardinal React ESLint config.
Installation
With Plug-n-Play (PNP)
ESLint has issues with PNP. First, install the following:
yarn add -D eslint eslint-import-resolver-node eslint-plugin-import @rushstack/eslint-patch
Then, in your .eslintrc.js
, add:
"use strict";
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
extends: ["@cardinal/eslint-config-react"],
parserOptions: {
project: "tsconfig.json",
},
};