2.0.5 • Published 2 years ago
@dlevs/eslint-config v2.0.5
ESLint config
An ESLint config for TypeScript projects.
Installation
npm i -D eslint @dlevs/eslint-configUsage
Make an eslint.config.js file:
import { configure } from "@dlevs/eslint-config";
/** @type {import("eslint").Linter.FlatConfig[]} */
export default [
{
// Use this instead of a .eslintignore file.
ignores: ["build/**", "public/**"],
},
...configure({ react: true, remix: true }),
];Note, .eslintrc files won't work - you must name the file eslint.config.js, and use the "flat config" format. It was implemented this way as it's the only way to include plugins in a shareable config.
Update VSCode settings
If using VSCode, lint errors will not show until you add this to your settings.json file:
{
"eslint.experimental.useFlatConfig": true
}2.0.3
2 years ago
2.0.2
2 years ago
2.0.5
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago