Skip to content

Commit

Permalink
Merge pull request #87 from tuatmcc/fix/ci_typecheck
Browse files Browse the repository at this point in the history
[delete]: prettier, eslint, tsc
  • Loading branch information
OJII3 authored Nov 18, 2023
2 parents 1b0918a + f98ad49 commit 6df4569
Show file tree
Hide file tree
Showing 21 changed files with 320 additions and 251 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

15 changes: 0 additions & 15 deletions .eslintrc.json

This file was deleted.

9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- name: Install Dependendies
run: npm ci
- name: Run Lint & Format Check
run: npm run lint
- name: Build Test
run: npm run build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
/.mdorganizer/
/content/
/biome-*
/.vim/

mdorganizer.config.[jt]s
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

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

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
A CLI tool to convert markdown files into TypeScript modules, with fully typed front matter.

- Simple
- Very Few dependencies
- Few dependencies
- Customizable
- `globPattern` options for markdown files location
- User defined front matter with type definition
Expand Down
49 changes: 49 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"linter": {
"enabled": true,
"include": ["src/**/*.ts", "test/**/*.ts", "scripts/**/*.js"],
"ignore": ["dist/**/*", "node_modules/**/*"],
"rules": {
"recommended": true,
"nursery": {
"noUnusedImports": "error"
},
"correctness": {
"all": true
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": true,
"indentStyle": "space",
"lineWidth": 120,
"indentWidth": 2,
"include": ["src/**/*.ts", "test/**/*.ts", "scripts/**/*.js"],
"ignore": ["dist/**/*", "node_modules/**/*"]
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingComma": "all",
"quoteStyle": "single",
"semicolons": "always"
}
},
"json": {
"formatter": {
"enabled": true
}
},
"organizeImports": {
"enabled": true,
"include": ["src/**/*.ts", "test/**/*.ts", "scripts/**/*.js"],
"ignore": ["dist/**/*", "node_modules/**/*"]
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
}
2 changes: 1 addition & 1 deletion lib/types.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { UserConfig, FieldConfig, CategoryConfig } from '../src/types';
export type { UserConfig, FieldConfig, CategoryConfig } from '../src/types';
Loading

0 comments on commit 6df4569

Please sign in to comment.