@simtechdev/eslint-config-typescript
v2.0.10
Published
ESLint config for React + TypeScript projects (legacy + flat-config)
Keywords
Readme
Package info
eslint-config-typescript is a simple es-lint plugin used for projects based on react and typescript
Install peer dependencies
Eslint and typescript should be installed in project:
npm i -D eslint typescriptor
yarn add -D eslint typescriptGetting started
Install package:
npm i -D @simtechdev/eslint-config-typescriptor
yarn add -D @simtechdev/eslint-config-typescriptUsage
1. Add plugin to ES-Lint configuration
- For flat eslint configuration (eslint.config.js):
import simtechdevConfig from '@simtechdev/eslint-config-typescript'
export default [...simtechdevConfig]- For legacy eslint configuration (eslintrc files): add plugin to "extends" section:
{
"extends": ["@simtechdev/eslint-config-typescript/legacy"]
}2. Configure your IDE to applying plugin rules on save
Example of vs-code configuration file settings.json:
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}