@ariesclark/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

1.7.2 • Public • Published

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/next" // Uncomment if using Next.js, includes React automatically.
    "@ariesclark/eslint-config/tailwindcss",
  ]
};

Package Sidebar

Install

npm i @ariesclark/eslint-config

Weekly Downloads

80

Version

1.7.2

License

MIT

Unpacked Size

25.1 kB

Total Files

29

Last publish

Collaborators

  • ariesclark