Skip to content

Commit

Permalink
feat: v2.0.0 (#97)
Browse files Browse the repository at this point in the history
Co-authored-by: Angelo Ashmore <[email protected]>
Co-authored-by: Nick DeJesus <[email protected]>
Co-authored-by: lihbr <[email protected]>
  • Loading branch information
3 people authored Dec 3, 2021
1 parent 25f2d4f commit 408df03
Show file tree
Hide file tree
Showing 100 changed files with 27,658 additions and 8,806 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# editorconfig.org
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
40 changes: 40 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# .gitignore copy

# custom
dist
examples/**/package-lock.json

# os
.DS_Store
._*

# node
logs
*.log
node_modules

# yarn
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.yarn-integrity
yarn.lock

# npm
npm-debug.log*

# tests
coverage
.eslintcache
.nyc_output

# .env
.env
.env.test
.env*.local

# vscode
.vscode/*
!.vscode/tasks.json
!.vscode/launch.json
*.code-workspace
44 changes: 44 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: 2020,
},
settings: {
react: {
version: "detect",
},
},
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
],
plugins: ["eslint-plugin-tsdoc"],
rules: {
"no-console": ["warn", { allow: ["info", "warn", "error"] }],
"no-debugger": "warn",
"no-undef": "off",
curly: "error",
"prefer-const": "error",
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: "*", next: "return" },
],
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-var-requires": "off",
"tsdoc/syntax": "warn",
},
};
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# asserts everything is text
* text eol=lf

# treats lock files as binaries to prevent merge headache
package-lock.json -diff
yarn.lock -diff

# treats assets as binaries
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
60 changes: 60 additions & 0 deletions .github/prismic-oss-ecosystem.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: ci

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

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [14]

steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Checkout
uses: actions/checkout@master

- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Lint
run: npm run lint

- name: Unit
run: npm run unit

- name: Build
run: npm run build

- name: Coverage
uses: codecov/codecov-action@v1
21 changes: 0 additions & 21 deletions .github/workflows/preview.yml

This file was deleted.

Loading

0 comments on commit 408df03

Please sign in to comment.