Skip to content

Commit

Permalink
chore: remove you-dont-need-lodash eslint plugin
Browse files Browse the repository at this point in the history
lodash has been already removed from the codebase, so this plugin is no longer necessary

Signed-off-by: Fernando Fernández <[email protected]>
  • Loading branch information
ferferga committed Sep 12, 2024
1 parent f3a6836 commit 6f8e7c3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
12 changes: 1 addition & 11 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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(
Expand Down Expand Up @@ -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',
Expand All @@ -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
Expand Down
2 changes: 0 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
22 changes: 0 additions & 22 deletions package-lock.json

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

0 comments on commit 6f8e7c3

Please sign in to comment.