Skip to content

Commit

Permalink
chore: update prettier (#145)
Browse files Browse the repository at this point in the history
* chore: update prettier

* apply format

* fix

* retry
  • Loading branch information
azu authored Oct 9, 2022
1 parent 89f0f9d commit e1e0cdd
Show file tree
Hide file tree
Showing 6 changed files with 3,379 additions and 3,580 deletions.
2 changes: 2 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npx --no-install lint-staged
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn install
- name: Test
run: yarn test
- uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: yarn test
48 changes: 22 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,15 @@
"build": "textlint-scripts build",
"lint": "eslint --fix src test",
"unittest": "textlint-scripts test",
"prettier": "prettier --write \"**/*.{js,json,md}\"",
"prepublish": "npm run --if-present build",
"prepublish": "yarn run --if-present build",
"test": "npm-run-all lint unittest",
"watch": "textlint-scripts build --watch"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"watch": "textlint-scripts build --watch",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
"prepare": "git config --local core.hooksPath .githooks"
},
"lint-staged": {
"*.js": [
"prettier",
"git add"
],
"*.json": [
"prettier",
"git add"
"*.{js,jsx,ts,tsx,css}": [
"prettier --write"
]
},
"dependencies": {
Expand All @@ -50,21 +41,26 @@
"textlint-rule-helper": "^2.1.1"
},
"devDependencies": {
"eslint": "^6.5.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.4.0",
"eslint": "^8.25.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-immutable": "^1.0.0",
"eslint-plugin-import": "^2.18.2",
"husky": "^3.0.9",
"lint-staged": "^9.4.2",
"eslint-plugin-import": "^2.26.0",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"textlint": "^11.4.0",
"textlint-scripts": "^3.0.0",
"textlint-tester": "^5.1.10"
"prettier": "^2.7.1",
"textlint": "^12.2.2",
"textlint-scripts": "^12.2.2",
"textlint-tester": "^12.2.2"
},
"engines": {
"node": ">=4"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"prettier": {
"singleQuote": false,
"printWidth": 120,
"tabWidth": 4,
"trailingComma": "none"
}
}
Loading

0 comments on commit e1e0cdd

Please sign in to comment.