A modern and opinionated ESLint configuration with TypeScript and JSX support.
Using npm:
npm install -D @echristian/eslint-config eslint
Using yarn:
yarn add -D @echristian/eslint-config eslint
Using pnpm:
pnpm add -D @echristian/eslint-config eslint
Create an eslint.config.js
file in your project root:
import eslintConfig from "@echristian/eslint-config";
export default eslintConfig({
// Configuration options here
});
import eslintConfig from "@echristian/eslint-config";
export default eslintConfig({
ignores: ["dist/"],
jsx: true,
});
import eslintConfig from "@echristian/eslint-config";
export default eslintConfig({
ignores: ["dist/"],
typescript: {
typeChecked: false,
},
});
This config includes the following major dependencies:
@eslint/js
: Core ESLint rulestypescript-eslint
: TypeScript support@stylistic/eslint-plugin
: Style-related ruleseslint-plugin-unused-imports
: Unused imports managementeslint-plugin-perfectionist
: Additional best practices
MIT - See LICENSE for more information.