Skip to content

Commit f86b72a

Browse files
author
Soc Sieng
committedJun 12, 2020
style: add prettier to precommit hook and on save
1 parent 906d1bc commit f86b72a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+343
-492
lines changed
 

‎.eslintrc

+4-13
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"jsx": true
88
}
99
},
10-
"extends": [
11-
],
10+
"extends": [],
1211
"rules": {
1312
"comma-dangle": ["error", "only-multiline"],
1413
"quote-props": ["error", "consistent"],
@@ -26,10 +25,7 @@
2625
}
2726
},
2827
"files": ["*.ts", "*.tsx"],
29-
"extends": [
30-
"plugin:react/recommended",
31-
"plugin:@typescript-eslint/recommended"
32-
],
28+
"extends": ["plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
3329
"rules": {
3430
"@typescript-eslint/no-empty-function": "off",
3531
"@typescript-eslint/no-explicit-any": "off",
@@ -38,19 +34,14 @@
3834
},
3935
{
4036
"files": ["src/**/*.ts", "src/**/*.tsx"],
41-
"extends": [
42-
"prettier/@typescript-eslint",
43-
"plugin:prettier/recommended"
44-
],
37+
"extends": ["prettier/@typescript-eslint", "plugin:prettier/recommended"],
4538
"rules": {
4639
"sort-imports": "error"
4740
}
4841
},
4942
{
5043
"files": ["*.js"],
51-
"extends": [
52-
"eslint:recommended"
53-
],
44+
"extends": ["eslint:recommended"],
5445
"globals": {
5546
"jasmine": true
5647
}

‎.github/ISSUE_TEMPLATE/bug_report.md

+13-16
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,33 @@ about: Create a report to help us improve
44
title: ''
55
labels: bug
66
assignees: ''
7-
87
---
98

10-
**Describe the bug**
11-
A clear and concise description of what the bug is.
9+
**Describe the bug** A clear and concise description of what the bug is.
10+
11+
**To Reproduce** Steps to reproduce the behavior:
1212

13-
**To Reproduce**
14-
Steps to reproduce the behavior:
1513
1. Go to '...'
1614
2. Click on '....'
1715
3. Scroll down to '....'
1816
4. See error
1917

20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
18+
**Expected behavior** A clear and concise description of what you expected to happen.
2219

23-
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
20+
**Screenshots** If applicable, add screenshots to help explain your problem.
2521

2622
**Component information:**
23+
2724
- Component
2825
- [ ] React component (`@google-pay/button-react`)
2926
- [ ] Custom element (`@google-pay/button-element`)
30-
- Component version (e.g. 0.5.0):
27+
- Component version (e.g. 0.5.0):
3128

3229
**Environment:**
33-
- Device (e.g. iPhone6):
34-
- OS (e.g. iOS8.1):
35-
- Browser (e.g. stock browser, safari)
36-
- Country/region:
3730

38-
**Additional context**
39-
Add any other context about the problem here.
31+
- Device (e.g. iPhone6):
32+
- OS (e.g. iOS8.1):
33+
- Browser (e.g. stock browser, safari)
34+
- Country/region:
35+
36+
**Additional context** Add any other context about the problem here.

0 commit comments

Comments
 (0)