Skip to content

Commit

Permalink
Lint formating with Prettier instead of eslint-plugin-prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Jan 31, 2024
1 parent f8fd1a5 commit 799b5ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 85 deletions.
77 changes: 0 additions & 77 deletions package-lock.json

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

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
"lint": "npm run lint:ts && npm run lint:eslint",
"lint:ts": "tsc --noEmit",
"lint:eslint": "eslint --ext .ts,.html . --ignore-path .gitignore",
"lint:fix": "eslint --ext .ts,.html . --fix --ignore-path .gitignore",
"lint:eslint:fix": "eslint --ext .ts,.html . --fix --ignore-path .gitignore",
"lint:fix": "npm run lint:eslint:fix && npm run format",
"format": "prettier --write --ignore-unknown .",
"format:lint": "prettier --check .",
"format:upgrade": "npm install --save-exact prettier@latest && npm run format",
"manifest": "custom-elements-manifest analyze --litelement --globs=\"src/components/*.ts\"",
"prepare": "husky"
},
Expand All @@ -53,19 +57,18 @@
},
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.9.0",
"@storybook/addon-a11y": "^7.6.11",
"@storybook/addon-essentials": "^7.6.11",
"@storybook/addon-links": "^7.6.11",
"@storybook/addon-storysource": "^7.6.11",
"@storybook/blocks": "^7.6.11",
"@storybook/web-components": "^7.6.11",
"@storybook/web-components-vite": "^7.6.11",
"@storybook/addon-a11y": "^7.6.11",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-lit-a11y": "^4.1.2",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.7",
"lint-staged": "^15.2.1",
"prettier": "3.2.4",
Expand All @@ -79,14 +82,11 @@
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:lit-a11y/recommended"
"plugin:lit-a11y/recommended",
"prettier"
]
},
"lint-staged": {
"**/*.{ts,js}": [
"eslint --fix"
],
"**/*": [
"prettier --write --ignore-unknown"
]
Expand Down

0 comments on commit 799b5ab

Please sign in to comment.