Skip to content

Commit 82bf979

Browse files
committed
重新配置prettier格式化设定
1 parent ae0c590 commit 82bf979

Some content is hidden

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

51 files changed

+2220
-2521
lines changed

.prettierrc

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
{
2-
"printWidth": 100,
2+
"printWidth": 120,
3+
"tabWidth": 4,
4+
"parser": "babylon",
5+
"trailingComma": "none",
6+
"jsxBracketSameLine": true,
7+
"semi": true,
38
"singleQuote": true,
4-
"trailingComma": "es5"
9+
"overrides": [
10+
{
11+
"files": ["*.json", ".eslintrc", ".tslintrc", ".prettierrc", ".tern-project"],
12+
"options": {
13+
"parser": "json",
14+
"tabWidth": 2
15+
}
16+
},
17+
{
18+
"files": "*.{css,sass,scss,less}",
19+
"options": {
20+
"parser": "postcss",
21+
"tabWidth": 4
22+
}
23+
},
24+
{
25+
"files": "*.ts",
26+
"options": {
27+
"parser": "typescript"
28+
}
29+
}
30+
]
531
}

CODE_OF_CONDUCT.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior by participants include:
1818

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
### 功能集合
22

3-
* [x] 热更新 code-push
4-
* [x] carousel
5-
* [x] redux 案例
6-
* [x] react-navigation 案例
7-
* [x] Android 硬更新
8-
* [x] iOS 硬更新
9-
* [ ] native 层
3+
* [x] 热更新 code-push
4+
* [x] carousel
5+
* [x] redux 案例
6+
* [x] react-navigation 案例
7+
* [x] Android 硬更新
8+
* [x] iOS 硬更新
9+
* [ ] native 层
1010

1111
### 项目架构
1212

13-
* [x] react-native,
14-
* [x] react-navigation,
15-
* [x] redux,
16-
* [x] mobx,
17-
* [x] react-native-vector-icons
18-
* [x] react-native-splash-screen
19-
* [x] react-native-code-push
20-
...
13+
* [x] react-native,
14+
* [x] react-navigation,
15+
* [x] redux,
16+
* [x] mobx,
17+
* [x] react-native-vector-icons
18+
* [x] react-native-splash-screen
19+
* [x] react-native-code-push
20+
...
2121

2222
### 自动化工具
2323

24-
* [x] prettier
24+
* [x] prettier
2525

2626
#### 案例效果图
2727

__tests__/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import App from '../App';
66
import renderer from 'react-test-renderer';
77

88
it('renders correctly', () => {
9-
const tree = renderer.create(<App />);
9+
const tree = renderer.create(<App />);
1010
});

0 commit comments

Comments
 (0)