-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from South-Paw/2.0.0-beta.1
Remove styled-components dependency
- Loading branch information
Showing
23 changed files
with
19,861 additions
and
19,423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"sourceType": "unambiguous", | ||
"presets": [ | ||
["@babel/preset-env", { "targets": { "chrome": 100 } }], | ||
"@babel/preset-typescript", | ||
"@babel/preset-react" | ||
], | ||
"plugins": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
{ | ||
"extends": [ | ||
"airbnb", | ||
"airbnb-typescript", | ||
"airbnb/hooks", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended", | ||
"prettier/react", | ||
"prettier/@typescript-eslint", | ||
"plugin:jest/recommended" | ||
"plugin:jest/recommended", | ||
"plugin:storybook/recommended" | ||
], | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"rules": { | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"react/jsx-props-no-spreading": "off" | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"class-methods-use-this": "off", | ||
"import/prefer-default-export": "off", | ||
"no-underscore-dangle": "off", | ||
"react/jsx-props-no-spreading": "off", | ||
"react/prop-types": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"react/require-default-props": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.tsx"], | ||
"rules": { | ||
"react/prop-types": "off" | ||
} | ||
"files": ["tsup.config.ts"], | ||
"rules": { "import/no-extraneous-dependencies": "off" } | ||
}, | ||
{ | ||
"files": ["**/*.stories.tsx"], | ||
"files": ["**/*.stories.*"], | ||
"rules": { | ||
"import/no-extraneous-dependencies": "off" | ||
"import/no-extraneous-dependencies": "off", | ||
"react-hooks/rules-of-hooks": "off", | ||
"react/function-component-definition": "off" | ||
} | ||
} | ||
], | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- "main" | ||
tags-ignore: | ||
- "*.*.*" | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "npm" | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
needs: | ||
- lint | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "npm" | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Test | ||
run: npm run test | ||
env: | ||
CI: true | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
needs: | ||
- test | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "npm" | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Draft Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
tags-ignore: | ||
- "*.*.*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-draft: | ||
name: Deploy draft | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
||
- name: Start deployment | ||
uses: bobheadxi/deployments@v1 | ||
id: deployment | ||
with: | ||
env: staging | ||
step: start | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "npm" | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build Storybook | ||
run: npm run storybook:build | ||
|
||
- name: Deploy to Netlify | ||
uses: South-Paw/action-netlify-cli@v1 | ||
id: netlify | ||
with: | ||
args: 'deploy --json --dir \"./storybook-static\" --message \"draft [${{ github.sha }}]\"' | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
|
||
- name: Finish deployment | ||
uses: bobheadxi/deployments@v1 | ||
if: always() | ||
with: | ||
env: ${{ steps.deployment.outputs.env }} | ||
step: finish | ||
status: ${{ job.status }} | ||
deployment_id: ${{ steps.deployment.outputs.deployment_id }} | ||
env_url: ${{ steps.netlify.outputs.NETLIFY_DRAFT_URL }} | ||
override: false |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.