File tree Expand file tree Collapse file tree 4 files changed +1498
-51
lines changed Expand file tree Collapse file tree 4 files changed +1498
-51
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,6 @@ website/build/
8
8
9
9
sync-api-docs /generatedComponentApiDocs.js
10
10
sync-api-docs /extracted.json
11
+
12
+ .cache
13
+ .textlintcache
Original file line number Diff line number Diff line change
1
+ ---
2
+ filters : {}
3
+ rules :
4
+ preset-ja-technical-writing : true
5
+ " @textlint-ja/no-synonyms " : true
6
+ " @proofdict/proofdict " :
7
+ dictURL : https://react-native-jp.github.io/proof-dictionary/
Original file line number Diff line number Diff line change 7
7
],
8
8
"scripts" : {
9
9
"postinstall" : " yarn update-lock" ,
10
- "update-lock" : " npx yarn-deduplicate"
10
+ "update-lock" : " npx yarn-deduplicate" ,
11
+ "lint" : " textlint --cache $(git diff master --name-only)" ,
12
+ "lint:fix" : " npm run lint -- --fix" ,
13
+ "p" : " pretty-quick --staged"
11
14
},
12
15
"husky" : {
13
16
"hooks" : {
14
- "pre-commit" : " pretty-quick - -staged"
17
+ "pre-commit" : " lint -staged"
15
18
}
16
19
},
20
+ "lint-staged" : {
21
+ "*.md" : " textlint" ,
22
+ "*.@(ts|tsx|js|jsx)" : " pretty-quick --staged"
23
+ },
17
24
"devDependencies" : {
25
+ "@proofdict/textlint-rule-proofdict" : " ^3.1.1" ,
26
+ "@textlint-ja/textlint-rule-no-synonyms" : " ^1.1.0" ,
18
27
"husky" : " ^4.2.5" ,
28
+ "lint-staged" : " ^10.5.4" ,
19
29
"prettier" : " ^2.2.1" ,
20
- "pretty-quick" : " ^3.1.0"
30
+ "pretty-quick" : " ^3.1.0" ,
31
+ "sudachi-synonyms-dictionary" : " ^6.0.0" ,
32
+ "textlint" : " ^11.8.2" ,
33
+ "textlint-rule-preset-ja-technical-writing" : " ^4.0.1"
21
34
}
22
35
}
You can’t perform that action at this time.
0 commit comments