Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
358 commits
Select commit Hold shift + click to select a range
bda7a46
chore(deps): bump tar from 4.4.13 to 4.4.19 (#575)
dependabot[bot] Nov 8, 2021
b74eddb
feat: Add source details in onValueChange (#591)
nikhil-varma Nov 8, 2021
13348c1
Update version
nikhil-varma Nov 8, 2021
fdafbf1
chore(deps): bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Aug 11, 2021
30714f0
call the method getNemberRegexp to get a correct regular expression
aSosunoff Nov 16, 2021
2b7ae9e
fix
aSosunoff Nov 16, 2021
3f3935e
- Fixed #597 (Handle backspace before prefix, when negative value is …
s-yadav Nov 30, 2021
8dc70fd
Fix peerDependencies en package.json
navarroaxel Jul 18, 2021
1b6d2f3
feat: make typings for customInput generic
patsimm Sep 10, 2021
a144fa3
Version bump for release
s-yadav Dec 19, 2021
960ad2b
Fix #601, #603 - Support all Input attributes types on custom input a…
s-yadav Jan 3, 2022
6d7fc62
- Added support for react 18.
s-yadav Apr 23, 2022
6ae054b
Exclude children to be passed on react-number-format
s-yadav Apr 24, 2022
9f65748
Remove Jinno docs
s-yadav Sep 4, 2022
0daae43
Add initial changes for TS migration
nikhil-varma Feb 27, 2022
221fd32
Fixe karma conf
s-yadav Feb 27, 2022
605fb39
Fix failing test
s-yadav Feb 27, 2022
201ddde
Fix typescript test
s-yadav Mar 12, 2022
c112ba7
Added caret engine and boundary logic.
s-yadav Feb 8, 2022
95b5c44
Fix types and webpack config
s-yadav Mar 12, 2022
798f165
Added numeric format utils
s-yadav Feb 27, 2022
bcfacb1
Create sub modules [WIP]
s-yadav Mar 12, 2022
0307dfb
Added format and remove format methods for pattern and numeric numbers
s-yadav Mar 13, 2022
72cf9d5
WIP Sub components
s-yadav Mar 13, 2022
a8278f1
Broken the NumberFormat to primitives and NumericFormat and PatternFo…
s-yadav Apr 3, 2022
f9d7914
Fix typings
s-yadav May 1, 2022
dd7fe3b
Add modular imports
s-yadav May 2, 2022
63b5890
Fix build
s-yadav May 15, 2022
2472709
chore: Add documentation base framework
nikhil-varma Apr 25, 2022
0e32c0d
chore: Add base pages
nikhil-varma Apr 25, 2022
35258cc
chore: Add base structure and props
nikhil-varma May 21, 2022
3c30b33
fix: Change iframe to team workspace
nikhil-varma May 21, 2022
8bbd463
fix: Change a few descriptions
nikhil-varma Jun 5, 2022
50d49d9
fix: Add documentation for few props
nikhil-varma Jun 26, 2022
299d132
fix: Fix formatting & correct document
nikhil-varma Jun 26, 2022
8964474
fix: Add props to Numeric & Pattern folders
nikhil-varma Jun 26, 2022
56afdd5
fix: Fix intro page
nikhil-varma Jun 26, 2022
1ad3421
fix: Fix documentation examples
nikhil-varma Jul 19, 2022
446e217
fix: Add missing title for format pro
nikhil-varma Jul 19, 2022
6d4eed1
fix: Add patternChar documentation
nikhil-varma Jul 19, 2022
0eeeb6b
Move common props to props section and add link backs, plus few docum…
s-yadav Jul 20, 2022
b455b5b
Customization doc WIP
s-yadav Jul 20, 2022
5664021
fix: Add search capability
nikhil-varma Aug 7, 2022
1c50e3a
Add customization doc
s-yadav Aug 7, 2022
030e538
Update docs
s-yadav Sep 4, 2022
da33977
Exclude children to be passed on react-number-format
s-yadav Sep 4, 2022
fd042fb
Setup doc publish pipeline
s-yadav Sep 4, 2022
dc22e44
Update migration guide
s-yadav Sep 4, 2022
93ee96f
Fix v4 docs
s-yadav Sep 4, 2022
eb21383
Fixed doc and types
s-yadav Sep 4, 2022
f910325
- Fix docs
s-yadav Sep 4, 2022
c830c90
Fix types.
s-yadav Sep 4, 2022
cbfda1c
fix: Fix documentation style (#665)
nikhil-varma Sep 5, 2022
9ea58fd
fix: Fix test case
nikhil-varma Sep 5, 2022
05174f2
Link to v4 docs
s-yadav Sep 6, 2022
ea4f749
Have types in package distribution
s-yadav Sep 8, 2022
d21c1c2
Dummy version bump
s-yadav Sep 8, 2022
f1d6696
Fixed bugs #669, #670
s-yadav Sep 18, 2022
f2814f5
Fix #673
s-yadav Sep 25, 2022
c2448ff
Fix caret position bugs
s-yadav Sep 25, 2022
1d7a3c6
Release v5 🎉
s-yadav Sep 25, 2022
c123a16
Update doc related to ref
s-yadav Sep 25, 2022
9388ce4
Fixed doc
s-yadav Sep 25, 2022
02f232d
Fix typo
s-yadav Sep 25, 2022
a75810f
add thousand value for thousandsGroupStyle property
louismariegaborit Sep 30, 2022
f582de6
- Export additional types required for extending. #678
s-yadav Oct 1, 2022
40e5bab
- Forward all the props from usePatternFormat and useNumericFormat hooks
s-yadav Oct 1, 2022
0dfb453
Version upgrade for bug fixes
s-yadav Oct 1, 2022
aff55be
Add sourceInfo details
nikhil-varma Oct 1, 2022
60b9d3e
Update props.md
nikhil-varma Oct 1, 2022
09154cd
Update numeric_format.md
nikhil-varma Oct 1, 2022
a0174a0
Update documentation/v5/docs/numeric_format.md
s-yadav Oct 2, 2022
5a4d4f0
Update outdated LICENSE year
bunasQ Oct 5, 2022
c4f3935
Fixed #652
s-yadav Oct 22, 2022
f568e38
- Fixed #695
s-yadav Oct 25, 2022
ef700c2
Version bump for bug fixes
s-yadav Oct 25, 2022
3f3c7f3
Use charIsNumber util in patternFormat
s-yadav Oct 25, 2022
813092e
Fix doc
3794 Oct 26, 2022
3b9f993
Remove useless property in doc
3794 Oct 26, 2022
436a5e6
Fixed typo on patternFormatter export. #698
s-yadav Oct 29, 2022
96085a2
Fix cursor position getting reset if isAllowed returns false. #699
s-yadav Oct 29, 2022
65158c2
Version bump for bug fixes
s-yadav Oct 29, 2022
0bda626
Don't call e.persist in case where its not defined #706
s-yadav Nov 19, 2022
3443f1a
Make valueIsNumericString usage more prominent.
s-yadav Dec 12, 2022
72a469e
Mark module as side effect free
topaxi Dec 20, 2022
5f27bbe
Pass type parameter to SyntheticEvent
yukiyokotani Nov 3, 2022
cf0b3ba
Fix #712
s-yadav Jan 9, 2023
29fb422
Fix #711
s-yadav Jan 9, 2023
a91b462
Version upgrade for bug fixes
s-yadav Jan 10, 2023
3fe0ced
spelling
leothorp Jan 12, 2023
f12a7cc
Update props.md
s-yadav Jan 14, 2023
aaa3c4c
package.json - removed duplicated peerDependencies versions
piwysocki Feb 2, 2023
ce43570
Fix for bug 691
s-yadav Oct 25, 2022
b70dee2
- Fix for 691.
s-yadav Mar 5, 2023
b6459d4
Add fixedDecimalScale to numeric format docs
arminbashizade Feb 23, 2023
11af4c5
Update demo link for fixeDecimal scale
s-yadav Mar 5, 2023
9fbb506
avoid 2 times rendering
s-yadav May 1, 2023
af46317
- Optimize rendering, avoid multiple rerender
s-yadav May 7, 2023
2bb335c
- Add test for double rendering fix.
s-yadav May 7, 2023
38235e0
Fix type annotation. #740
s-yadav May 7, 2023
6f9a7e2
Fixed #741 - Thousand and decimal formatting broken while typing when…
s-yadav May 7, 2023
37cd362
Fixed #742 - cursor position getting changed when format props update…
s-yadav May 8, 2023
e9074f3
fix broken test
s-yadav May 8, 2023
55e31e6
- move caret position test to react/testing-util
s-yadav May 10, 2023
922874d
- Fixed #725
s-yadav May 14, 2023
6c5e1a0
Update doc and version bump
s-yadav May 14, 2023
9988c82
Fix doc
s-yadav May 14, 2023
49a0003
- should try to correct the value if old formatted value is provided …
s-yadav May 15, 2023
bc47b78
fix(number_format_base): prevent warnings in SRR when using useLayout…
NicolasMontone May 19, 2023
0351e91
- Fix for prop update not working on StrictMode. Fixed #757
s-yadav May 20, 2023
5ad3694
Fix #775 - update `editUrl` for docusaurus
gregfenton Jul 13, 2023
4d1be71
Mention customization in migration.md
mi-na-bot Jun 26, 2023
1f64f19
Update .gitignore
aashu16 May 25, 2023
fb8cced
Install and configure vitest, update test script
aashu16 May 25, 2023
9626335
Upgrade @tl/react and @tl/user-event
aashu16 May 25, 2023
e0ba05b
Update test_util functions to use tl and vitest
aashu16 May 25, 2023
02b4152
Update input_numeric_format
aashu16 Jun 4, 2023
ece15cd
Update tests in input.spec (WIP)
aashu16 Jun 4, 2023
1cf0453
Update tests in keypress_and_caret (WIP)
aashu16 Jun 4, 2023
5f00fe9
Rename file to input_numeric_format.spec.jsx
aashu16 Jun 28, 2023
4e26d9a
Convert more tests in input.spec.jsx
aashu16 Jun 28, 2023
60b347d
Add missing dependencies
aashu16 Jun 28, 2023
6c88127
Use 'renderHook' from @testing-library/react
aashu16 Jun 29, 2023
b36deec
Add alternatives for tests manipulating state
aashu16 Jun 29, 2023
14dc8c8
Update some of the tests using mocks
aashu16 Jun 29, 2023
d7dbf17
Update remaining tests in input.spec
aashu16 Jul 2, 2023
f30ace6
Change keypress_and_caret.spec file type - js to jsx
aashu16 Jul 2, 2023
5912b0f
Update tests in keypress_and_caret.spec
aashu16 Jul 2, 2023
028b0fb
Update simulateFocusEvent function
aashu16 Jul 2, 2023
e1bb4e4
Upgrade vitest
aashu16 Jul 3, 2023
0194425
Update more tests in keypress_and_caret
aashu16 Jul 3, 2023
a0698ac
Change file type - js to jsx
aashu16 Jul 3, 2023
cf41347
Update tests in format_as_text.spec
aashu16 Jul 3, 2023
ff6f7fc
Add data-testid attribute in `displayText` span
aashu16 Jul 3, 2023
1e03f76
Remove karma, enzyme from dependencies
aashu16 Jul 16, 2023
ce23016
[docs] Typo fixes and wording clarifications
gregfenton Jul 13, 2023
30e6537
Update README.md
gregfenton Jul 13, 2023
29cc1d2
Doc update
s-yadav Jul 29, 2023
651faa5
Merge branch 'master' into dev
s-yadav Aug 5, 2023
1d1171f
- Update readme for linking the documentation in better way.
s-yadav Aug 5, 2023
e502b2c
- Fix #774
s-yadav Aug 13, 2023
9e0fd53
Version upgrade for release.
s-yadav Aug 13, 2023
1100ad7
Add comment on doc to not use customInput as render prop.
s-yadav Aug 13, 2023
5565aa8
Add note for minValue and maxValue
s-yadav Aug 13, 2023
424c750
- Fix infinite rerender when values.value is used valueIsNumericStrin…
s-yadav Sep 3, 2023
dc9a0c8
- Fix for delete of decimalSeparator happening when fixeDecimalScale …
s-yadav Sep 3, 2023
ec2f10f
Release for bug fix
s-yadav Sep 3, 2023
cac8b99
Add example for custom negation format
s-yadav Sep 3, 2023
71b318d
- Fix example of custom negation format.
s-yadav Sep 4, 2023
825c87d
Merge branch 'master' into dev
aashu16 Sep 9, 2023
e2179f9
Add IBAN input field customization example
Sep 14, 2023
d0c8814
tsconfig: Add `test/library/utils` to `include`
aashu16 Sep 9, 2023
06de10f
Add tests for applyThousandSeparator
aashu16 Sep 9, 2023
c8389c4
Add tests for roundToPrecision
aashu16 Sep 9, 2023
a2ebb9f
Update and move tests for toNumericString
aashu16 Sep 9, 2023
66c5df2
Add tests for splitDecimal
aashu16 Sep 9, 2023
9e82f15
Add tests for limitToScale
aashu16 Sep 9, 2023
6cd067d
Add tests for fixLeadingZero
aashu16 Sep 9, 2023
56e1685
Add tests for findChangedIndex
aashu16 Sep 9, 2023
f71cc8d
Add tests for findChangeRange
aashu16 Sep 9, 2023
a90243d
Add tests for numeric_format's getCaretBoundary
aashu16 Sep 9, 2023
9977919
Add tests for getCaretPosInBoundary
aashu16 Sep 9, 2023
0b6b90b
Add tests for getCaretPosition
aashu16 Sep 9, 2023
1f53d49
Update vite(st) config to include ts files
aashu16 Sep 10, 2023
85c496a
Extract shared types for table driven unit testing
aashu16 Sep 10, 2023
d0b1b4c
Add tests for PatternFormat's getCaretBoundary
aashu16 Oct 19, 2023
a122e06
Update util tests to use shared common types
aashu16 Oct 19, 2023
5a2dfa6
Rename js files to ts in test/library/utils
aashu16 Oct 20, 2023
0a09aff
Update remaining test files to use shared types
aashu16 Oct 20, 2023
ad85c02
fix: pass currentTarget to onFocus
csantos1113 Nov 23, 2023
4450eea
fix: setCaretTimeout check
csantos1113 Nov 22, 2023
30461f7
Add spec for current target being present on onFocus event.
s-yadav Feb 25, 2024
fe3db3c
- Add test case for #814
s-yadav Feb 25, 2024
0a2018e
refactor: clean up updateValueAndCaretPosition
csantos1113 Nov 22, 2023
d441c95
- Fix #817, wrong caret position getting set when . is pressed on emp…
s-yadav Feb 25, 2024
69ad995
Release for bug fixes
s-yadav Feb 25, 2024
2910b57
- Add documentation link on package.json #810
s-yadav Feb 25, 2024
dd09693
Remove data-testid attr in renderText span
aashu16 Feb 29, 2024
bd88d0b
Remove dangling assignment and reformat
aashu16 Feb 29, 2024
f9bfbba
Update to migrate test added in 30461f7
aashu16 Feb 29, 2024
a2054dc
Update testing dependencies
aashu16 Mar 1, 2024
e051e34
Update tests to use simulateKeyInput
aashu16 Mar 1, 2024
7fc8288
Remove usage of removed helper function
aashu16 Mar 2, 2024
789c992
Remove redundant tests
aashu16 Mar 2, 2024
523cd7c
Unskip tests and remove todos
aashu16 Mar 2, 2024
c258860
Replace wrapper components with rerendering
aashu16 Mar 2, 2024
bf0c31a
Fix import in test_util
aashu16 Mar 2, 2024
772a432
Simplify and improve simulateKeyInput helper
aashu16 Mar 2, 2024
6046396
Remove more skipped tests
aashu16 Mar 2, 2024
0076fd0
Replace instance of user.type with simulateKeyInput
aashu16 Mar 2, 2024
4ad5222
Resolve remaining comments from #779
aashu16 Mar 3, 2024
f93405c
Fix missing import and incorrect function call
aashu16 Mar 3, 2024
7f5abad
Merge updates from 'master'
aashu16 Mar 3, 2024
e304586
Remove some refs to remnants of enzyme based tests
aashu16 Mar 4, 2024
9cc4a99
Add mock 'isAllowed' implementation in test
aashu16 Mar 4, 2024
68cb95b
Update test to wait for onFocus cb to be called
aashu16 Mar 4, 2024
656023e
Add options parameter to simulateKeyInput
aashu16 Mar 5, 2024
ae2e50f
Fix more tests in keypress_and_caret
aashu16 Mar 5, 2024
8254a3a
Add simulatePaste function and update tests
aashu16 Mar 5, 2024
d83cd01
Remove superfluous imports and todo comments
aashu16 Mar 5, 2024
561cd12
Uncomment tests in input_numeric_format
aashu16 Mar 6, 2024
5a4030c
Fix caret position not getting corrected when there is selection in t…
s-yadav Mar 17, 2024
aa7ef41
Merge branch 'master' into dev
s-yadav Mar 24, 2024
705ddc2
Fix incorrect test
s-yadav Mar 24, 2024
0ed4d59
Add selectionStart and selectionEnd on simulatePaste method
s-yadav Mar 24, 2024
440ab3b
Replace existing assertion with a positive one
aashu16 Mar 15, 2024
8512532
Simplify simulateKeyInput function
aashu16 Mar 15, 2024
58332a9
Remove clearInput from a test
aashu16 Mar 15, 2024
6739eca
Add more helper functions to simulate user actions
aashu16 Mar 16, 2024
c3668f1
Update tsconfig.json
aashu16 Mar 16, 2024
6dd234f
Add simulateTripleClick function and fix test
aashu16 Mar 25, 2024
9fb4bb9
Update simulatePaste internals and update test
aashu16 Mar 25, 2024
7f32707
Add helper to click on input to get focus
aashu16 Mar 25, 2024
cd3feb8
Remove duplicate test
aashu16 Mar 25, 2024
7187a07
Update test to use fake timers
aashu16 Apr 5, 2024
6645690
Skip failing tests, correct assertion
aashu16 Apr 6, 2024
708dd27
Update simulateKeyInput when chars are selected
aashu16 Apr 6, 2024
56ced22
Temporarily remove failing fix-leading-zero tests
aashu16 Apr 6, 2024
9f23988
Update vite config to not include `test/types` dir
aashu16 Apr 6, 2024
280ea0b
- Fix thousandSeparator missing from documentation
ahmad-shoja Apr 16, 2024
91e8fd2
Update CI action
aashu16 Apr 6, 2024
e7b1af4
fix build
s-yadav May 11, 2024
8c0b056
Merge branch 'master' into dev
s-yadav May 11, 2024
a44af92
- Update test dependencies
s-yadav May 12, 2024
824bcd9
Remove unused variables from test files.
s-yadav May 12, 2024
ca97625
Remove .only from test.
s-yadav May 12, 2024
5edf305
Merge pull request #779 from s-yadav/dev
s-yadav May 12, 2024
c866092
fix: `onValueChange` not called for values with 3 or less characters
rfviolato May 17, 2024
38ce3ba
Merge pull request #842 from rfviolato/master
s-yadav May 25, 2024
dbcd429
- Fix key press after selection over masked area.
s-yadav Jun 1, 2024
7a373b9
Instead of blacklist use whitelist for including in npm.
s-yadav Jun 1, 2024
5db9496
- handle caret position when float numbers are used with decimals #851
s-yadav Aug 25, 2024
8a9e2d6
- Remove isCharacterSame as valid prop from NumericFormat and Pattern…
s-yadav Aug 25, 2024
901816b
- Remove prop-types as dependency as they are no longer used. #849
s-yadav Aug 25, 2024
a1fab6d
Version upgrade for bug fixes
s-yadav Aug 25, 2024
763c894
fix: sort persian numbers
mhl98 Aug 30, 2024
69a5ed7
Merge pull request #854 from mhl98/master
s-yadav Sep 5, 2024
a163b7a
- Fixed #855.
s-yadav Sep 7, 2024
7184b42
Fix card expiry example.
s-yadav Sep 7, 2024
3058c08
Version upgrade for bug fix
s-yadav Sep 7, 2024
9d63b42
doc: fix spelling of `PatternFormat`
ssiyad Dec 4, 2024
c45d196
chore(react-version): upgrade peer react version to include react 19
holgergp Dec 8, 2024
57d2bef
Merge pull request #871 from holgergp/react19
s-yadav Dec 25, 2024
e82deaa
Merge pull request #868 from ssiyad/master
s-yadav Dec 25, 2024
8de2517
Version upgrade to support react 19 as peer dependency.
s-yadav Dec 25, 2024
e96b0be
fix: add explicit return types
justinbup Jan 13, 2025
c7b701c
Merge pull request #876 from justinbup/add-explicit-return-types
s-yadav Apr 12, 2025
faf65f2
Version upgrade for type fix to support react 19.
s-yadav Apr 12, 2025
9c9f571
update to latest and fix
alexcheuk Aug 11, 2025
c729335
Merge branch 'master' into deps-fix
alexcheuk Aug 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
"browser": true,
"es6": true
},
"extends": ["prettier"],
"plugins": [
"react", //on react based application
"import",
"import"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
Expand All @@ -24,7 +32,7 @@
"superInFunctions": true,
"templateStrings": true
},
"parser": "babel-eslint",
"parser": "@typescript-eslint/parser",
"rules": {
/*** best practices ***/

Expand Down
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#### Describe the issue and the actual behavior

#### Describe the expected behavior

#### Provide a CodeSandbox link illustrating the issue

#### Provide steps to reproduce this issue

#### Please check the browsers where the issue is seen
- [ ] Chrome
- [ ] Chrome (Android)
- [ ] Safari (OSX)
- [ ] Safari (iOS)
- [ ] Firefox
- [ ] Firefox (Android)
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#### Describe the issue/change

#### Add CodeSandbox link to illustrate the issue (If applicable)

#### Describe specs for failing cases if this is an issue (If applicable)

#### Describe the changes proposed/implemented in this PR

#### Link Github issue if this PR solved an existing issue

#### Example usage (If applicable)

#### Screenshot (If applicable)

#### Please check which browsers were used for testing
- [ ] Chrome
- [ ] Chrome (Android)
- [ ] Safari (OSX)
- [ ] Safari (iOS)
- [ ] Firefox
- [ ] Firefox (Android)
36 changes: 36 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CD

on:
push:
tags:
- '*'

jobs:
publish:
name: Package publish using node ${{ matrix.node }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [14]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org
- name: install
run: yarn
- name: yarn lint
run: yarn run lint
- name: build
run: yarn run build
- name: release
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: master
pull_request:
branches: master

jobs:
test:
name: Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [20]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org

- name: Install
run: yarn install --frozen-lockfile

- name: Lint
run: yarn run lint

- name: Test
run: yarn test-build
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
node_modules/**/*

.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

*.swp
.DS_Store
*.log
.cache
tmp

dist
/types/**/*
24 changes: 0 additions & 24 deletions .npmignore

This file was deleted.

5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
./dist
./flow-typed
./lib
./node_modules
./github
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"printWidth": 100,
"arrowParens": "always",
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"requirePragma": false,
"proseWrap": "preserve",
"trailingComma": "all"
}
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
Loading