Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Griko Nibras committed Jul 3, 2022
0 parents commit 92611a6
Show file tree
Hide file tree
Showing 48 changed files with 6,577 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: "bug"
assignees: ""
---

## Describe the bug

A clear and concise description of what the bug is.

...

## To Reproduce

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

## Expected behavior

> A clear and concise description of what you expected to happen.
...

## Screenshots

> If applicable, add screenshots to help explain your problem.
...

## Device

> Please complete the following device information.
**Desktop**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

## Additional context

> Add any other context about the problem here.
...
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

## Is your feature request related to a problem? Please describe.

> A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
...

## Describe the solution you'd like

> A clear and concise description of what you want to happen.
...

## Describe alternatives you've considered

> A clear and concise description of any alternative solutions or features you've considered.
...

## Additional context

> Add any other context or screenshots about the feature request here.
...
39 changes: 39 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!-- markdownlint-disable MD014 MD033 MD034 MD036 MD041 -->

## Description

This PR ...

## Checklist

- [ ] I have made sure the upstream branch for this PR is correct
- [ ] I have made sure this PR is ready to merge
- [ ] I have made sure that I have assigned reviewers related to this project

## Changes

- [ ] Added ...
- [ ] Changed ...
- [ ] Removed ...

## Screenshots

...

## Testing

- Open page ...
- Click ...
- Make sure that ...

## Links/References

- ...
- ...
- ...

## Notes

- ...
- ...
- ...
20 changes: 20 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Dependencies

on:
workflow_dispatch:

jobs:
upgrade:
name: Upgrade dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: "yarn"
node-version-file: ".nvmrc"
- run: rm -rf yarn.lock **/node_modules/
- run: yarn install
- uses: EndBug/add-and-commit@v9
with:
message: "chore(deps): upgrade versions"
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint

on:
push:
paths:
- packages/**
- website/**

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: "yarn"
node-version-file: ".nvmrc"
- run: yarn install
- run: yarn lint
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# default ignored directores/files
**/node_modules/
*.log
.DS_Store
.env*
.eslintcache
.turbo/
.vercel/
package-lock.json
tsconfig.tsbuildinfo

# allowed directories/files
!.gitkeep
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"

yarn lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
30 changes: 30 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[graphql]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"css.validate": false,
"eslint.packageManager": "yarn",
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"eslint.workingDirectories": [
{
"!cwd": false,
"pattern": "packages/*"
}
],
"npm.packageManager": "yarn"
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Strangelove Ventures

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
> **🚧 Currently in development, readme and published package coming soon 🚧**
# wadesta

React hooks for Cosmos

- [Installing](#installing)
- [Usage](#usage)
- [Examples](#examples)
- [Development Guide](#development-guide)
- [License](#license)

## Installing

```sh
# using npm
npm install wadesta

# using yarn
yarn add wadesta
```

## Usage

TODO

## Examples

TODO

## Development Guide

TODO

## License

[MIT License, Copyright (c) 2022 Strangelove Ventures](./LICENSE)
44 changes: 44 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "@strangelove-ventures/wadesta",
"version": "0.0.0",
"packageManager": "[email protected]",
"workspaces": [
"packages/*"
],
"scripts": {
"build": "turbo run build",
"deduplicate": "npx yarn-deduplicate && yarn install",
"dev": "turbo run dev",
"lint": "turbo run lint",
"prepare": "husky install",
"prerelease": "yarn build",
"test": "turbo run test",
"website": "yarn workspace example-website"
},
"devDependencies": {
"husky": "^8",
"lint-staged": "^13",
"patch-package": "^6",
"postinstall-postinstall": "^2",
"shx": "^0",
"tsup": "^6",
"turbo": "^1"
},
"eslintConfig": {
"extends": [
"@project/eslint-config"
],
"ignorePatterns": [
"node_modules"
],
"root": true
},
"lint-staged": {
"*.{json,md}": [
"prettier --write"
]
},
"prettier": "@project/prettier-config",
"private": true,
"license": "MIT"
}
68 changes: 68 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// @ts-check

const fs = require("fs");
const path = require("path");

// eslint-disable-next-line no-nested-ternary
const tsConfig = fs.existsSync("tsconfig.json")
? path.resolve("tsconfig.json")
: fs.existsSync("types/tsconfig.json")
? path.resolve("types/tsconfig.json")
: undefined;

/** @type {import("eslint").Linter.Config} */
const eslintConfig = {
env: {
browser: true,
node: true,
},
extends: [
require.resolve("@vercel/style-guide/eslint/_base"),
require.resolve("@vercel/style-guide/eslint/node"),
require.resolve("@vercel/style-guide/eslint/react"),
"plugin:prettier/recommended",
],
plugins: ["simple-import-sort", "unused-imports"],
rules: {
"import/extensions": ["off"],
"import/newline-after-import": ["warn"],
"import/order": ["off"],
"no-console": ["warn"],
"no-unused-vars": ["off"],
"react/jsx-sort-props": ["warn", { reservedFirst: ["key"] }],
"simple-import-sort/exports": ["warn"],
"simple-import-sort/imports": ["warn"],
"sort-imports": ["off"],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{ vars: "all", varsIgnorePattern: "^_", args: "after-used", argsIgnorePattern: "^_" },
],
},
overrides: [
{
files: ["**/*.d.ts", "**/*.ts", "**/*.tsx"],
extends: [require.resolve("@vercel/style-guide/eslint/typescript"), "plugin:prettier/recommended"],
parserOptions: {
project: tsConfig,
},
rules: {
"@typescript-eslint/no-unused-vars": ["off"],
},
},
{
files: ["tsup.config.{js,ts}"],
rules: {
"import/no-default-export": ["off"],
},
},
{
files: ["pages/**/*.{js,jsx,ts,tsx}", "next.config.{js,cjs,mjs}"],
rules: {
"import/no-default-export": ["off"],
},
},
],
};

module.exports = eslintConfig;
Loading

0 comments on commit 92611a6

Please sign in to comment.