Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita170001

Browse files
authored
feat: update types & README (devfolioco#298)
* chore: fix lint warnings* feat: add test attributes to types
1 parent1e34117 commita170001

File tree

9 files changed

+156
-299
lines changed

9 files changed

+156
-299
lines changed

‎.eslintrc.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"plugin:react/recommended",
2020
"plugin:react-hooks/recommended",
2121
"plugin:import/recommended",
22-
"plugin:prettier/recommended"
22+
"plugin:prettier/recommended",
23+
"prettier"
2324
],
2425
"rules": {
2526
"no-unused-vars":"off",

‎.prettierrc.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"arrowParens":"always",
3+
"printWidth":120,
34
"semi":true,
45
"singleQuote":true,
56
"tabWidth":2,

‎README.md‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,27 @@ export default class App extends Component {
155155
<td>false</td>
156156
<td>Restrict input to only numbers.</td>
157157
</tr>
158-
<tr>
158+
<tr>
159159
<td>isInputSecure</td>
160160
<td>boolean</td>
161161
<td>false</td>
162162
<td>false</td>
163163
<td>Masks input characters.</td>
164164
</tr>
165+
<tr>
166+
<td>data-cy</td>
167+
<td>string</td>
168+
<td>false</td>
169+
<td>-</td>
170+
<td>Test attribute passed to the inputs.</td>
171+
</tr>
172+
<tr>
173+
<td>data-testid</td>
174+
<td>string</td>
175+
<td>false</td>
176+
<td>-</td>
177+
<td>Test attribute passed to the inputs.</td>
178+
</tr>
165179
</table>
166180

167181
##Breaking changes when porting to v1.0.0
@@ -183,9 +197,7 @@ npm run dev
183197
-[x] Add flowtypes
184198
-[x] Add ESLint, Prettier for code quality
185199
-[x] Add styling support for states including focus/disabled
186-
-[ ] Travis CI, Codecov
187200
-[ ] Write tests
188-
-[ ] Improve Documentation
189201

190202
##Contributing
191203

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp