nerf eslint to only lint vue files since vue support in biome is experimental

This commit is contained in:
Henry Jameson 2026-01-06 18:04:11 +02:00
commit 7f54d11834
7 changed files with 13 additions and 22 deletions

View file

@ -1,14 +1,17 @@
import js from '@eslint/js'
import { defineConfig, globalIgnores } from "eslint/config";
import vue from 'eslint-plugin-vue'
import globals from 'globals'
export default [
export default defineConfig([
...vue.configs['flat/recommended'],
js.configs.recommended,
globalIgnores([
'**/*.js', 'build/', 'dist/', 'config/',
]),
{
files: ['**/*.js', '**/*.mjs', '**/*.vue'],
ignores: ['build/*.js', 'config/*.js'],
files: ['src/**/*.vue'],
plugins: { js },
extends: ['js/recommended'],
languageOptions: {
ecmaVersion: 2024,
sourceType: 'module',
@ -26,11 +29,8 @@ export default [
},
rules: {
'arrow-parens': 0,
'generator-star-spacing': 0,
'no-debugger': 0,
'vue/require-prop-types': 0,
'vue/multi-word-component-names': 0,
},
},
]
}
])

View file

@ -1,6 +1,6 @@
{
"name": "pleroma_fe",
"version": "2.9.3",
"version": "2.10.0",
"description": "Pleroma frontend, the default frontend of Pleroma social network server",
"author": "Pleroma contributors <https://git.pleroma.social/pleroma/pleroma-fe/-/blob/develop/CONTRIBUTORS.md>",
"private": false,
@ -13,8 +13,8 @@
"e2e": "node test/e2e/runner.js",
"test": "yarn run unit && yarn run e2e",
"stylelint": "yarn exec stylelint '**/*.scss' '**/*.vue'",
"lint": "eslint src test/unit/specs test/e2e/specs",
"lint-fix": "eslint --fix src test/unit/specs test/e2e/specs"
"lint": "yarn exec eslint src",
"lint-fix": "yarn eslint --fix src test/unit/specs test/e2e/specs"
},
"dependencies": {
"@babel/runtime": "7.28.4",

View file

@ -105,14 +105,12 @@ const MentionLink = {
},
style() {
if (this.highlight) {
/* eslint-disable no-unused-vars */
const {
backgroundColor,
backgroundPosition,
backgroundImage,
...rest
} = highlightStyle(this.highlight)
/* eslint-enable no-unused-vars */
return rest
}
},

View file

@ -445,7 +445,6 @@ const Status = {
return uniqBy(combinedUsers, 'id')
},
tags() {
// eslint-disable-next-line no-prototype-builtins
return this.status.tags
.filter((tagObj) => Object.hasOwn(tagObj, 'name'))
.map((tagObj) => tagObj.name)

View file

@ -113,7 +113,6 @@ export const notifications = {
}
// Only add a new notification if we don't have one for the same action
// eslint-disable-next-line no-prototype-builtins
if (!Object.hasOwn(state.idStore, notification.id)) {
commit('updateNotificationsMinMaxId', notification.id)
commit('addNewNotifications', { notifications: [notification] })

View file

@ -591,10 +591,8 @@ export const useServerSideStorageStore = defineStore('serverSideStorage', {
if (!needUpload && recent && stale) {
console.debug('Checking if data needs merging...')
// discarding timestamps and versions
/* eslint-disable no-unused-vars */
const { _timestamp: _0, _version: _1, ...recentData } = recent
const { _timestamp: _2, _version: _3, ...staleData } = stale
/* eslint-enable no-unused-vars */
dirty = !isEqual(recentData, staleData)
console.debug(`Data ${dirty ? 'needs' : "doesn't need"} merging`)
}

View file

@ -19,7 +19,6 @@ describe('routes', () => {
const matchedComponents = router.currentRoute.value.matched
// eslint-disable-next-line no-prototype-builtins
expect(
Object.hasOwn(
matchedComponents[0].components.default.components,
@ -33,7 +32,6 @@ describe('routes', () => {
const matchedComponents = router.currentRoute.value.matched
// eslint-disable-next-line no-prototype-builtins
expect(
Object.hasOwn(
matchedComponents[0].components.default.components,
@ -47,7 +45,6 @@ describe('routes', () => {
const matchedComponents = router.currentRoute.value.matched
// eslint-disable-next-line no-prototype-builtins
expect(
Object.hasOwn(
matchedComponents[0].components.default.components,