Skip to content

Commit 7c2569a

Browse files
committed
feat: initial version
1 parent 859ba7f commit 7c2569a

File tree

461 files changed

+40333
-4494
lines changed

Some content is hidden

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

461 files changed

+40333
-4494
lines changed

.eslintignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.eslintrc.js
2+
commitlint.config.js
3+
lib
4+
lint-staged.config.js
5+
node_modules
6+
test/fixtures
7+
coverage
8+
babel
9+
*.js
10+
v2-incompatible.js.template

.eslintrc.js

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
node: false,
5+
},
6+
extends: ['plugin:prettier/recommended'],
7+
overrides: [
8+
{
9+
files: ['*.{ts,tsx}'],
10+
},
11+
],
12+
parser: '@typescript-eslint/parser',
13+
parserOptions: {
14+
ecmaFeatures: {
15+
jsx: true,
16+
},
17+
project: './tsconfig.json',
18+
},
19+
plugins: ['prettier'],
20+
rules: {
21+
'@typescript-eslint/explicit-function-return-type': 0,
22+
'no-shadow': 'off',
23+
'no-await-in-loop': 'off',
24+
'no-console': 'off',
25+
complexity: 'off',
26+
'id-length': 'off',
27+
'max-depth': 'off',
28+
'no-sync': 'off',
29+
strict: 'off',
30+
},
31+
32+
settings: {
33+
ignorePatterns: ['test/fixtures/**'],
34+
'import/ignore': ['\\.css$', '.*node_modules.*', '.*:.*'],
35+
'import/resolver': {
36+
node: {
37+
paths: ['src'],
38+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
39+
},
40+
},
41+
},
42+
}

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
platform: [ubuntu-latest, macos-latest, windows-latest]
12+
platform: [ubuntu-latest, macos-latest]
1313
node-version:
1414
- 16
15-
- 14
16-
- 12
1715
steps:
1816
- uses: actions/checkout@v2
1917
- uses: actions/setup-node@v1
2018
with:
2119
node-version: ${{ matrix.node-version }}
2220
- run: npm install
21+
- run: npm run lint
22+
- run: npm run build
2323
- run: npm test

.gitignore

+16-3
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,24 @@ jspm_packages
4444

4545
# Lockfiles
4646
/yarn.lock
47-
/package-lock.json
4847

4948
# Cache
5049
.cache
5150

52-
# Fixtures for tests, but only for the `build` command -
53-
# we expect `verify` to have precompiled results to verify
51+
## TypeScript out
52+
lib/
53+
54+
# IntelliJ
55+
.idea/
56+
*.iml
57+
58+
## Parcel
59+
.parcel-cache
60+
61+
# Fixtures for tests that output files that will be verified
5462
test/fixtures/build/lib
63+
/test/fixtures/init/empty/*
64+
!test/fixtures/init/empty/.gitkeep
65+
66+
67+

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ""

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": false,
3+
"printWidth": 100,
4+
"bracketSpacing": false,
5+
"singleQuote": true
6+
}

LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

33
Copyright (c) 2020 Espen Hovlandsdal
4+
Copyright (c) 2022 Sanity.io
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)