From 4fce17e6d6965f1973a25a8b921e4595684c76b2 Mon Sep 17 00:00:00 2001 From: Igor Zinovyev Date: Fri, 7 Jun 2024 19:21:11 +0300 Subject: [PATCH] Update projects/plugins/wpcomsh/.eslintrc.js Co-authored-by: Brad Jorsch --- projects/plugins/wpcomsh/.eslintrc.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/projects/plugins/wpcomsh/.eslintrc.js b/projects/plugins/wpcomsh/.eslintrc.js index d3e0f22938c3c..b8ac5c5ff030d 100644 --- a/projects/plugins/wpcomsh/.eslintrc.js +++ b/projects/plugins/wpcomsh/.eslintrc.js @@ -1,6 +1,12 @@ +const loadIgnorePatterns = require( 'jetpack-js-tools/load-eslint-ignore.js' ); + module.exports = { root: true, - extends: [ 'plugin:jest/recommended', 'prettier' ], + extends: [ + require.resolve( 'jetpack-js-tools/eslintrc/jest' ), + require.resolve( 'jetpack-js-tools/eslintrc/prettier' ), + ], + ignorePatterns: loadIgnorePatterns( __dirname ), overrides: [], env: { browser: true, @@ -8,11 +14,10 @@ module.exports = { node: true, }, parserOptions: { - ecmaVersion: 2018, + ecmaVersion: 2020, sourceType: 'module', }, globals: {}, - plugins: [ 'jest', 'import' ], settings: {}, rules: { 'jest/no-disabled-tests': 'warn',