Skip to content
Merged
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
3 changes: 2 additions & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:

- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm run format
- run: pnpm run lint --fix

- uses: autofix-ci/action@v1.3.2
- uses: autofix-ci/action@v1.3.3
with:
commit-message: 'chore: autofix by ci'
18 changes: 9 additions & 9 deletions .oxfmtrc.json → .oxfmtrc.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"htmlWhitespaceSensitivity": "css",
"ignorePatterns": [
"**/node_modules/**",
"**/dist/**",
"pnpm-lock.yaml",
"**/*.min.*",
"**/tests/fixtures/**",
"dts/rule-options.d.ts"
"**/dist/**",
"**/fixtures/**",
"dts/rule-options.d.ts",
],
"insertFinalNewline": true,
"jsxSingleQuote": true,
Expand All @@ -22,15 +22,15 @@
{
"files": ["**/*.{css,scss}"],
"options": {
"singleQuote": false
}
"singleQuote": false,
},
},
{
"files": ["**/*.html"],
"options": {
"singleAttributePerLine": false
}
}
"singleAttributePerLine": false,
},
},
],
"printWidth": 80,
"proseWrap": "preserve",
Expand All @@ -41,5 +41,5 @@
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false,
"vueIndentScriptAndStyle": false
"vueIndentScriptAndStyle": false,
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"javascriptreact",
"typescriptreact"
],
"typescript.experimental.useTsgo": true,
"js/ts.experimental.useTsgo": true,
"cSpell.words": [
"bumpp",
"changelogithub",
Expand Down
40 changes: 13 additions & 27 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,32 +1,18 @@
// @ts-check

import { defineESLintConfig, GLOB_ALL_SRC } from '@ntnyq/eslint-config'
import { plugin as pluginOxfmt } from 'eslint-plugin-oxfmt'
import { defineESLintConfig } from '@ntnyq/eslint-config'

export default defineESLintConfig(
{
ignores: ['**/dts/rule-options.d.ts'],
oxfmt: false,
prettier: false,
perfectionist: {
all: true,
},
test: {
overridesVitestRules: {
// in favor of eslint-vitest-rule-tester
'vitest/no-standalone-expect': 'off',
},
},
export default defineESLintConfig({
ignores: ['**/dts/rule-options.d.ts'],
oxfmt: true,
prettier: false,
perfectionist: {
all: true,
},
[
{
files: [...GLOB_ALL_SRC],
plugins: {
oxfmt: pluginOxfmt,
},
rules: {
'oxfmt/oxfmt': 'error',
},
test: {
overridesVitestRules: {
// in favor of eslint-vitest-rule-tester
'vitest/no-standalone-expect': 'off',
},
],
)
},
})
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "eslint-plugin-oxfmt",
"type": "module",
"version": "0.1.1",
"packageManager": "pnpm@10.30.3",
"packageManager": "pnpm@10.32.1",
"description": "An ESLint plugin for formatting code with oxfmt.",
"keywords": [
"eslint",
Expand Down Expand Up @@ -64,28 +64,28 @@
},
"dependencies": {
"generate-differences": "^0.1.1",
"load-oxfmt-config": "^0.1.1",
"load-oxfmt-config": "^0.2.0",
"picomatch": "^4.0.3",
"synckit": "^0.11.12"
},
"devDependencies": {
"@ntnyq/eslint-config": "^6.0.0-beta.11",
"@ntnyq/eslint-config": "^6.0.0-beta.13",
"@types/json-schema": "^7.0.15",
"@types/node": "^25.3.2",
"@typescript/native-preview": "^7.0.0-dev.20260227.1",
"@types/node": "^25.4.0",
"@typescript/native-preview": "^7.0.0-dev.20260312.1",
"bumpp": "^10.4.1",
"eslint": "^10.0.2",
"eslint": "^10.0.3",
"eslint-parser-plain": "^0.1.1",
"eslint-plugin-oxfmt": "workspace:*",
"eslint-typegen": "^2.3.1",
"eslint-vitest-rule-tester": "^3.1.0",
"husky": "^9.1.7",
"nano-staged": "^0.9.0",
"npm-run-all2": "^8.0.4",
"oxfmt": "^0.35.0",
"oxfmt": "^0.39.0",
"show-invisibles": "^0.0.2",
"tinyglobby": "^0.2.15",
"tsdown": "^0.21.0-beta.2",
"tsdown": "^0.21.2",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
Expand Down
Loading
Loading