@echristian/eslint-config
v0.0.12
Published
Erick's ESLint config
Downloads
492
Readme
@echristian/eslint-config
A modern and opinionated ESLint configuration with TypeScript and JSX support.
Installation
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
Usage
Create an eslint.config.js
file in your project root:
import eslintConfig from "@echristian/eslint-config";
export default eslintConfig({
// Configuration options here
});
Example Configurations
Basic TypeScript Project with JSX
import eslintConfig from "@echristian/eslint-config";
export default eslintConfig({
ignores: ["dist/"],
jsx: true,
});
TypeScript Project without Type Checking
import eslintConfig from "@echristian/eslint-config";
export default eslintConfig({
ignores: ["dist/"],
typescript: {
typeChecked: false,
},
});
Dependencies
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
License
MIT - See LICENSE for more information.