Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -892,17 +892,17 @@ jobs:
if: always()
run: pnpm run lint.syncpack

- name: Prettier Check
- name: Format Check
if: always()
run: pnpm run lint.prettier
run: pnpm run lint.fmt

- name: Build ESLint
- name: Build ESLint Plugin
if: always()
run: pnpm build --eslint

- name: ESLint Check
- name: Lint Check
if: always()
run: pnpm run lint.eslint
run: pnpm run lint.oxlint

############ RELEASE ############
release:
Expand Down
22 changes: 22 additions & 0 deletions .oxfmtignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Ignore patterns
**/**.api.md
**/*.log
**/.DS_Store
pnpm-lock.yaml
dist
dist-dev
lib
target
node_modules
tsconfig.tsbuildinfo
packages/docs/public/repl/repl-sw.js*
packages/*/lib
packages/*/dist
packages/*/server
packages/docs/src/routes/api
packages/insights/drizzle
packages/insights/.netlify
packages/insights/scripts
packages/insights/**/*.gen.d.ts
**/q-insights.json
packages/docs/public/builder
20 changes: 20 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://oxc.rs/schemas/oxfmt.json",
"jsdocPreferCodeFences": true,
"tsdoc": true,
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"experimentalSortPackageJson": false,
"overrides": [
{
"files": ["packages/docs/**"],
"options": {
"printWidth": 80
}
}
]
}
134 changes: 134 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
"plugins": ["jsdoc", "import", "unicorn", "vitest"],
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }],
"curly": "error",
"no-new-func": "error",
"no-unused-vars": "off",
"no-unused-expressions": "off",
"no-control-regex": "off",
"no-shadow-restricted-names": "off",
"unicorn/no-empty-file": "off",
"unicorn/no-new-array": "off",
"jsdoc/check-property-names": "off",
"jsdoc/check-tag-names": "off",
"jsdoc/require-property": "off",
"jsdoc/require-yields": "off",
"vitest/expect-expect": "off",
"vitest/no-disabled-tests": "off",
"vitest/no-focused-tests": "error",
"vitest/valid-title": "off",
"vitest/warn-todo": "off",
"jest/expect-expect": "off",
"jest/no-disabled-tests": "off",
"jest/no-focused-tests": "error",
"jest/valid-title": "off",
"jest/no-conditional-expect": "off",
"jest/valid-describe-callback": "off",
"jest/no-export": "off",
"import/default": "off",
"unicorn/prefer-string-starts-ends-with": "off",
"no-eval": "off",
"no-unsafe-optional-chaining": "off",
"unicorn/no-unnecessary-await": "off",
"unicorn/no-invalid-remove-event-listener": "off",
"jest/valid-expect": "off",
"vitest/no-conditional-tests": "off"
},
"overrides": [
{
"files": ["packages/docs/**/*.ts", "packages/docs/**/*.tsx"],
"rules": {
"no-console": "off",
"curly": "off"
}
},
{
"files": ["packages/qwik/src/server/**/*.ts"],
"rules": {
"no-restricted-imports": ["error", {
"patterns": [
{
"group": ["packages/*"],
"message": "Absolute imports are not allowed."
},
{
"group": ["../**"],
"message": "Relative imports are not allowed."
}
]
}]
}
},
{
"files": ["packages/qwik/src/server/qwik-copy.ts"],
"rules": {
"no-restricted-imports": "off"
}
},
{
"files": ["packages/qwik/src/server/qwik-types.ts"],
"rules": {
"no-restricted-imports": ["error", {
"patterns": [
{
"group": ["packages/*"],
"message": "Absolute imports are not allowed.",
"allowTypeImports": true
},
{
"group": ["../**"],
"message": "Relative imports are not allowed.",
"allowTypeImports": true
}
]
}]
}
}
],
"ignorePatterns": [
"**/.history",
"**/.vscode",
"**/dist",
"**/dist-dev",
"**/lib",
"**/node_modules",
"**/tsc-out",
"**/external",
"**/*.log",
"**/etc",
"**/target",
"**/temp",
"**/tsdoc-metadata.json",
"**/.DS_Store",
"**/*.mp4",
"scripts",
"**/server/**/*.js",
"**/*.tsbuildinfo",
"packages/docs/api",
"packages/docs/public/repl/repl-sw.js*",
"packages/docs/src/routes/examples/apps",
"packages/docs/src/routes/playground/app",
"packages/docs/src/routes/tutorial",
"packages/qwik/src/optimizer/core/src/fixtures",
"packages/qwik/bindings",
"packages/qwik-labs/lib",
"packages/qwik-labs/lib-types",
"packages/qwik-labs/vite",
"packages/insights/drizzle.config.ts",
"packages/insights/panda.config.ts",
"packages/qwik/src/napi",
"starters/apps/base",
"starters/apps/library",
"starters/templates",
"**/vite.config.ts",
"packages/qwik-labs",
"packages/insights",
"**/eslint.config.mjs",
"**/eslint.config.js",
".changeset",
"packages/docs/public/builder",
"packages/eslint-plugin-qwik/tests"
]
}
49 changes: 0 additions & 49 deletions .prettierignore

This file was deleted.

11 changes: 0 additions & 11 deletions .prettierrc.json

This file was deleted.

Loading