Skip to content

Commit

Permalink
remove vite-add tsup and turborepo-fix cyclic dep
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-kaushal committed Aug 26, 2022
1 parent bdd31a6 commit 1deca2d
Show file tree
Hide file tree
Showing 238 changed files with 6,527 additions and 12,084 deletions.
Empty file added .changeset/README.md
Empty file.
10 changes: 10 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"updateInternalDependencies": "patch",
"ignore": ["@jenga/docs"]
}
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
dist
coverage
!.storybook
!.eslintrc.js
!.eslintrc.js
storybook/.storybook/*
87 changes: 69 additions & 18 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,64 @@
module.exports = {
// @ts-check

module.exports = /** @type {import('eslint').Linter.Config} */ ({
extends: [
'prettier',
'react-app',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:storybook/recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'react/boolean-prop-naming': [
'error',
{
rule: '^is[A-Z]([A-Za-z0-9]?)+',
message: 'Boolean props should have `is` prefix',
},
],
'react/display-name': 'error',
'react/prop-types': 'warn',
'react/jsx-sort-props': [
'error',
{
callbacksLast: true,
shorthandFirst: true,
shorthandLast: false,
noSortAlphabetically: true,
reservedFirst: true,
},
],

'import/extensions': 0,
'import/no-unresolved': 0,
'import/no-anonymous-default-export': 0,
'@typescript-eslint/ban-types': 1,
'@typescript-eslint/ban-ts-comment': 1,
'@typescript-eslint/no-empty-function': 0,
'import/no-extraneous-dependencies': 'error',
'import/no-unused-modules': 'error',
'import/order': [
'error',
{
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
'type',
],
'newlines-between': 'always',
},
],

'@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'error',

'react-hooks/exhaustive-deps': 'warn',

'prefer-const': 0,
'comma-dangle': 0,
'no-console': 0,
Expand All @@ -22,19 +69,6 @@ module.exports = {
'no-mixed-operators': 0,
'no-else-return': 0,
'prefer-promise-reject-errors': 0,
'react-hooks/exhaustive-deps': 0,
'max-len': [
'error',
120,
2,
{
ignoreUrls: true,
ignoreComments: true,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
},
overrides: [
{
Expand All @@ -43,5 +77,22 @@ module.exports = {
'@typescript-eslint/no-var-requires': 0,
},
},
{
files: ['*.stories.tsx', '**/storybook/**/*.tsx'],
rules: {
'react/function-component-definition': 0,
'react/boolean-prop-naming': 0,
'react/prop-types': 0,
'react/no-unescaped-entities': 0,
},
},
{
files: ['*.test.ts', '*.test.tsx'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
},
},
],
};
});
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# eslint: props and import order fix
1f6220eeb7fc9c28f83f02eb113e92b8542fec89
7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/npm-publish.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
.DS_Store
dist
build/**
dist-ssr
.eslintcache
*.local
Expand All @@ -11,3 +12,16 @@ coverage

.pnp.*
.yarn
.turbo


node_modules

*.log
.next
*.local
.env
.cache
server/dist
public/dist
storybook-static/
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ yarn.lock
package.json
.*
!.storybook
/examples/public/*
storybook/stories/assets/*
storybook/.storybook/*
18 changes: 0 additions & 18 deletions .storybook/main.ts

This file was deleted.

12 changes: 0 additions & 12 deletions .storybook/manager.ts

This file was deleted.

26 changes: 0 additions & 26 deletions .storybook/preview-body.html

This file was deleted.

3 changes: 0 additions & 3 deletions .storybook/preview-head.html

This file was deleted.

25 changes: 0 additions & 25 deletions .storybook/preview.jsx

This file was deleted.

13 changes: 0 additions & 13 deletions lerna.json

This file was deleted.

Loading

0 comments on commit 1deca2d

Please sign in to comment.