ariesclark / eslint-config

An eslint configuration

Home Page:https://aries.fyi/eslint-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ariesclark/eslint-config

Usage

Applying the ruleset to your project is quick and easy. You install the package, then create an .eslintrc.js file and select an appropriate project profile.

1. Install the package

To install the package, do this:

pnpm install -D eslint typescript @ariesclark/eslint-config

2. Configure the linter

Create an .eslintrc.js config file that provides the Node.js __dirname context for TypeScript, as shown below:

.eslintrc.js
require("@ariesclark/eslint-config/eslint-patch");
process.env["ESLINT_PROJECT_ROOT"] = __dirname;

module.exports = {
  root: true,
  extends: [
    "@ariesclark/eslint-config",
    "@ariesclark/eslint-config/react",
    "@ariesclark/eslint-config/tailwindcss",
  ]
};

About

An eslint configuration

https://aries.fyi/eslint-config

License:MIT License


Languages

Language:TypeScript 98.2%Language:JavaScript 1.8%