@asl-19/eslint-config
v0.8.0
Published
Shared ESLint config for ASL19 projects
Downloads
330
Readme
@asl-19/eslint-config
Shared ESLint config for ASL19 projects.
This config replaces @asl-19/eslint-config-typescript and @asl-19/eslint-config-typescript-react.
How to use
Install
npm install @asl-19/eslint-config --save-dev
Add to ESLint config
For TypeScript projects:
Create a .eslintrc.js
containing (at least) the following:
// Workaround for https://github.com/eslint/eslint/issues/3458
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
extends: ["@asl-19/eslint-config", "@asl-19/eslint-config/typescript"],
};
For TypeScript + React projects:
Create a .eslintrc.js
containing (at least) the following:
// Workaround for https://github.com/eslint/eslint/issues/3458
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
extends: [
"@asl-19/eslint-config",
"@asl-19/eslint-config/next", // For Next.js projects
"@asl-19/eslint-config/react",
"@asl-19/eslint-config/typescript",
],
};
Compatibility
This package is developed with Node.js 18 (the active LTS release as of 2023-03-20). The code should be forward-compatible, but use with newer Node.js versions is untested and unsupported.