From 02efe89f7af357ece95bc66d9a4305b9e64ab9c2 Mon Sep 17 00:00:00 2001 From: Tiago Loureiro Date: Thu, 25 Jan 2024 12:24:27 +0000 Subject: [PATCH] Use project parserOptions instead of defining our own. --- CHANGELOG.md | 7 +++++++ package-lock.json | 6 +++--- package.json | 2 +- src/config.js | 1 + src/typescript.js | 1 - 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb119f2..134c2dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [v0.2.1] - 2024-01-25 + +### Fixed + +- Use project parserOptions instead of defining our own. + ## [v0.2.0] - 2024-01-23 ### Changed @@ -38,6 +44,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - First release +[v0.2.1]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.2.1 [v0.2.0]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.2.0 [v0.1.2]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.1.2 [v0.1.1]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.1.1 diff --git a/package-lock.json b/package-lock.json index 279ef9b..264aca0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3280,9 +3280,9 @@ } }, "node_modules/spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.4.0.tgz", + "integrity": "sha512-hcjppoJ68fhxA/cjbN4T8N6uCUejN8yFw69ttpqtBeCbF3u13n7mb31NB9jKwGTTWWnt9IbRA/mf1FprYS8wfw==" }, "node_modules/spdx-expression-parse": { "version": "4.0.0", diff --git a/package.json b/package.json index 2731eb1..eb1fd19 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dipcode/eslint-config", - "version": "0.2.0", + "version": "0.2.1", "description": "Shareable ESLint config for Dipcode.", "main": "./src/config.js", "scripts": { diff --git a/src/config.js b/src/config.js index 64c4024..a9e5958 100644 --- a/src/config.js +++ b/src/config.js @@ -6,6 +6,7 @@ module.exports = { 'eslint:recommended', 'plugin:import/recommended', 'plugin:promise/recommended', + 'plugin:jsdoc/recommended-error', // This must be the last 'plugin:prettier/recommended', ], diff --git a/src/typescript.js b/src/typescript.js index 2b5ab9a..7ffc829 100644 --- a/src/typescript.js +++ b/src/typescript.js @@ -16,7 +16,6 @@ module.exports = { ], plugins: ['@typescript-eslint', ...base.plugins], parser: '@typescript-eslint/parser', - parserOptions: { project: './tsconfig.json', sourceType: 'module' }, rules: { ...base.rules, '@typescript-eslint/ban-ts-comment': ['error', { 'ts-expect-error': 'allow-with-description' }],