Skip to content

Commit

Permalink
remove eslint-plugin-prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Jul 8, 2022
1 parent 626bd90 commit 8bb4a44
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 67 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended'
'prettier'
],
overrides: [
{
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ jobs:
run: npm ci
- name: run lint
run: npm run lint
format:
name: run format
runs-on: ubuntu-latest
needs: [packages]
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: npm
- name: npm ci
run: npm ci
- name: run format
run: npx prettier --check .
type-check:
name: run type-check
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
64 changes: 0 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"serve": "vite preview",
"type-check": "tsc --noEmit",
"lint": "eslint --cache .",
"lint:fix": "eslint --fix --cache ."
"lint:fix": "eslint --fix --cache .",
"format": "prettier --cache --write ."
},
"devDependencies": {
"@types/throttle-debounce": "^5.0.0",
Expand All @@ -18,7 +19,6 @@
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-lit": "^1.6.1",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.7.1",
"rollup-plugin-brotli": "^3.1.0",
"sass": "^1.53.0",
Expand Down

0 comments on commit 8bb4a44

Please sign in to comment.