Skip to content

Commit

Permalink
Use project parserOptions instead of defining our own.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoloureiro authored and srtab committed Jan 25, 2024
1 parent 5ee7b71 commit 02efe89
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
1 change: 1 addition & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down
1 change: 0 additions & 1 deletion src/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' }],
Expand Down

0 comments on commit 02efe89

Please sign in to comment.