Skip to content

Commit

Permalink
move eslint into single lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Dec 14, 2023
1 parent 4370980 commit d38e44c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/lint-format-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ jobs:
- name: install modules
run: yarn

- name: run eslint
run: yarn eslint

- name: run prettier
- name: run prettier and eslint
run: yarn lint

- name: run check
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin=prettier-plugin-svelte --plugin=prettier-plugin-tailwindcss --check .",
"format": "prettier --plugin=prettier-plugin-svelte --plugin=prettier-plugin-tailwindcss --write .",
"eslint": "npx eslint src/"
"lint": "prettier --plugin=prettier-plugin-svelte --plugin=prettier-plugin-tailwindcss --check . && npx eslint src/",
"format": "prettier --plugin=prettier-plugin-svelte --plugin=prettier-plugin-tailwindcss --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.1",
Expand Down

0 comments on commit d38e44c

Please sign in to comment.