1.1.6 • Published 8 months ago
lemon-pledge v1.1.6
A shareable ESLint configuration that leverages TypeScript, React, and Stylistic ESLint Plugins. This config aims for clean, consistent, and modern code style.
npm i lemon-pledgeimport lemonPledge from 'lemon-pledge'
export default [
lemonPledge.configs.default // Standard JS
// OR
lemonPledge.configs.typed // TypeScript
// OR
lemonPledge.configs['typed-react'] // TypeScript + React
]Features
- React: Includes
eslint-plugin-reactandreact-hooks. - TypeScript: Integrates
@typescript-eslint/eslint-pluginfor type-safe linting. - Imports: Relies on
eslint-plugin-importto keep imports tidy and well-ordered. - Unused Imports: Removes unused imports/variables automatically via
eslint-plugin-unused-imports. - Prefer Arrow: Enforces arrow functions in most cases with
eslint-plugin-prefer-arrow. - Stylistic: Applies consistent stylistic rules with
@stylistic/eslint-plugin(includingjsxandtsextensions).