Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(eslint-config-typescript): use parser config
  • Loading branch information
clarkdo committed Oct 24, 2021
1 parent 27e3fc1 commit 7617549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -46,8 +46,8 @@ A full example `.eslintrc` for a project with babel support:
```json
{
"root": true,
"parser": "@babel/eslint-parser",
"parserOptions": {
"parser": "@babel/eslint-parser",
"sourceType": "module"
},
"extends": [
Expand Down
4 changes: 1 addition & 3 deletions packages/eslint-config-typescript/index.js
Expand Up @@ -3,9 +3,7 @@ module.exports = {
'@nuxtjs'
],
plugins: ['@typescript-eslint'],
parserOptions: {
parser: '@typescript-eslint/parser'
},
parser: '@typescript-eslint/parser',
rules: {
'@typescript-eslint/no-unused-vars': ['error', { args: 'all', argsIgnorePattern: '^_' }],
// Per the docs, the root no-unused-vars should be disabled:
Expand Down

0 comments on commit 7617549

Please sign in to comment.