Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
feature(standard-prettier): add sort (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoublejay authored Dec 13, 2022
1 parent 8572c5e commit 9a8557a
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/standard-desktop-linter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
parserOptions: {
project: "./tsconfig.json",
},
plugins: ["react", "react-hooks", "prettier"],
plugins: ["simple-import-sort", "react", "react-hooks", "prettier"],
ignorePatterns: ["/*.config.js", "*.json", "jest.setup.js"],
rules: {
"import/no-extraneous-dependencies": "off",
Expand Down
1 change: 1 addition & 0 deletions packages/standard-desktop-linter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
Expand Down
1 change: 1 addition & 0 deletions packages/standard-prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^8.0.0",
"husky": "^8.0.2",
"lint-staged": "^13.1.0",
"prettier": "^2.8.1",
Expand Down
8 changes: 7 additions & 1 deletion packages/standard-web-linter/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
module.exports = {
extends: ["next/core-web-vitals", "airbnb", "airbnb-typescript", "prettier"],
extends: [
"simple-import-sort",
"next/core-web-vitals",
"airbnb",
"airbnb-typescript",
"prettier",
],
parserOptions: {
project: "./tsconfig.json",
},
Expand Down
1 change: 1 addition & 0 deletions packages/standard-web-linter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
Expand Down
14 changes: 14 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 9a8557a

Please sign in to comment.