Skip to content

Commit

Permalink
🤖 [Actions] Changes to scripts and actions (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi authored May 17, 2023
1 parent ec66a9c commit bb2c711
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ jobs:

- name: Lint
run: npm run lint

- name: Prettier
run: npm run format
11 changes: 5 additions & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"recommendations": [
"codezombiech.gitignore",
"github.vscode-github-actions",
"EditorConfig.editorconfig",
"christian-kohler.npm-intellisense",
"christian-kohler.path-intellisense",
"codezombiech.gitignore",
"Gruntfuggly.todo-tree",
"DavidAnson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"EditorConfig.editorconfig",
"esbenp.prettier-vscode",
"Gruntfuggly.todo-tree",
"stylelint.vscode-stylelint",
"mrmlnc.vscode-scss"
"esbenp.prettier-vscode"
]
}
7 changes: 2 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"css.validate": false,
"scss.validate": false,
"javascript.validate.enable": false,
"stylelint.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"eslint.validate": ["javascript", "typescript"],
"stylelint.enable": true,
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"files.exclude": {
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
"nuke": "npm run clean && rm -rf node_modules && rm -rf package-lock.json && npm cache clean --force",
"build": "npm run clean && tsc && vite build",
"preview": "vite preview",
"lint": "eslint . --ext .ts,.tsx",
"lint": "eslint . --ext .ts,.cjs",
"lint:fix": "npm run lint -- --fix",
"format": "prettier --check src/",
"format:fix": "prettier --write src/",
"test": "vitest",
"test:ui": "vitest --ui",
"coverage": "vitest --run --coverage",
Expand Down

0 comments on commit bb2c711

Please sign in to comment.