@arabasta/eslint-plugin-typescript
v1.0.1
Published
ESLint plugin for typescript rules
Downloads
154
Readme
@arabasta/eslint-plugin-typescript
ESLint plugin for typescript rules.
Installation
Assuming you already have ESLint installed, run:
# npm
npm install --save-dev @arabasta/eslint-plugin-typescript
# yarn
yarn add --dev @arabasta/eslint-plugin-typescript
# pnpm
pnpm add --save-dev @arabasta/eslint-plugin-typescript
Usage
Flat config (eslint.config.js)
// ...
import arabastaTypescript from '@arabasta/eslint-plugin-typescript';
export default [
// ...
arabastaTypescript.configs.recommended,
];
Legacy config (.eslintrc)
{
"extends": [
// ...
"plugin:@arabasta/typescript/recommended-legacy"
]
}
Rules
💼 Configurations enabled in.
✅ Set in the recommended
configuration.
💡 Manually fixable by editor suggestions.
💭 Requires type information.
| Name | Description | 💼 | 💡 | 💭 | | :------------------------------------------------------------------------------------- | :--------------------------------------- | :-- | :-- | :-- | | enum-value-should-match-enum-name | requires enum values to match enum keys | ✅ | 💡 | | | no-destructuring-arrays-as-objects | disallow destructuring arrays as objects | ✅ | | 💭 |