| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- {
- "$schema": "./node_modules/oxlint/configuration_schema.json",
- "plugins": [],
- "categories": {
- "correctness": "off"
- },
- "env": {
- "builtin": true
- },
- "ignorePatterns": [
- "**/dist/",
- "**/temp/",
- "**/coverage/",
- "dts-build/packages"
- ],
- "overrides": [
- {
- "files": ["**/*.js", "**/*.ts", "**/*.tsx"],
- "rules": {
- "no-debugger": "error",
- "no-console": [
- "error",
- {
- "allow": ["warn", "error", "info"]
- }
- ],
- "no-restricted-globals": [
- "error",
- "window",
- "document",
- "module",
- "require"
- ],
- "oxc/no-const-enum": "error",
- "oxc/no-rest-spread-properties": "error",
- "oxc/no-async-await": "error",
- "oxc/no-optional-chaining": "error",
- "sort-imports": [
- "error",
- {
- "ignoreDeclarationSort": true
- }
- ],
- "@typescript-eslint/prefer-ts-expect-error": "error",
- "@typescript-eslint/consistent-type-imports": [
- "error",
- {
- "fixStyle": "inline-type-imports",
- "disallowTypeAnnotations": false
- }
- ],
- "@typescript-eslint/no-import-type-side-effects": "error"
- },
- "plugins": ["typescript"]
- },
- {
- "files": [
- "**/__tests__/**",
- "packages-private/dts-test/**",
- "packages-private/dts-build-test/**"
- ],
- "rules": {
- "no-console": "off",
- "no-restricted-globals": "off",
- "no-unused-expressions": "off",
- "no-unused-vars": "off",
- "no-unsafe-optional-chaining": "off",
- "no-constant-condition": "off",
- "vitest/no-conditional-tests": "off",
- "typescript/no-this-alias": "off",
- "vitest/warn-todo": "off",
- "typescript/no-non-null-asserted-optional-chain": "off"
- },
- "globals": {
- "suite": "writable",
- "test": "writable",
- "describe": "writable",
- "it": "writable",
- "expectTypeOf": "writable",
- "assertType": "writable",
- "expect": "writable",
- "assert": "writable",
- "chai": "writable",
- "vitest": "writable",
- "vi": "writable",
- "beforeAll": "writable",
- "afterAll": "writable",
- "beforeEach": "writable",
- "afterEach": "writable",
- "onTestFailed": "writable",
- "onTestFinished": "writable"
- },
- "plugins": ["vitest", "typescript"]
- },
- {
- "files": ["packages/shared/**"],
- "rules": {
- "no-restricted-globals": "off"
- }
- },
- {
- "files": ["packages/{vue,vue-compat,runtime-dom,runtime-vapor}/**"],
- "rules": {
- "no-restricted-globals": ["error", "module", "require"]
- }
- },
- {
- "files": ["packages/{compiler-sfc,compiler-ssr,server-renderer}/**"],
- "rules": {
- "no-restricted-globals": ["error", "window", "document"],
- "oxc/no-const-enum": "error"
- }
- },
- {
- "files": [
- "packages-private/template-explorer/**",
- "packages-private/sfc-playground/**"
- ],
- "rules": {
- "no-restricted-globals": ["error", "module", "require"],
- "oxc/no-const-enum": "error",
- "no-console": "off"
- }
- },
- {
- "files": ["*.js"],
- "rules": {
- "no-unused-vars": [
- "error",
- {
- "vars": "all",
- "args": "none"
- }
- ]
- }
- },
- {
- "files": [
- "scripts/**",
- "./*.{js,ts}",
- "packages/*/*.js",
- "packages/vue/*/*.js",
- "packages-private/benchmark/*",
- "packages-private/e2e-utils/*"
- ],
- "rules": {
- "no-restricted-globals": "off",
- "oxc/no-const-enum": "error",
- "no-console": "off"
- }
- }
- ]
- }
|