nerf eslint to only lint vue files since vue support in biome is experimental
This commit is contained in:
parent
1c53ac84cc
commit
7f54d11834
7 changed files with 13 additions and 22 deletions
|
|
@ -1,14 +1,17 @@
|
||||||
import js from '@eslint/js'
|
import js from '@eslint/js'
|
||||||
|
import { defineConfig, globalIgnores } from "eslint/config";
|
||||||
import vue from 'eslint-plugin-vue'
|
import vue from 'eslint-plugin-vue'
|
||||||
import globals from 'globals'
|
import globals from 'globals'
|
||||||
|
|
||||||
export default [
|
export default defineConfig([
|
||||||
...vue.configs['flat/recommended'],
|
...vue.configs['flat/recommended'],
|
||||||
js.configs.recommended,
|
globalIgnores([
|
||||||
|
'**/*.js', 'build/', 'dist/', 'config/',
|
||||||
|
]),
|
||||||
{
|
{
|
||||||
files: ['**/*.js', '**/*.mjs', '**/*.vue'],
|
files: ['src/**/*.vue'],
|
||||||
ignores: ['build/*.js', 'config/*.js'],
|
plugins: { js },
|
||||||
|
extends: ['js/recommended'],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
ecmaVersion: 2024,
|
ecmaVersion: 2024,
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
|
|
@ -26,11 +29,8 @@ export default [
|
||||||
},
|
},
|
||||||
|
|
||||||
rules: {
|
rules: {
|
||||||
'arrow-parens': 0,
|
|
||||||
'generator-star-spacing': 0,
|
|
||||||
'no-debugger': 0,
|
|
||||||
'vue/require-prop-types': 0,
|
'vue/require-prop-types': 0,
|
||||||
'vue/multi-word-component-names': 0,
|
'vue/multi-word-component-names': 0,
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
]
|
])
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "pleroma_fe",
|
"name": "pleroma_fe",
|
||||||
"version": "2.9.3",
|
"version": "2.10.0",
|
||||||
"description": "Pleroma frontend, the default frontend of Pleroma social network server",
|
"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>",
|
"author": "Pleroma contributors <https://git.pleroma.social/pleroma/pleroma-fe/-/blob/develop/CONTRIBUTORS.md>",
|
||||||
"private": false,
|
"private": false,
|
||||||
|
|
@ -13,8 +13,8 @@
|
||||||
"e2e": "node test/e2e/runner.js",
|
"e2e": "node test/e2e/runner.js",
|
||||||
"test": "yarn run unit && yarn run e2e",
|
"test": "yarn run unit && yarn run e2e",
|
||||||
"stylelint": "yarn exec stylelint '**/*.scss' '**/*.vue'",
|
"stylelint": "yarn exec stylelint '**/*.scss' '**/*.vue'",
|
||||||
"lint": "eslint src test/unit/specs test/e2e/specs",
|
"lint": "yarn exec eslint src",
|
||||||
"lint-fix": "eslint --fix src test/unit/specs test/e2e/specs"
|
"lint-fix": "yarn eslint --fix src test/unit/specs test/e2e/specs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "7.28.4",
|
"@babel/runtime": "7.28.4",
|
||||||
|
|
|
||||||
|
|
@ -105,14 +105,12 @@ const MentionLink = {
|
||||||
},
|
},
|
||||||
style() {
|
style() {
|
||||||
if (this.highlight) {
|
if (this.highlight) {
|
||||||
/* eslint-disable no-unused-vars */
|
|
||||||
const {
|
const {
|
||||||
backgroundColor,
|
backgroundColor,
|
||||||
backgroundPosition,
|
backgroundPosition,
|
||||||
backgroundImage,
|
backgroundImage,
|
||||||
...rest
|
...rest
|
||||||
} = highlightStyle(this.highlight)
|
} = highlightStyle(this.highlight)
|
||||||
/* eslint-enable no-unused-vars */
|
|
||||||
return rest
|
return rest
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -445,7 +445,6 @@ const Status = {
|
||||||
return uniqBy(combinedUsers, 'id')
|
return uniqBy(combinedUsers, 'id')
|
||||||
},
|
},
|
||||||
tags() {
|
tags() {
|
||||||
// eslint-disable-next-line no-prototype-builtins
|
|
||||||
return this.status.tags
|
return this.status.tags
|
||||||
.filter((tagObj) => Object.hasOwn(tagObj, 'name'))
|
.filter((tagObj) => Object.hasOwn(tagObj, 'name'))
|
||||||
.map((tagObj) => tagObj.name)
|
.map((tagObj) => tagObj.name)
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,6 @@ export const notifications = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only add a new notification if we don't have one for the same action
|
// 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)) {
|
if (!Object.hasOwn(state.idStore, notification.id)) {
|
||||||
commit('updateNotificationsMinMaxId', notification.id)
|
commit('updateNotificationsMinMaxId', notification.id)
|
||||||
commit('addNewNotifications', { notifications: [notification] })
|
commit('addNewNotifications', { notifications: [notification] })
|
||||||
|
|
|
||||||
|
|
@ -591,10 +591,8 @@ export const useServerSideStorageStore = defineStore('serverSideStorage', {
|
||||||
if (!needUpload && recent && stale) {
|
if (!needUpload && recent && stale) {
|
||||||
console.debug('Checking if data needs merging...')
|
console.debug('Checking if data needs merging...')
|
||||||
// discarding timestamps and versions
|
// discarding timestamps and versions
|
||||||
/* eslint-disable no-unused-vars */
|
|
||||||
const { _timestamp: _0, _version: _1, ...recentData } = recent
|
const { _timestamp: _0, _version: _1, ...recentData } = recent
|
||||||
const { _timestamp: _2, _version: _3, ...staleData } = stale
|
const { _timestamp: _2, _version: _3, ...staleData } = stale
|
||||||
/* eslint-enable no-unused-vars */
|
|
||||||
dirty = !isEqual(recentData, staleData)
|
dirty = !isEqual(recentData, staleData)
|
||||||
console.debug(`Data ${dirty ? 'needs' : "doesn't need"} merging`)
|
console.debug(`Data ${dirty ? 'needs' : "doesn't need"} merging`)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ describe('routes', () => {
|
||||||
|
|
||||||
const matchedComponents = router.currentRoute.value.matched
|
const matchedComponents = router.currentRoute.value.matched
|
||||||
|
|
||||||
// eslint-disable-next-line no-prototype-builtins
|
|
||||||
expect(
|
expect(
|
||||||
Object.hasOwn(
|
Object.hasOwn(
|
||||||
matchedComponents[0].components.default.components,
|
matchedComponents[0].components.default.components,
|
||||||
|
|
@ -33,7 +32,6 @@ describe('routes', () => {
|
||||||
|
|
||||||
const matchedComponents = router.currentRoute.value.matched
|
const matchedComponents = router.currentRoute.value.matched
|
||||||
|
|
||||||
// eslint-disable-next-line no-prototype-builtins
|
|
||||||
expect(
|
expect(
|
||||||
Object.hasOwn(
|
Object.hasOwn(
|
||||||
matchedComponents[0].components.default.components,
|
matchedComponents[0].components.default.components,
|
||||||
|
|
@ -47,7 +45,6 @@ describe('routes', () => {
|
||||||
|
|
||||||
const matchedComponents = router.currentRoute.value.matched
|
const matchedComponents = router.currentRoute.value.matched
|
||||||
|
|
||||||
// eslint-disable-next-line no-prototype-builtins
|
|
||||||
expect(
|
expect(
|
||||||
Object.hasOwn(
|
Object.hasOwn(
|
||||||
matchedComponents[0].components.default.components,
|
matchedComponents[0].components.default.components,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue