Skip to content

Commit

Permalink
Merge branch 'main' into docs-import
Browse files Browse the repository at this point in the history
  • Loading branch information
태재영 authored Aug 29, 2022
2 parents 736e580 + 10c4c25 commit 8cccb06
Show file tree
Hide file tree
Showing 932 changed files with 34,035 additions and 45,977 deletions.
25 changes: 3 additions & 22 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
root = true

[*.js]
[*.jsx]
[*.ts]
[*.tsx]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
[*]
insert_final_newline = true

[*.json]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false

[*.md]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
trim_trailing_whitespace = true
max_line_length = 80
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.now/*
.next/*
*.css
examples/*
dist/*
esm/*
public/*
scripts/*
tests/*
*.config.js
.DS_Store
119 changes: 65 additions & 54 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,88 +1,99 @@
{
"plugins": ["prettier", "@typescript-eslint", "jsx-a11y"],
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier", "plugin:jsx-a11y/recommended"],
"parser": "@typescript-eslint/parser",
"globals": {
"JSX": true
},
"env": {
"browser": true,
"amd": true,
"node": true,
"jest": true
"browser": false,
"es2021": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended"
],
"plugins": ["react", "prettier", "import", "@typescript-eslint", "jsx-a11y"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"ecmaVersion": 12,
"sourceType": "module"
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"rules": {
"object-curly-spacing": ["warn", "always"],
"no-unused-vars": [
"no-console": "warn",
"react/prop-types": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "off",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/interactive-supports-focus": "warn",
"prettier/prettier": [
"warn",
{
"vars": "all",
"args": "none"
"printWidth": 100,
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"bracketSpacing": false,
"arrowParens": "always",
"endOfLine": "auto"
}
],
"jsx-a11y/no-static-element-interactions": ["warn"],
"jsx-a11y/click-events-have-key-events": ["warn"],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "none"
"args": "after-used",
"ignoreRestSiblings": false,
"argsIgnorePattern": "^_.*?$"
}
],
"@typescript-eslint/no-explicit-any": [
"import/order": [
"warn",
{
"ignoreRestArgs": true
"groups": [
"type",
"builtin",
"object",
"external",
"internal",
"parent",
"sibling",
"index"
],
"pathGroups": [
{
"pattern": "~/**",
"group": "external",
"position": "after"
}
],
"newlines-between": "always"
}
],
"max-len": [
"react/self-closing-comp": "warn",
"react/jsx-sort-props": [
"warn",
{
"code": 80,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreComments": true
}
],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
"callbacksLast": true,
"shorthandFirst": true,
"noSortAlphabetically": false,
"reservedFirst": true
}
],
"react/jsx-key": "error",
"react/jsx-props-no-spreading": "off",
"import/prefer-default-export": "off",
"react/jsx-boolean-value": "off",
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-wrap-multilines": "off",
"react/destructuring-assignment": "off",
"@typescript-eslint/comma-dangle": [
"error",
"padding-line-between-statements": [
"warn",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "never"
"blankLine": "any",
"prev": ["const", "let", "var"],
"next": ["const", "let", "var"]
}
]
}
Expand Down
30 changes: 0 additions & 30 deletions .github/stale.yml

This file was deleted.

70 changes: 25 additions & 45 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
avoid_reduncy:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
if: ${{ github.event_name == 'push' }}
steps:
- name: Cancel Previous Redundant Builds
Expand All @@ -20,54 +20,54 @@ jobs:
access_token: ${{ github.token }}

lint:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: '14'
node-version: '16'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint

build:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: '14'
node-version: '16'
- name: Install dependencies
run: yarn install --frozen-lockfile
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
- name: Build
run: yarn build

tests:
needs: [lint, build]
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: '14'
node-version: '16'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
Expand All @@ -78,16 +78,16 @@ jobs:

publish:
needs: [build, tests]
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: '14'
node-version: '16'
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --frozen-lockfile
- name: Pre puiblish NextUI package
run: yarn pre-publish:nextui
- uses: JS-DevTools/npm-publish@v1
Expand All @@ -106,38 +106,18 @@ jobs:
tag_prefix: "v"
package_root: "./packages/react"

deploy:
needs: [publish]
runs-on: ubuntu-18.04
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-comment: true
github-token: ${{ github.token }}
vercel-args: '--prod'
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-name: ${{ secrets.VERCEL_PROJECT_NAME}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
working-directory: './apps/docs'

update_algolia_index:
needs: [publish]
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: '14'
node-version: '16'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Upload docs on Algolia
Expand Down
12 changes: 0 additions & 12 deletions .prettierignore

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

Loading

0 comments on commit 8cccb06

Please sign in to comment.