mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 02:03:49 +02:00
adjust lint config
This commit is contained in:
1834
.oxlintrc.json
1834
.oxlintrc.json
File diff suppressed because it is too large
Load Diff
@@ -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: {
|
||||||
|
|||||||
30
package-lock.json
generated
30
package-lock.json
generated
@@ -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",
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
6
src/types/vue-shim.d.ts
vendored
Normal file
6
src/types/vue-shim.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
declare module '*.vue' {
|
||||||
|
import type { DefineComponent } from 'vue';
|
||||||
|
|
||||||
|
const component: DefineComponent<{}, {}, any>;
|
||||||
|
export default component;
|
||||||
|
}
|
||||||
16
tsconfig.checkjs.json
Normal file
16
tsconfig.checkjs.json
Normal file
@@ -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