@sanv/eslint-config-typescript
2.1.1 • Public • Published
Eslint Configuration with Typescript Support
- Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-typescript" --save-dev
- Add next line to your
.eslintrc.js
:
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['prettier', '@typescript-eslint'],
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
},
extends: [
'@sanv/eslint-config-typescript',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
}
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 2.1.1
0
Version History
Package Sidebar
Install
npm i @sanv/eslint-config-typescript
Weekly Downloads