Skip to content

Commit

Permalink
feat(f2elint): prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Apr 7, 2024
1 parent ce2c198 commit feb2f43
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@commitlint/cli": "^19.2.1",
"@mdx-js/react": "^3.0.1",
"@types/node": "^20.12.3",
"@types/node": "^20.12.5",
"commitlint-config-ali": "link:packages/commitlint-config-ali",
"eslint": "^8.57.0",
"eslint-config-ali": "link:packages/eslint-config-ali",
Expand All @@ -54,7 +54,7 @@
"react-doc-ui": "^2.2.6",
"react-dom": "^18.2.0",
"rive": "^2.0.33",
"typescript": "^5.4.3"
"typescript": "^5.4.4"
},
"rive": {
"doc": {
Expand Down
6 changes: 3 additions & 3 deletions packages/f2elint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@
"chalk": "^5.3.0",
"command-exists": "^1.2.9",
"commander": "^12.0.0",
"init-roll": "^1.1.1"
"init-roll": "^1.2.0",
"prettier-config-ali": "workspace:^"
},
"devDependencies": {
"@types/command-exists": "^1.2.3",
"@types/node": "^20.12.4",
"@types/node": "^20.12.5",
"eslint": "^8.57.0",
"eslint-config-ali": "workspace:^",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
"prettier-config-ali": "workspace:^",
"rive": "^2.0.33"
},
"rive": {
Expand Down
2 changes: 2 additions & 0 deletions packages/f2elint/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { init } from 'init-roll';
import { dirname, isAbsolute, join } from 'path';
import prettier from 'prettier-config-ali';
import { fileURLToPath } from 'url';
import { TemplateType } from './types';

Expand All @@ -22,6 +23,7 @@ export async function f2elint(project: string | null = '.', options: F2elintOpti
const initTemplate = (t: string) =>
init(join(__dirname, '..', 'templates', t), projectFullPath, options, {
disableLog: options.disableLog,
prettier,
});

await initTemplate('base');
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"resolveJsonModule": true,
"types": ["node", "rive/globals"],
"lib": ["esnext"],
"allowJs": true,
"allowJs": false,
"checkJs": false,
"skipLibCheck": true,
"moduleResolution": "node",
Expand Down

0 comments on commit feb2f43

Please sign in to comment.