diff --git a/projects/js-packages/boost-score-api/.eslintrc.cjs b/projects/js-packages/boost-score-api/.eslintrc.cjs index 53ab1f2336446..fdf9613709cbb 100644 --- a/projects/js-packages/boost-score-api/.eslintrc.cjs +++ b/projects/js-packages/boost-score-api/.eslintrc.cjs @@ -5,10 +5,6 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/base' ) ], ignorePatterns: loadIgnorePatterns( __dirname ), parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.cjs' ), - }, - sourceType: 'module', tsconfigRootDir: __dirname, project: [ './tsconfig.json' ], }, diff --git a/projects/js-packages/boost-score-api/changelog/remove-eslintrc-unneeded-parseroptions b/projects/js-packages/boost-score-api/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/js-packages/boost-score-api/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/js-packages/components/.eslintrc.cjs b/projects/js-packages/components/.eslintrc.cjs index a5dc8d4a5ac97..9915662c613ee 100644 --- a/projects/js-packages/components/.eslintrc.cjs +++ b/projects/js-packages/components/.eslintrc.cjs @@ -1,11 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - requireConfigFile: false, - babelOptions: { - presets: [ require.resolve( '@babel/preset-react' ) ], - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/js-packages/components/changelog/remove-eslintrc-unneeded-parseroptions b/projects/js-packages/components/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/js-packages/components/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/js-packages/connection/.eslintrc.cjs b/projects/js-packages/connection/.eslintrc.cjs index a5dc8d4a5ac97..9915662c613ee 100644 --- a/projects/js-packages/connection/.eslintrc.cjs +++ b/projects/js-packages/connection/.eslintrc.cjs @@ -1,11 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - requireConfigFile: false, - babelOptions: { - presets: [ require.resolve( '@babel/preset-react' ) ], - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/js-packages/connection/changelog/remove-eslintrc-unneeded-parseroptions b/projects/js-packages/connection/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/js-packages/connection/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/js-packages/idc/.eslintrc.cjs b/projects/js-packages/idc/.eslintrc.cjs index a5dc8d4a5ac97..9915662c613ee 100644 --- a/projects/js-packages/idc/.eslintrc.cjs +++ b/projects/js-packages/idc/.eslintrc.cjs @@ -1,11 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - requireConfigFile: false, - babelOptions: { - presets: [ require.resolve( '@babel/preset-react' ) ], - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/js-packages/idc/changelog/remove-eslintrc-unneeded-parseroptions b/projects/js-packages/idc/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/js-packages/idc/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/js-packages/image-guide/.eslintrc.cjs b/projects/js-packages/image-guide/.eslintrc.cjs index aef84add4c3ae..83b2285148e1e 100644 --- a/projects/js-packages/image-guide/.eslintrc.cjs +++ b/projects/js-packages/image-guide/.eslintrc.cjs @@ -10,7 +10,6 @@ module.exports = { ], ignorePatterns: loadIgnorePatterns( __dirname ), parserOptions: { - sourceType: 'module', tsconfigRootDir: __dirname, project: [ './tsconfig.json' ], }, diff --git a/projects/js-packages/image-guide/changelog/remove-eslintrc-unneeded-parseroptions b/projects/js-packages/image-guide/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/js-packages/image-guide/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/js-packages/licensing/.eslintrc.cjs b/projects/js-packages/licensing/.eslintrc.cjs index a5dc8d4a5ac97..9915662c613ee 100644 --- a/projects/js-packages/licensing/.eslintrc.cjs +++ b/projects/js-packages/licensing/.eslintrc.cjs @@ -1,11 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - requireConfigFile: false, - babelOptions: { - presets: [ require.resolve( '@babel/preset-react' ) ], - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/js-packages/licensing/changelog/remove-eslintrc-unneeded-parseroptions b/projects/js-packages/licensing/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/js-packages/licensing/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/js-packages/partner-coupon/.eslintrc.cjs b/projects/js-packages/partner-coupon/.eslintrc.cjs index a5dc8d4a5ac97..9915662c613ee 100644 --- a/projects/js-packages/partner-coupon/.eslintrc.cjs +++ b/projects/js-packages/partner-coupon/.eslintrc.cjs @@ -1,11 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - requireConfigFile: false, - babelOptions: { - presets: [ require.resolve( '@babel/preset-react' ) ], - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/js-packages/partner-coupon/changelog/remove-eslintrc-unneeded-parseroptions b/projects/js-packages/partner-coupon/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/js-packages/partner-coupon/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/js-packages/publicize-components/.eslintrc.js b/projects/js-packages/publicize-components/.eslintrc.js index a5dc8d4a5ac97..9915662c613ee 100644 --- a/projects/js-packages/publicize-components/.eslintrc.js +++ b/projects/js-packages/publicize-components/.eslintrc.js @@ -1,11 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - requireConfigFile: false, - babelOptions: { - presets: [ require.resolve( '@babel/preset-react' ) ], - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/js-packages/publicize-components/changelog/remove-eslintrc-unneeded-parseroptions b/projects/js-packages/publicize-components/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/js-packages/publicize-components/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/js-packages/shared-extension-utils/.eslintrc.cjs b/projects/js-packages/shared-extension-utils/.eslintrc.cjs index a5dc8d4a5ac97..9915662c613ee 100644 --- a/projects/js-packages/shared-extension-utils/.eslintrc.cjs +++ b/projects/js-packages/shared-extension-utils/.eslintrc.cjs @@ -1,11 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - requireConfigFile: false, - babelOptions: { - presets: [ require.resolve( '@babel/preset-react' ) ], - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/js-packages/shared-extension-utils/changelog/remove-eslintrc-unneeded-parseroptions b/projects/js-packages/shared-extension-utils/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/js-packages/shared-extension-utils/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/js-packages/storybook/.eslintrc.cjs b/projects/js-packages/storybook/.eslintrc.cjs index a5dc8d4a5ac97..9915662c613ee 100644 --- a/projects/js-packages/storybook/.eslintrc.cjs +++ b/projects/js-packages/storybook/.eslintrc.cjs @@ -1,11 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - requireConfigFile: false, - babelOptions: { - presets: [ require.resolve( '@babel/preset-react' ) ], - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/js-packages/storybook/changelog/remove-eslintrc-unneeded-parseroptions b/projects/js-packages/storybook/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/js-packages/storybook/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/packages/backup/.eslintrc.js b/projects/packages/backup/.eslintrc.js index 5edd1c059cec3..907bbac582fd3 100644 --- a/projects/packages/backup/.eslintrc.js +++ b/projects/packages/backup/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce the use of the jetpack-backup textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/packages/backup/changelog/remove-eslintrc-unneeded-parseroptions b/projects/packages/backup/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/packages/backup/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/packages/blaze/.eslintrc.js b/projects/packages/blaze/.eslintrc.js index fd97a1d19191f..0c474cbcf5c01 100644 --- a/projects/packages/blaze/.eslintrc.js +++ b/projects/packages/blaze/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { 'jsdoc/check-tag-names': [ 1, { definedTags: [ 'jest-environment' ] } ], // Enforce use of the correct textdomain. diff --git a/projects/packages/blaze/changelog/remove-eslintrc-unneeded-parseroptions b/projects/packages/blaze/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/packages/blaze/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/packages/jetpack-mu-wpcom/.eslintrc.js b/projects/packages/jetpack-mu-wpcom/.eslintrc.js index 6fa5bb2795b96..f04728a9c937b 100644 --- a/projects/packages/jetpack-mu-wpcom/.eslintrc.js +++ b/projects/packages/jetpack-mu-wpcom/.eslintrc.js @@ -1,11 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - requireConfigFile: false, - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { 'jsdoc/require-returns': 0, '@wordpress/i18n-text-domain': [ diff --git a/projects/packages/jetpack-mu-wpcom/changelog/remove-eslintrc-unneeded-parseroptions b/projects/packages/jetpack-mu-wpcom/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/packages/my-jetpack/.eslintrc.js b/projects/packages/my-jetpack/.eslintrc.js index 0f8d98debadae..3dd2945c1f0ca 100644 --- a/projects/packages/my-jetpack/.eslintrc.js +++ b/projects/packages/my-jetpack/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/packages/my-jetpack/changelog/remove-eslintrc-unneeded-parseroptions b/projects/packages/my-jetpack/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/packages/my-jetpack/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/packages/publicize/.eslintrc.js b/projects/packages/publicize/.eslintrc.js index 27abf841cbae7..daebc970e481f 100644 --- a/projects/packages/publicize/.eslintrc.js +++ b/projects/packages/publicize/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/packages/publicize/changelog/remove-eslintrc-unneeded-parseroptions b/projects/packages/publicize/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/packages/publicize/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/packages/search/.eslintrc.js b/projects/packages/search/.eslintrc.js index 0f6e4f2e5e207..761f2244e6c97 100644 --- a/projects/packages/search/.eslintrc.js +++ b/projects/packages/search/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { 'jsdoc/check-tag-names': [ 1, { definedTags: [ 'jsx', 'jest-environment' ] } ], 'react/jsx-no-bind': 0, diff --git a/projects/packages/search/changelog/remove-eslintrc-unneeded-parseroptions b/projects/packages/search/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/packages/search/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/packages/wordads/.eslintrc.js b/projects/packages/wordads/.eslintrc.js index 0541501e1aad5..decae272233c9 100644 --- a/projects/packages/wordads/.eslintrc.js +++ b/projects/packages/wordads/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { 'jsdoc/check-tag-names': [ 1, { definedTags: [ 'jsx', 'jest-environment' ] } ], 'react/jsx-no-bind': 0, diff --git a/projects/packages/wordads/changelog/remove-eslintrc-unneeded-parseroptions b/projects/packages/wordads/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/packages/wordads/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/packages/yoast-promo/.eslintrc.js b/projects/packages/yoast-promo/.eslintrc.js index 4fc8b2cba23b8..8764b9e0b4188 100644 --- a/projects/packages/yoast-promo/.eslintrc.js +++ b/projects/packages/yoast-promo/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { 'jsdoc/check-tag-names': [ 1, { definedTags: [ 'jest-environment' ] } ], // Enforce use of the correct textdomain. diff --git a/projects/packages/yoast-promo/changelog/remove-eslintrc-unneeded-parseroptions b/projects/packages/yoast-promo/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/packages/yoast-promo/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/automattic-for-agencies-client/.eslintrc.js b/projects/plugins/automattic-for-agencies-client/.eslintrc.js index a557f3ef78c67..e8b21af914903 100644 --- a/projects/plugins/automattic-for-agencies-client/.eslintrc.js +++ b/projects/plugins/automattic-for-agencies-client/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce the use of the automattic-for-agencies-client textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/plugins/automattic-for-agencies-client/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/automattic-for-agencies-client/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/automattic-for-agencies-client/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/boost/.eslintrc.cjs b/projects/plugins/boost/.eslintrc.cjs index dc99811b46398..265c0d7bf8fdb 100644 --- a/projects/plugins/boost/.eslintrc.cjs +++ b/projects/plugins/boost/.eslintrc.cjs @@ -11,10 +11,6 @@ module.exports = { ], ignorePatterns: [ '**/stories/*.stories.tsx', ...loadIgnorePatterns( __dirname ) ], parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - sourceType: 'module', tsconfigRootDir: __dirname, project: [ './tsconfig.json', './tsconfig.eslint.json' ], }, diff --git a/projects/plugins/boost/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/boost/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/boost/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/classic-theme-helper-plugin/.eslintrc.js b/projects/plugins/classic-theme-helper-plugin/.eslintrc.js index b5bd0cf879c83..d094fad319b49 100644 --- a/projects/plugins/classic-theme-helper-plugin/.eslintrc.js +++ b/projects/plugins/classic-theme-helper-plugin/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce the use of the classic-theme-helper-plugin textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/plugins/classic-theme-helper-plugin/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/classic-theme-helper-plugin/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/classic-theme-helper-plugin/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/inspect/.eslintrc.cjs b/projects/plugins/inspect/.eslintrc.cjs index 1e00a6451d8b4..30534d9e0cb5b 100644 --- a/projects/plugins/inspect/.eslintrc.cjs +++ b/projects/plugins/inspect/.eslintrc.cjs @@ -10,10 +10,6 @@ module.exports = { ], ignorePatterns: loadIgnorePatterns( __dirname ), parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - sourceType: 'module', tsconfigRootDir: __dirname, project: [ './tsconfig.json' ], }, diff --git a/projects/plugins/inspect/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/inspect/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/inspect/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/jetpack/.eslintrc.js b/projects/plugins/jetpack/.eslintrc.js index 797ca696c27e5..2748f0ad9dcf8 100644 --- a/projects/plugins/jetpack/.eslintrc.js +++ b/projects/plugins/jetpack/.eslintrc.js @@ -3,11 +3,6 @@ */ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce use of the correct textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/plugins/jetpack/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/jetpack/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..026cd7b5a9c8a --- /dev/null +++ b/projects/plugins/jetpack/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: other +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/migration/.eslintrc.js b/projects/plugins/migration/.eslintrc.js index b448473344d6e..57ace946d926b 100644 --- a/projects/plugins/migration/.eslintrc.js +++ b/projects/plugins/migration/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce the use of the wpcom-migration textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/plugins/migration/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/migration/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/migration/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/protect/.eslintrc.js b/projects/plugins/protect/.eslintrc.js index 5d228874bba28..016e904b03cdd 100644 --- a/projects/plugins/protect/.eslintrc.js +++ b/projects/plugins/protect/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce the use of the jetpack-protect textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/plugins/protect/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/protect/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/protect/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/social/.eslintrc.js b/projects/plugins/social/.eslintrc.js index b8c019b3577e5..dc9fac4abf6ab 100644 --- a/projects/plugins/social/.eslintrc.js +++ b/projects/plugins/social/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce the use of the jetpack-social textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/plugins/social/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/social/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/social/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/starter-plugin/.eslintrc.js b/projects/plugins/starter-plugin/.eslintrc.js index b7c7f89c1000a..3f7ba3f984068 100644 --- a/projects/plugins/starter-plugin/.eslintrc.js +++ b/projects/plugins/starter-plugin/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce the use of the jetpack-starter-plugin textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/plugins/starter-plugin/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/starter-plugin/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/starter-plugin/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/super-cache/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/super-cache/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/super-cache/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/super-cache/tests/e2e/.eslintrc.cjs b/projects/plugins/super-cache/tests/e2e/.eslintrc.cjs index 7d4c58aaa94b0..f38748f3779e7 100644 --- a/projects/plugins/super-cache/tests/e2e/.eslintrc.cjs +++ b/projects/plugins/super-cache/tests/e2e/.eslintrc.cjs @@ -9,7 +9,6 @@ module.exports = { ], ignorePatterns: loadIgnorePatterns( __dirname ), parserOptions: { - sourceType: 'module', tsconfigRootDir: __dirname, project: [ './tsconfig.json' ], }, diff --git a/projects/plugins/videopress/.eslintrc.js b/projects/plugins/videopress/.eslintrc.js index 4d57d577f0c36..19694a93f8688 100644 --- a/projects/plugins/videopress/.eslintrc.js +++ b/projects/plugins/videopress/.eslintrc.js @@ -1,10 +1,5 @@ module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/react' ) ], - parserOptions: { - babelOptions: { - configFile: require.resolve( './babel.config.js' ), - }, - }, rules: { // Enforce the use of the jetpack-videopress textdomain. '@wordpress/i18n-text-domain': [ diff --git a/projects/plugins/videopress/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/videopress/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/videopress/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/projects/plugins/wpcomsh/.eslintrc.js b/projects/plugins/wpcomsh/.eslintrc.js index b8ac5c5ff030d..fb29c49c1c5fb 100644 --- a/projects/plugins/wpcomsh/.eslintrc.js +++ b/projects/plugins/wpcomsh/.eslintrc.js @@ -15,7 +15,6 @@ module.exports = { }, parserOptions: { ecmaVersion: 2020, - sourceType: 'module', }, globals: {}, settings: {}, diff --git a/projects/plugins/wpcomsh/changelog/remove-eslintrc-unneeded-parseroptions b/projects/plugins/wpcomsh/changelog/remove-eslintrc-unneeded-parseroptions new file mode 100644 index 0000000000000..e9871ae770e2f --- /dev/null +++ b/projects/plugins/wpcomsh/changelog/remove-eslintrc-unneeded-parseroptions @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unneeded `parserOptions` from eslintrc. + + diff --git a/tools/e2e-commons/.eslintrc.cjs b/tools/e2e-commons/.eslintrc.cjs index 9bfe2c9f0f223..c3943c4680f06 100644 --- a/tools/e2e-commons/.eslintrc.cjs +++ b/tools/e2e-commons/.eslintrc.cjs @@ -1,9 +1,6 @@ // .eslintrc.js module.exports = { extends: [ require.resolve( 'jetpack-js-tools/eslintrc/playwright' ) ], - parserOptions: { - requireConfigFile: false, - }, env: { node: true, }, diff --git a/tools/js-tools/eslintrc/base.js b/tools/js-tools/eslintrc/base.js index 3b821a25d58c1..5650e03a0b786 100644 --- a/tools/js-tools/eslintrc/base.js +++ b/tools/js-tools/eslintrc/base.js @@ -6,11 +6,6 @@ // root: true, // extends: [ require.resolve( 'jetpack-js-tools/eslintrc/base' ) ], // ignorePatterns: loadIgnorePatterns( __dirname ), -// parserOptions: { -// babelOptions: { -// configFile: require.resolve( './babel.config.js' ), -// }, -// }, // }; // ``` @@ -52,7 +47,6 @@ module.exports = { ecmaFeatures: { jsx: true, }, - requireConfigFile: false, }, settings: { 'import/resolver': { diff --git a/tools/js-tools/eslintrc/react.js b/tools/js-tools/eslintrc/react.js index 6c329596b5c27..0a8e6a4ecf077 100644 --- a/tools/js-tools/eslintrc/react.js +++ b/tools/js-tools/eslintrc/react.js @@ -8,9 +8,6 @@ module.exports = { // Some configs currently don't load this otherwise. Sigh. './base.js', ], - parserOptions: { - requireConfigFile: true, - }, settings: { react: { version: 'detect', // React version. "detect" automatically picks the version you have installed.