From 60e4ff0a502ce4524e00f34523bf9a9358e4db76 Mon Sep 17 00:00:00 2001 From: Yair Kukielka Date: Mon, 6 May 2024 11:54:41 +0200 Subject: [PATCH 1/3] fix: add jest recommended config --- node.js | 2 +- svelte.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node.js b/node.js index 62e0bce..b4eeb71 100644 --- a/node.js +++ b/node.js @@ -14,7 +14,7 @@ module.exports = { mode: 'jsdoc' } }, - extends: 'eslint:recommended', + extends: ['eslint:recommended', 'plugin:jest/recommended'], rules: { 'array-bracket-newline': ['warn', 'consistent'], 'arrow-body-style': ['error', 'as-needed'], diff --git a/svelte.js b/svelte.js index 89cfb32..c53d4f2 100644 --- a/svelte.js +++ b/svelte.js @@ -5,7 +5,7 @@ module.exports = { es2024: true, 'jest/globals': true }, - extends: ['eslint:recommended', 'plugin:svelte/recommended'], + extends: ['eslint:recommended', 'plugin:jest/recommended', 'plugin:svelte/recommended'], plugins: ['es', 'jsdoc', 'jest'], parser: '@babel/eslint-parser', parserOptions: { From 9d33ce0eb7e744759c253c98e990b8d8763359aa Mon Sep 17 00:00:00 2001 From: Yair Kukielka Date: Mon, 6 May 2024 12:01:31 +0200 Subject: [PATCH 2/3] chore: bump version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d5f71c1..a67c21b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@oat-sa/eslint-config-tao", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@oat-sa/eslint-config-tao", - "version": "3.0.0", + "version": "3.0.1", "license": "GPL-2.0-only", "dependencies": { "@babel/eslint-parser": "^7.24.1", diff --git a/package.json b/package.json index 34ab266..11d9be6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/eslint-config-tao", - "version": "3.0.0", + "version": "3.0.1", "description": "Shareable `.eslintrc` configurations package for `oat-sa` projects.", "main": "index.js", "scripts": { From 35a91b6ed2a3104d5a40cceaed1f6bcf05eaf4f3 Mon Sep 17 00:00:00 2001 From: Yair Kukielka Date: Mon, 6 May 2024 12:07:13 +0200 Subject: [PATCH 3/3] updated changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ef3f62..1acca23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +- _3.0.1_ + + - Added `'plugin:jest/recommended'` to the node and svelte configs so the jest plugin is well configured. + - _3.0.0_ - Updated `eslint-plugin-jsdoc` 8 major versions. Note that in [version 44.0](https://github.com/gajus/eslint-plugin-jsdoc/releases/tag/v44.0.0) `settings.jsdoc.mode` default value became `typescript`. So opted into the old default (`jsdoc`) to prevent changes in behavior. See note here.