Skip to content

Commit a170001

Browse files
authored
feat: update types & README (#298)
* chore: fix lint warnings * feat: add test attributes to types
1 parent 1e34117 commit a170001

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)