Skip to content

Commit

Permalink
Merge pull request #185 from CaptainFact/staging
Browse files Browse the repository at this point in the history
Release 2.0.0
  • Loading branch information
Betree authored Mar 30, 2023
2 parents dc09420 + 903b8ae commit 313e0a2
Show file tree
Hide file tree
Showing 94 changed files with 31,604 additions and 19,439 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"presets": ["es2015", "stage-0", "react"],
"plugins": ["add-module-exports", "transform-decorators-legacy", "transform-runtime"]
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
30 changes: 30 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react'],
rules: {
'react/prop-types': 'off',
},
globals: {
module: 'readonly',
CF_VERSION: 'readonly',
},
overrides: [
{
files: ['*.spec.js'],
globals: {
test: 'readonly',
snapshot: 'readonly',
shallow: 'readonly',
tMock: 'readonly',
},
},
],
}
113 changes: 0 additions & 113 deletions .eslintrc.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: monthly
time: "10:00"
open-pull-requests-limit: 30
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on: [push]

jobs:
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm install --prefer-offline --no-audit
- name: Run tests
run: npm run coverage
- name: Post tests coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/lcov.info
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.14.0
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
npm-debug.log
.idea
dist/*
!dist/test
!dist/index.html
!dist/robots.txt
coverage
/dev/__db_data
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 313e0a2

Please sign in to comment.