mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-03 13:36:04 +02:00
adjust lint config
This commit is contained in:
+6
-44
@@ -1,12 +1,10 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||||
"plugins": [
|
"plugins": ["vue"],
|
||||||
"vue",
|
|
||||||
"jsdoc"
|
|
||||||
],
|
|
||||||
"categories": {
|
"categories": {
|
||||||
"correctness": "off"
|
"correctness": "off"
|
||||||
},
|
},
|
||||||
|
"ignorePatterns": ["build/**", "node_modules/**"],
|
||||||
"env": {
|
"env": {
|
||||||
"builtin": true
|
"builtin": true
|
||||||
},
|
},
|
||||||
@@ -774,22 +772,7 @@
|
|||||||
"XRWebGLLayer": "readonly",
|
"XRWebGLLayer": "readonly",
|
||||||
"XSLTProcessor": "readonly"
|
"XSLTProcessor": "readonly"
|
||||||
},
|
},
|
||||||
"settings": {
|
|
||||||
"jsdoc": {
|
|
||||||
"structuredTags": {
|
|
||||||
"next": {
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"rejects": {
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"vue/no-arrow-functions-in-watch": "error",
|
"vue/no-arrow-functions-in-watch": "error",
|
||||||
"vue/no-deprecated-destroyed-lifecycle": "error",
|
"vue/no-deprecated-destroyed-lifecycle": "error",
|
||||||
@@ -799,29 +782,11 @@
|
|||||||
"vue/valid-define-emits": "error",
|
"vue/valid-define-emits": "error",
|
||||||
"vue/valid-define-props": "error",
|
"vue/valid-define-props": "error",
|
||||||
"no-unused-vars": "warn",
|
"no-unused-vars": "warn",
|
||||||
"no-control-regex": "warn",
|
"no-control-regex": "warn"
|
||||||
"jsdoc/check-access": "warn",
|
|
||||||
"jsdoc/check-property-names": "warn",
|
|
||||||
"jsdoc/check-tag-names": "warn",
|
|
||||||
"jsdoc/empty-tags": "warn",
|
|
||||||
"jsdoc/implements-on-classes": "warn",
|
|
||||||
"jsdoc/no-defaults": "warn",
|
|
||||||
"jsdoc/require-param": "warn",
|
|
||||||
"jsdoc/require-param-name": "warn",
|
|
||||||
"jsdoc/require-param-type": "warn",
|
|
||||||
"jsdoc/require-property": "warn",
|
|
||||||
"jsdoc/require-property-description": "warn",
|
|
||||||
"jsdoc/require-property-name": "warn",
|
|
||||||
"jsdoc/require-property-type": "warn",
|
|
||||||
"jsdoc/require-returns": "warn",
|
|
||||||
"jsdoc/require-returns-type": "warn",
|
|
||||||
"jsdoc/require-yields": "warn"
|
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": [
|
"files": ["**/*.{js,mjs,cjs,vue}"],
|
||||||
"**/*.{js,mjs,cjs,vue}"
|
|
||||||
],
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"constructor-super": "error",
|
"constructor-super": "error",
|
||||||
"for-direction": "error",
|
"for-direction": "error",
|
||||||
@@ -928,10 +893,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": [
|
"files": ["*.vue", "**/*.vue"],
|
||||||
"*.vue",
|
|
||||||
"**/*.vue"
|
|
||||||
],
|
|
||||||
"globals": {
|
"globals": {
|
||||||
"AbortController": "readonly",
|
"AbortController": "readonly",
|
||||||
"AbortSignal": "readonly",
|
"AbortSignal": "readonly",
|
||||||
|
|||||||
+6
-5
@@ -1,13 +1,13 @@
|
|||||||
import { defineConfig } from 'eslint/config';
|
import { defineConfig } from 'eslint/config';
|
||||||
import { jsdoc } from 'eslint-plugin-jsdoc';
|
|
||||||
import oxlint from 'eslint-plugin-oxlint';
|
|
||||||
|
|
||||||
import globals from 'globals';
|
import globals from 'globals';
|
||||||
import js from '@eslint/js';
|
import js from '@eslint/js';
|
||||||
import pluginVue from 'eslint-plugin-vue';
|
import pluginVue from 'eslint-plugin-vue';
|
||||||
import prettyImport from '@kamiya4047/eslint-plugin-pretty-import';
|
import oxlint from 'eslint-plugin-oxlint';
|
||||||
|
|
||||||
export default defineConfig([
|
export default defineConfig([
|
||||||
|
{
|
||||||
|
ignores: ['build/**', 'node_modules/**']
|
||||||
|
},
|
||||||
{
|
{
|
||||||
files: ['**/*.{js,mjs,cjs,vue}'],
|
files: ['**/*.{js,mjs,cjs,vue}'],
|
||||||
plugins: { js },
|
plugins: { js },
|
||||||
@@ -57,7 +57,8 @@ export default defineConfig([
|
|||||||
files: [
|
files: [
|
||||||
'**/__tests__/**/*.{js,mjs,cjs,vue}',
|
'**/__tests__/**/*.{js,mjs,cjs,vue}',
|
||||||
'**/*.spec.{js,mjs,cjs,vue}',
|
'**/*.spec.{js,mjs,cjs,vue}',
|
||||||
'**/*.test.{js,mjs,cjs,vue}'
|
'**/*.test.{js,mjs,cjs,vue}',
|
||||||
|
'vitest.setup.js'
|
||||||
],
|
],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
|
|||||||
Generated
-30
@@ -20,7 +20,6 @@
|
|||||||
"@fontsource-variable/noto-sans-sc": "^5.2.10",
|
"@fontsource-variable/noto-sans-sc": "^5.2.10",
|
||||||
"@fontsource-variable/noto-sans-tc": "^5.2.10",
|
"@fontsource-variable/noto-sans-tc": "^5.2.10",
|
||||||
"@internationalized/date": "^3.12.0",
|
"@internationalized/date": "^3.12.0",
|
||||||
"@kamiya4047/eslint-plugin-pretty-import": "^0.1.6",
|
|
||||||
"@pinia/testing": "^1.0.3",
|
"@pinia/testing": "^1.0.3",
|
||||||
"@sentry/vite-plugin": "^4.9.1",
|
"@sentry/vite-plugin": "^4.9.1",
|
||||||
"@sentry/vue": "^10.44.0",
|
"@sentry/vue": "^10.44.0",
|
||||||
@@ -2061,20 +2060,6 @@
|
|||||||
"@jridgewell/sourcemap-codec": "^1.4.14"
|
"@jridgewell/sourcemap-codec": "^1.4.14"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@kamiya4047/eslint-plugin-pretty-import": {
|
|
||||||
"version": "0.1.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/@kamiya4047/eslint-plugin-pretty-import/-/eslint-plugin-pretty-import-0.1.6.tgz",
|
|
||||||
"integrity": "sha512-KuJs7CX/mcx5pfZGB6kEFCTeq7GZ/VD0tXpNfOeSKKtWICmc1Y6XChAiCY2yBMHJFBADuFhvf+ozpffX3IYc8A==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@typescript-eslint/types": "^8.44.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"eslint": "^8.0.0 || ^9.0.0",
|
|
||||||
"typescript": "^5"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@malept/cross-spawn-promise": {
|
"node_modules/@malept/cross-spawn-promise": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz",
|
||||||
@@ -11660,21 +11645,6 @@
|
|||||||
"node": ">= 0.8.0"
|
"node": ">= 0.8.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
|
||||||
"version": "5.9.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
|
||||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"peer": true,
|
|
||||||
"bin": {
|
|
||||||
"tsc": "bin/tsc",
|
|
||||||
"tsserver": "bin/tsserver"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=14.17"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/undici": {
|
"node_modules/undici": {
|
||||||
"version": "7.24.2",
|
"version": "7.24.2",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.24.2.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-7.24.2.tgz",
|
||||||
|
|||||||
+4
-1
@@ -7,6 +7,10 @@
|
|||||||
"dev": "cross-env PLATFORM=windows vite serve src",
|
"dev": "cross-env PLATFORM=windows vite serve src",
|
||||||
"dev-linux": "cross-env PLATFORM=linux vite serve src",
|
"dev-linux": "cross-env PLATFORM=linux vite serve src",
|
||||||
"localization": "node ./src/shared/utils/localizationHelperCLI.js",
|
"localization": "node ./src/shared/utils/localizationHelperCLI.js",
|
||||||
|
"lint": "npm run lint:oxlint && npm run lint:eslint",
|
||||||
|
"lint:eslint": "eslint .",
|
||||||
|
"lint:oxlint": "oxlint .",
|
||||||
|
"typecheck:js": "tsc -p tsconfig.checkjs.json --pretty false",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:coverage": "vitest run --coverage",
|
"test:coverage": "vitest run --coverage",
|
||||||
"prod": "cross-env PLATFORM=windows vite build src",
|
"prod": "cross-env PLATFORM=windows vite build src",
|
||||||
@@ -40,7 +44,6 @@
|
|||||||
"@fontsource-variable/noto-sans-sc": "^5.2.10",
|
"@fontsource-variable/noto-sans-sc": "^5.2.10",
|
||||||
"@fontsource-variable/noto-sans-tc": "^5.2.10",
|
"@fontsource-variable/noto-sans-tc": "^5.2.10",
|
||||||
"@internationalized/date": "^3.12.0",
|
"@internationalized/date": "^3.12.0",
|
||||||
"@kamiya4047/eslint-plugin-pretty-import": "^0.1.6",
|
|
||||||
"@pinia/testing": "^1.0.3",
|
"@pinia/testing": "^1.0.3",
|
||||||
"@sentry/vite-plugin": "^4.9.1",
|
"@sentry/vite-plugin": "^4.9.1",
|
||||||
"@sentry/vue": "^10.44.0",
|
"@sentry/vue": "^10.44.0",
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable pretty-import/sort-import-groups */
|
|
||||||
|
|
||||||
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
||||||
import { createI18n } from 'vue-i18n';
|
import { createI18n } from 'vue-i18n';
|
||||||
|
|||||||
@@ -1434,6 +1434,7 @@
|
|||||||
"sun": "Sun"
|
"sun": "Sun"
|
||||||
},
|
},
|
||||||
"easter_egg": "Did you farm your green squares today?",
|
"easter_egg": "Did you farm your green squares today?",
|
||||||
|
"easter_egg_reply": "You can't farm this.",
|
||||||
"overlap": {
|
"overlap": {
|
||||||
"header": "Online Overlap",
|
"header": "Online Overlap",
|
||||||
"peak_overlap": "Peak overlap:",
|
"peak_overlap": "Peak overlap:",
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable pretty-import/sort-import-groups */
|
|
||||||
|
|
||||||
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
||||||
import { createPinia, setActivePinia } from 'pinia';
|
import { createPinia, setActivePinia } from 'pinia';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable pretty-import/sort-import-groups */
|
|
||||||
|
|
||||||
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
||||||
import { createPinia, setActivePinia } from 'pinia';
|
import { createPinia, setActivePinia } from 'pinia';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable pretty-import/sort-import-groups */
|
|
||||||
|
|
||||||
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
||||||
import { createPinia, setActivePinia } from 'pinia';
|
import { createPinia, setActivePinia } from 'pinia';
|
||||||
|
|||||||
Vendored
+6
@@ -0,0 +1,6 @@
|
|||||||
|
declare module '*.vue' {
|
||||||
|
import type { DefineComponent } from 'vue';
|
||||||
|
|
||||||
|
const component: DefineComponent<{}, {}, any>;
|
||||||
|
export default component;
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.app.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.checkjs.tsbuildinfo"
|
||||||
|
},
|
||||||
|
"include": ["src/**/*.js", "src/**/*.jsx", "src/types/**/*.d.ts"],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules",
|
||||||
|
"build",
|
||||||
|
"src/**/*.spec.js",
|
||||||
|
"src/**/*.test.js",
|
||||||
|
"src/**/__tests__/**",
|
||||||
|
"src/app.js",
|
||||||
|
"src/vr/vr.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user