Skip to content

Commit bc6826c

Browse files
VdustRclaude
andauthored
chore: migrate ignore files and update CI trigger (#24)
* chore: migrate .prettierignore to .eslintignore and .oxfmtrc.json - Rename .prettierignore to .eslintignore for ESLint ignore patterns - Add ignore patterns to .oxfmtrc.json for oxfmt formatter - Update VSCode workspace to recommend oxc extension instead of prettier - Update README example to use .eslintignore Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * ci: only run check workflow on push to main Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e199038 commit bc6826c

File tree

8 files changed

+28
-9
lines changed

8 files changed

+28
-9
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@vp-tw/eslint-config": patch
3+
---
4+
5+
- Migrate `.prettierignore` to `.eslintignore` for ESLint ignore patterns
6+
- Add ignore patterns to `.oxfmtrc.json` for oxfmt
7+
- Update VSCode workspace to recommend oxc extension
8+
- CI: Only run on push to main branch (PR checks still run on all PRs)
File renamed without changes.

.github/workflows/check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Check
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request: {}
47

58
jobs:
69
spell:

.oxfmtrc.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
22
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3-
"ignorePatterns": []
3+
"ignorePatterns": [
4+
"pnpm-lock.yaml",
5+
"dist/**",
6+
"packages/eslint-config/src/eslint-typegen.d.ts",
7+
".eslint-config-inspector/**",
8+
".changeset/**",
9+
"CHANGELOG.md",
10+
"LICENSE"
11+
]
412
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import path from "pathe";
3636

3737
const __filename = fileURLToPath(import.meta.url);
3838
const __dirname = path.dirname(__filename);
39-
const prettierignorePath = path.resolve(__dirname, ".prettierignore");
39+
const eslintignorePath = path.resolve(__dirname, ".eslintignore");
4040

4141
export default vdustr(
4242
{
@@ -60,7 +60,7 @@ export default vdustr(
6060
},
6161
},
6262
},
63-
includeIgnoreFile(prettierignorePath),
63+
includeIgnoreFile(eslintignorePath),
6464
);
6565
```
6666

cspell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"**/LICENSE",
1414
"/*.code-workspace",
1515
"/.changeset",
16+
"/.eslintignore",
1617
"/.git",
17-
"/.prettierignore",
1818
"/pnpm-lock.yaml"
1919
],
2020
"includeRegExpList": ["[ -~]"],

eslint-config.code-workspace

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extensions": {
33
"recommendations": [
44
"dbaeumer.vscode-eslint",
5-
"prettier.prettier-vscode",
5+
"oxc.oxc-vscode",
66
"streetsidesoftware.code-spell-checker",
77
"TypeScriptTeam.native-preview",
88
],
@@ -14,7 +14,7 @@
1414
"source.fixAll.eslint",
1515
"source.formatDocument",
1616
],
17-
"editor.defaultFormatter": "prettier.prettier-vscode",
17+
"editor.defaultFormatter": "oxc.oxc-vscode",
1818
"editor.formatOnSave": true,
1919
"eslint.rules.customizations": [
2020
{ "fixable": true, "rule": "perfectionist/*", "severity": "off" },

eslint.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { vdustr } from "./packages/eslint-config/src";
66

77
const __filename = fileURLToPath(import.meta.url);
88
const __dirname = path.dirname(__filename);
9-
const prettierignorePath = path.resolve(__dirname, ".prettierignore");
9+
const eslintignorePath = path.resolve(__dirname, ".eslintignore");
1010

1111
export default vdustr(
1212
{
@@ -17,5 +17,5 @@ export default vdustr(
1717
mdx: true,
1818
storybook: true,
1919
},
20-
includeIgnoreFile(prettierignorePath),
20+
includeIgnoreFile(eslintignorePath),
2121
);

0 commit comments

Comments
 (0)