Skip to content

Commit 97f908c

Browse files
committed
fix: use div for form validation
1 parent 4a66ade commit 97f908c

File tree

452 files changed

+3001
-7701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

452 files changed

+3001
-7701
lines changed

.circleci/config.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
version: 2
66

77
aliases:
8-
- &working_directory
9-
~/repo
8+
- &working_directory ~/repo
109

1110
- &restore_cache
1211
keys:
13-
- npm-dependencies-v4-{{ checksum "package.json" }}
14-
# fallback to using the latest cache if no exact match is found
15-
- npm-dependencies-v4-
12+
- npm-dependencies-v4-{{ checksum "package.json" }}
13+
# fallback to using the latest cache if no exact match is found
14+
- npm-dependencies-v4-
1615

1716
- &npm_install
1817
name: Install Packages
@@ -68,7 +67,6 @@ jobs:
6867
paths:
6968
- dist
7069

71-
7270
check-gatsby-ssr:
7371
<<: *defaults
7472

@@ -87,8 +85,8 @@ jobs:
8785
- run:
8886
name: Bind global package folder to local user
8987
command: |
90-
mkdir ~/.npm-packages
91-
npm config set prefix ~/.npm-packages
88+
mkdir ~/.npm-packages
89+
npm config set prefix ~/.npm-packages
9290
- run:
9391
name: Link the toolkit
9492
command: yarn link
@@ -120,7 +118,6 @@ jobs:
120118
yarn storybook:build
121119
yarn storybook:deploy
122120
123-
124121
npm-publish:
125122
<<: *defaults
126123

@@ -151,8 +148,8 @@ workflows:
151148
filters:
152149
branches:
153150
ignore:
154-
- gh-pages
155-
- next
151+
- gh-pages
152+
- next
156153
tags:
157154
only: /.*/
158155

.eslintrc.js

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
module.exports = {
2-
"extends": [
3-
"react-app",
4-
"prettier/@typescript-eslint",
5-
"plugin:prettier/recommended",
6-
],
7-
"overrides": [
8-
{
9-
"files": ['*.mdx'],
10-
"extends": 'plugin:mdx/recommended',
11-
"settings": {
12-
"mdx/code-blocks": false,
2+
extends: ['react-app', 'prettier/@typescript-eslint', 'plugin:prettier/recommended'],
3+
overrides: [
4+
{
5+
files: ['*.mdx'],
6+
extends: 'plugin:mdx/recommended',
7+
settings: {
8+
'mdx/code-blocks': false
139
}
1410
}
1511
],
16-
"settings": {
17-
"react": {
18-
"version": "detect"
12+
settings: {
13+
react: {
14+
version: 'detect'
1915
}
2016
}
21-
}
17+
};

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: "[BUG]"
4+
title: '[BUG]'
55
labels: bug
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,9 +24,10 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Other Required Information (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3031

3132
**Additional context**
3233
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: "[FEATURE]"
4+
title: '[FEATURE]'
55
labels: enhancement
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@
66
Fixes #
77

88
#### PR Checklist
9+
910
<!-- To Mark a Checklist box, put "x" inside the square brackets. For Example - [ ] becomes [x] -->
11+
1012
- [ ] My branch is up-to-date with the Upstream `master` branch.
1113
- [ ] The unit tests pass locally with my changes (if applicable).
1214
- [ ] I have added tests that prove my fix is effective or that my feature works (if applicable).
1315
- [ ] I have added necessary documentation (if appropriate).
1416

1517
#### Short description of what this resolves:
16-
<!-- Please add a short description of what this PR resolves to be clear for the community. -->
1718

19+
<!-- Please add a short description of what this PR resolves to be clear for the community. -->
1820

1921
#### Changes proposed in this Pull Request:
20-
<!-- You can use a few bullet points to describe some implementation changes proposed. For Example - feat: adding navbar component -->
21-
-
22+
23+
## <!-- You can use a few bullet points to describe some implementation changes proposed. For Example - feat: adding navbar component -->

.github/workflows/check-tree-shakeability.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Check tree-shakeability
2-
on: [ pull_request ]
2+
on: [pull_request]
33
jobs:
44
build:
55
runs-on: ubuntu-latest

.github/workflows/chromatic.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414
with:
15-
fetch-depth: 0
15+
fetch-depth: 0
1616
- name: Setup Node.js with Yarn cache
1717
uses: actions/setup-node@v2
1818
with:
@@ -21,12 +21,12 @@ jobs:
2121

2222
- name: Install dependencies
2323
run: yarn --frozen-lockfile
24-
24+
2525
- name: Publish to Chromatic
2626
uses: chromaui/action@v1
27-
27+
2828
with:
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
3131
exitZeroOnChanges: true
32-
skip: 'dependabot/**'
32+
skip: 'dependabot/**'

.github/workflows/ci.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
name: Lint, Test & Coverage
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [master]
55
pull_request:
6-
branches: [ master ]
6+
branches: [master]
77

88
jobs:
99
coverage:
1010
runs-on: ubuntu-latest
1111
concurrency: ci-test-${{ github.ref }}
1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: Setup Node.js with Yarn cache
15-
uses: actions/setup-node@v2
16-
with:
17-
node-version: '14'
18-
cache: 'yarn'
13+
- uses: actions/checkout@v2
14+
- name: Setup Node.js with Yarn cache
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: '14'
18+
cache: 'yarn'
1919

20-
- name: Install dependencies
21-
run: yarn install --frozen-lockfile
22-
- name: Lint
23-
run: yarn lint
24-
- name: Test
25-
run: yarn test:ci
20+
- name: Install dependencies
21+
run: yarn install --frozen-lockfile
22+
- name: Lint
23+
run: yarn lint
24+
- name: Test
25+
run: yarn test:ci
2626

27-
- name: Upload coverage
28-
uses: codecov/codecov-action@v2
29-
with:
30-
token: ${{ secrets.CODECOV_TOKEN }}
31-
flags: unittests
27+
- name: Upload coverage
28+
uses: codecov/codecov-action@v2
29+
with:
30+
token: ${{ secrets.CODECOV_TOKEN }}
31+
flags: unittests

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"bracketSpacing": true,
77
"jsxBracketSameLine": false,
88
"arrowParens": "always",
9-
"trailingComma": "none"
9+
"trailingComma": "none",
10+
"printWidth": 120
1011
}

.storybook/main.js

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const CircularDependencyPlugin = require('circular-dependency-plugin')
1+
const CircularDependencyPlugin = require('circular-dependency-plugin');
22

33
module.exports = {
44
core: {
5-
builder: 'webpack5',
5+
builder: 'webpack5'
66
},
77
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx|mdx)'],
88
addons: [
@@ -19,32 +19,31 @@ module.exports = {
1919
reactDocgenTypescriptOptions: {
2020
compilerOptions: {
2121
allowSyntheticDefaultImports: false,
22-
esModuleInterop: false,
23-
},
22+
esModuleInterop: false
23+
}
2424
}
2525
},
2626
webpackFinal: async (config, { configType }) => {
27-
const assetRule = config.module.rules.find(({ test }) => test && test.test(".svg"));
27+
const assetRule = config.module.rules.find(({ test }) => test && test.test('.svg'));
2828
// exclude svg from the default storybook file-loader
2929
assetRule.exclude = /\.svg$/;
3030

3131
// add svgr loader to handle svgs
3232
config.module.rules.push({
3333
test: /\.svg$/,
34-
use: ['url-loader'],
34+
use: ['url-loader']
3535
});
3636

37-
config.plugins.push(new CircularDependencyPlugin({
38-
// exclude detection of files based on a RegExp
39-
exclude: /node_modules/,
40-
// add errors to webpack instead of warnings
41-
failOnError: true,
42-
}));
37+
config.plugins.push(
38+
new CircularDependencyPlugin({
39+
// exclude detection of files based on a RegExp
40+
exclude: /node_modules/,
41+
// add errors to webpack instead of warnings
42+
failOnError: true
43+
})
44+
);
4345

4446
return config;
4547
},
46-
staticDirs: [
47-
'../static',
48-
{ from: '../assets', to: '/' },
49-
],
48+
staticDirs: ['../static', { from: '../assets', to: '/' }]
5049
};

0 commit comments

Comments
 (0)