Skip to content

Commit

Permalink
Setup (#1)
Browse files Browse the repository at this point in the history
* Setup

* Some cleanup

* Tweaks

* Tweaks

* Tweak

* Tweaks

* Tweaks

* Update readme

* Fix

* Add /react export

* Update readme

* Tweaks

* Tweaks

* Add Next support

* Address some feedback

* Add react hooks support

* Add jsx-a11y support

* Add doc

* Add no-undef

* Update README

* Add catch all

* Rename test to lint
  • Loading branch information
PauloMFJ authored Jan 19, 2023
1 parent 6b6d071 commit 1cb1c8b
Show file tree
Hide file tree
Showing 28 changed files with 4,969 additions and 15,849 deletions.
3 changes: 0 additions & 3 deletions .babelrc.json

This file was deleted.

14 changes: 1 addition & 13 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "unused-imports", "simple-import-sort"],
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"react/react-in-jsx-scope": "off",
"unused-imports/no-unused-imports": "error",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error"
}
"extends": "./index.js"
}
8 changes: 3 additions & 5 deletions .github/workflows/test.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Test
name: Lint

on:
pull_request:
branches:
- main

jobs:
test:
lint:
runs-on: ubuntu-latest

strategy:
Expand All @@ -21,11 +21,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: npm install, build, and test
- name: npm install and lint
run: |
npm ci
npm run build
npm run lint
npm run test
env:
CI: true
8 changes: 3 additions & 5 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [created]

jobs:
test:
lint:
runs-on: ubuntu-latest

strategy:
Expand All @@ -20,17 +20,15 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: npm install, build, and test
- name: npm install and lint
run: |
npm ci
npm run build
npm run lint
npm run test
env:
CI: true

publish-npm:
needs: test
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# Dependencies
/node_modules

# Build
/dist

# Misc
.DS_Store

# Test
/coverage
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Package
package-lock.json

# Build
/dist
22 changes: 0 additions & 22 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,6 @@ npm ci

Then implement your changes!

## Testing

All tests are performed using `jest` on Node v16 and v18. For a PR to be considered all these environments need to pass. Testing is automated using GitHu Actions CI.

To run tests locally, run:

```bash
npm run test
```

To watch for changes while developing the tests, run:

```bash
npm run test:watch
```

To get a coverage report, run:

```bash
npm run test:coverage
```

## Submitting changes

Please open a pull request with a clear overview of what you've changed. When you send a pull request, please make sure you've covered off all the points in the predefined template, and any other relevant information.
Expand Down
128 changes: 0 additions & 128 deletions GETTING_STARTED.md

This file was deleted.

Loading

0 comments on commit 1cb1c8b

Please sign in to comment.