diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js index 5996483d8e1..a32d5d40818 100644 --- a/frontend/eslint.config.js +++ b/frontend/eslint.config.js @@ -9,7 +9,6 @@ import vueScopedCSS from 'eslint-plugin-vue-scoped-css'; import css from 'eslint-plugin-css'; import vue from 'eslint-plugin-vue'; import i18n from '@intlify/eslint-plugin-vue-i18n'; -import { FlatCompat } from '@eslint/eslintrc'; import gitignore from 'eslint-config-flat-gitignore'; import stylistic from '@stylistic/eslint-plugin'; import sonarjs from 'eslint-plugin-sonarjs'; @@ -27,11 +26,7 @@ const jsoncRecommended = jsonc.configs['flat/recommended-with-json']; /** * Util functions - * TODO: Can be removed once all ESLint plugins are updated to support Flat config */ -const compat = new FlatCompat({ - baseDirectory: import.meta.dirname -}); const flatArrayOfObjects = obj => Object.assign({}, ...obj); export default tseslint.config( @@ -164,11 +159,6 @@ export default tseslint.config( name: '(regexp) Extended config from plugin', files: vueAndTsFiles }, - { - ...flatArrayOfObjects(compat.extends('plugin:you-dont-need-lodash-underscore/all')), - name: '(you-dont-need-lodash) Extended config from plugin', - files: vueAndTsFiles - }, { ...promise.configs['flat/recommended'], name: '(promise) Extended config from plugin', @@ -184,7 +174,7 @@ export default tseslint.config( }, { name: '(import) Custom config', - // TODO: Remove after: https://github.com/eslint/eslint/pull/18134 + // TODO: Remove .js after: https://github.com/eslint/eslint/pull/18134 files: [...vueAndTsFiles, '**/*.js'], plugins: { 'import-x': eslintImportX diff --git a/frontend/package.json b/frontend/package.json index e3613f47ad1..0c7342bd6bb 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -49,7 +49,6 @@ }, "devDependencies": { "@eslint/config-inspector": "0.5.4", - "@eslint/eslintrc": "3.1.0", "@eslint/js": "9.10.0", "@iconify/json": "2.2.246", "@intlify/eslint-plugin-vue-i18n": "3.0.0", @@ -77,7 +76,6 @@ "eslint-plugin-unicorn": "55.0.0", "eslint-plugin-vue": "9.28.0", "eslint-plugin-vue-scoped-css": "2.8.1", - "eslint-plugin-you-dont-need-lodash-underscore": "6.14.0", "globals": "15.9.0", "lightningcss": "1.26.0", "rollup-plugin-visualizer": "5.12.0", diff --git a/package-lock.json b/package-lock.json index 0fe01bfffc1..3da4f63797a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48,7 +48,6 @@ }, "devDependencies": { "@eslint/config-inspector": "0.5.4", - "@eslint/eslintrc": "3.1.0", "@eslint/js": "9.10.0", "@iconify/json": "2.2.246", "@intlify/eslint-plugin-vue-i18n": "3.0.0", @@ -76,7 +75,6 @@ "eslint-plugin-unicorn": "55.0.0", "eslint-plugin-vue": "9.28.0", "eslint-plugin-vue-scoped-css": "2.8.1", - "eslint-plugin-you-dont-need-lodash-underscore": "6.14.0", "globals": "15.9.0", "lightningcss": "1.26.0", "rollup-plugin-visualizer": "5.12.0", @@ -4909,19 +4907,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint-plugin-you-dont-need-lodash-underscore": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-you-dont-need-lodash-underscore/-/eslint-plugin-you-dont-need-lodash-underscore-6.14.0.tgz", - "integrity": "sha512-3zkkU/O1agczP7szJGHmisZJS/AknfVl6mb0Zqoc95dvFsdmfK+cbhrn+Ffy0UWB1pgDJwQr7kIO3rPstWs3Dw==", - "dev": true, - "license": "MIT", - "dependencies": { - "kebab-case": "^1.0.0" - }, - "engines": { - "node": ">=4.0" - } - }, "node_modules/eslint-scope": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.0.2.tgz", @@ -6239,13 +6224,6 @@ "graceful-fs": "^4.1.6" } }, - "node_modules/kebab-case": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/kebab-case/-/kebab-case-1.0.2.tgz", - "integrity": "sha512-7n6wXq4gNgBELfDCpzKc+mRrZFs7D+wgfF5WRFLNAr4DA/qtr9Js8uOAVAfHhuLMfAcQ0pRKqbpjx+TcJVdE1Q==", - "dev": true, - "license": "MIT" - }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",