diff --git a/README.md b/README.md index ef949251..b8fcdaf7 100644 --- a/README.md +++ b/README.md @@ -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": [ diff --git a/packages/eslint-config-typescript/index.js b/packages/eslint-config-typescript/index.js index 9c5f1574..e2ead9dc 100644 --- a/packages/eslint-config-typescript/index.js +++ b/packages/eslint-config-typescript/index.js @@ -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: