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"
],
};
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/react"
],
};
Compatibility
This package is developed with Node.js 16 (the active LTS release as of 2021-10-29). The code should be forward-compatible, but use with newer Node.js versions is untested and unsupported.