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.
To install the package, do this:
pnpm install -D eslint typescript @ariesclark/eslint-config
Create an .eslintrc.js config file that provides the Node.js __dirname
context for TypeScript, as shown below:
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",
]
};