Skip to content

Commit

Permalink
feat: initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrees committed Jun 15, 2022
1 parent 859ba7f commit 7c2569a
Show file tree
Hide file tree
Showing 461 changed files with 40,333 additions and 4,494 deletions.
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.eslintrc.js
commitlint.config.js
lib
lint-staged.config.js
node_modules
test/fixtures
coverage
babel
*.js
v2-incompatible.js.template
42 changes: 42 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
env: {
browser: true,
node: false,
},
extends: ['plugin:prettier/recommended'],
overrides: [
{
files: ['*.{ts,tsx}'],
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
},
plugins: ['prettier'],
rules: {
'@typescript-eslint/explicit-function-return-type': 0,
'no-shadow': 'off',
'no-await-in-loop': 'off',
'no-console': 'off',
complexity: 'off',
'id-length': 'off',
'max-depth': 'off',
'no-sync': 'off',
strict: 'off',
},

settings: {
ignorePatterns: ['test/fixtures/**'],
'import/ignore': ['\\.css$', '.*node_modules.*', '.*:.*'],
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
}
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
platform: [ubuntu-latest, macos-latest]
node-version:
- 16
- 14
- 12
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm test
19 changes: 16 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,24 @@ jspm_packages

# Lockfiles
/yarn.lock
/package-lock.json

# Cache
.cache

# Fixtures for tests, but only for the `build` command -
# we expect `verify` to have precompiled results to verify
## TypeScript out
lib/

# IntelliJ
.idea/
*.iml

## Parcel
.parcel-cache

# Fixtures for tests that output files that will be verified
test/fixtures/build/lib
/test/fixtures/init/empty/*
!test/fixtures/init/empty/.gitkeep



4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit ""
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"printWidth": 100,
"bracketSpacing": false,
"singleQuote": true
}
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The MIT License (MIT)

Copyright (c) 2020 Espen Hovlandsdal
Copyright (c) 2022 Sanity.io

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

0 comments on commit 7c2569a

Please sign in to comment.