Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"loose": true
}
],
"@babel/preset-typescript",
"@babel/preset-react"
]
}
5 changes: 0 additions & 5 deletions .codesandbox/ci.json

This file was deleted.

12 changes: 12 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules/
dist/
lib/
coverage/
build/
docs/
public/
*.min.js
*.bundle.js
.vscode/
.idea/

33 changes: 33 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["@typescript-eslint", "react", "react-hooks", "jsx-a11y", "prettier"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"rules": {
"prettier/prettier": "error",
"react/prop-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"jest": true
}
}
17 changes: 13 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 18
- run: npm ci
- run: npm test --maxWorkers=2 --maxConcurrent=2
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10
- run: pnpm install --frozen-lockfile
- run: pnpm ts-check
- run: pnpm lint
- run: pnpm test --maxWorkers=2 --maxConcurrent=2

publish-npm:
needs: build
Expand All @@ -28,8 +34,11 @@ jobs:
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test --maxWorkers=2 --maxConcurrent=2
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10
- run: pnpm install --frozen-lockfile
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
12 changes: 9 additions & 3 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
- run: npm test --maxWorkers=2 --maxConcurrent=2
node-version: 23
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10
- run: pnpm install --frozen-lockfile
- run: pnpm ts-check
- run: pnpm lint
- run: pnpm test -- --maxWorkers=2 --maxConcurrent=2
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
node_modules/
dist/
lib/
coverage/
build/
public/
*.min.js
*.bundle.js
.vscode/
.idea/
coverage/
coverage/**/*
coverage/*

11 changes: 7 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"singleQuote": true,
"arrowParens": "always",
"printWidth": 100,
"jsxBracketSameLine": true,
"tabWidth": 2,
"useTabs": false,
"tabWidth": 2
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid",
"endOfLine": "lf"
}

35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

Loading