Skip to content

Commit 179bfaf

Browse files
committed
feat: add a linting npm script
1 parent 590642e commit 179bfaf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"test:lint": "eslint \"./src/**/*.+(ts|tsx)\"",
3636
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
3737
"test:watch": "react-scripts test --env=jsdom",
38-
"release": "npm run test && npm run prepare && dotenv release-it"
38+
"release": "npm run test && npm run prepare && dotenv release-it",
39+
"lint": "eslint . --ext .js,.ts,.tsx"
3940
},
4041
"peerDependencies": {
4142
"react": "^16.0.0"

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const ReactInputVerificationCode = ({
3030
value: pValue,
3131
dataCy = 'verification-code',
3232
type = 'text',
33-
passwordMask = '•'
33+
passwordMask = '•',
3434
}: Props) => {
3535
const emptyValue = new Array(length).fill(placeholder);
3636

0 commit comments

Comments
 (0)