remove eslint, regenerate yarn lock file
This commit is contained in:
parent
a92dd1d94e
commit
4dbe95cdc9
7 changed files with 1086 additions and 1841 deletions
|
|
@ -13,12 +13,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- yarn --frozen-lockfile
|
- yarn --frozen-lockfile
|
||||||
|
|
||||||
eslint:
|
|
||||||
image: *node-image
|
|
||||||
depends_on: install-depends
|
|
||||||
commands:
|
|
||||||
- yarn ci-eslint
|
|
||||||
|
|
||||||
biome:
|
biome:
|
||||||
image: *node-image
|
image: *node-image
|
||||||
depends_on: install-depends
|
depends_on: install-depends
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
||||||
import vue from 'eslint-plugin-vue'
|
|
||||||
import vueParser from 'vue-eslint-parser'
|
|
||||||
|
|
||||||
export default defineConfig([
|
|
||||||
...vue.configs['flat/recommended'],
|
|
||||||
globalIgnores(['**/*.js', 'build/', 'dist/', 'config/']),
|
|
||||||
{
|
|
||||||
files: ['src/**/*.vue'],
|
|
||||||
languageOptions: {
|
|
||||||
parser: vueParser,
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
'vue/require-prop-types': 0,
|
|
||||||
'vue/multi-word-component-names': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
])
|
|
||||||
11
package.json
11
package.json
|
|
@ -15,10 +15,9 @@
|
||||||
"e2e": "sh ./tools/e2e/run.sh",
|
"e2e": "sh ./tools/e2e/run.sh",
|
||||||
"test": "yarn run unit && yarn run e2e",
|
"test": "yarn run unit && yarn run e2e",
|
||||||
"ci-biome": "yarn exec biome check",
|
"ci-biome": "yarn exec biome check",
|
||||||
"ci-eslint": "yarn exec eslint",
|
|
||||||
"ci-stylelint": "yarn exec stylelint '**/*.scss' '**/*.vue'",
|
"ci-stylelint": "yarn exec stylelint '**/*.scss' '**/*.vue'",
|
||||||
"lint": "yarn ci-biome; yarn ci-eslint; yarn ci-stylelint",
|
"lint": "yarn ci-biome; yarn ci-stylelint",
|
||||||
"lint-fix": "yarn exec eslint -- --fix; yarn exec stylelint '**/*.scss' '**/*.vue' --fix; biome check --write"
|
"lint-fix": "yarn exec stylelint '**/*.scss' '**/*.vue' --fix; biome check --write"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chenfengyuan/vue-qrcode": "2.0.0",
|
"@chenfengyuan/vue-qrcode": "2.0.0",
|
||||||
|
|
@ -71,8 +70,6 @@
|
||||||
"autoprefixer": "10.4.21",
|
"autoprefixer": "10.4.21",
|
||||||
"chalk": "5.6.2",
|
"chalk": "5.6.2",
|
||||||
"cross-spawn": "7.0.6",
|
"cross-spawn": "7.0.6",
|
||||||
"eslint": "^10.9.1",
|
|
||||||
"eslint-plugin-vue": "^10.10.0",
|
|
||||||
"iso-639-1": "3.1.5",
|
"iso-639-1": "3.1.5",
|
||||||
"msw": "2.14.6",
|
"msw": "2.14.6",
|
||||||
"nightwatch": "3.12.2",
|
"nightwatch": "3.12.2",
|
||||||
|
|
@ -91,11 +88,9 @@
|
||||||
"stylelint-config-standard": "38.0.0",
|
"stylelint-config-standard": "38.0.0",
|
||||||
"vite": "^8.0.0",
|
"vite": "^8.0.0",
|
||||||
"vite-plugin-biome": "^1.2.0",
|
"vite-plugin-biome": "^1.2.0",
|
||||||
"vite-plugin-eslint2": "^5.3.0",
|
|
||||||
"vite-plugin-stylelint": "^6.1.0",
|
"vite-plugin-stylelint": "^6.1.0",
|
||||||
"vite-plugin-vue-devtools": "^8.2.1",
|
"vite-plugin-vue-devtools": "^8.2.1",
|
||||||
"vitest": "^4.1.11",
|
"vitest": "^4.1.11"
|
||||||
"vue-eslint-parser": "^10.4.1"
|
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
import EventTargetPolyfill from '@ungap/event-target'
|
import EventTargetPolyfill from '@ungap/event-target'
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// for some reason eslint both likes and dislikes
|
|
||||||
// no-new here so we just call something useless
|
|
||||||
// so it stops reporting this file
|
|
||||||
const et = new EventTarget()
|
const et = new EventTarget()
|
||||||
et.dispatchEvent()
|
et.dispatchEvent()
|
||||||
} catch {
|
} catch {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-env serviceworker */
|
|
||||||
|
|
||||||
// biome-ignore: side effect import of assets list
|
// biome-ignore: side effect import of assets list
|
||||||
import 'virtual:pleroma-fe/service_worker_env'
|
import 'virtual:pleroma-fe/service_worker_env'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import vueJsx from '@vitejs/plugin-vue-jsx'
|
||||||
import { playwright } from '@vitest/browser-playwright'
|
import { playwright } from '@vitest/browser-playwright'
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import biomePlugin from 'vite-plugin-biome'
|
import biomePlugin from 'vite-plugin-biome'
|
||||||
import eslint from 'vite-plugin-eslint2'
|
|
||||||
import stylelint from 'vite-plugin-stylelint'
|
import stylelint from 'vite-plugin-stylelint'
|
||||||
import vueDevTools from 'vite-plugin-vue-devtools'
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
||||||
import { configDefaults } from 'vitest/config'
|
import { configDefaults } from 'vitest/config'
|
||||||
|
|
@ -156,12 +155,6 @@ export default defineConfig(async ({ mode, command }) => {
|
||||||
biomePlugin({
|
biomePlugin({
|
||||||
mode: 'check',
|
mode: 'check',
|
||||||
}),
|
}),
|
||||||
eslint({
|
|
||||||
lintInWorker: true,
|
|
||||||
lintOnStart: true,
|
|
||||||
customOverlay: true,
|
|
||||||
cacheLocation: resolve(projectRoot, 'node_modules/.cache/eslintcache'),
|
|
||||||
}),
|
|
||||||
stylelint({
|
stylelint({
|
||||||
lintInWorker: true,
|
lintInWorker: true,
|
||||||
lintOnStart: true,
|
lintOnStart: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue