Skip to content

Commit

Permalink
feat: 초기 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
yoon-junseo committed Dec 24, 2022
1 parent 4ca4d26 commit ddcbbaf
Show file tree
Hide file tree
Showing 13 changed files with 8,063 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
presets: ['@babel/preset-react', '@babel/preset-typescript'],
plugins: ['babel-plugin-styled-components'],
};
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
lib
70 changes: 70 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
module.exports = {
root: true,
extends: [
'airbnb',
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react', 'react-hooks'],
rules: {
'arrow-body-style': 0,

'react/function-component-definition': 0,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/jsx-filename-extension': [
2,
{
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
],

'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',

'import/no-extraneous-dependencies': 0,
'import/extensions': 'off',
'import/prefer-default-export': 'off',
'import/order': [
'error',
{
groups: ['external', 'sibling'],
pathGroups: [
{
pattern: 'react',
group: 'external',
position: 'before',
},
],
pathGroupsExcludedImportTypes: ['react'],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
'newlines-between': 'always',
},
],
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
node: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.json'],
},
},
'import/extensions': ['.js', '.ts', '.mjs', '.jsx', '.tsx'],
},
env: {
browser: true,
node: true,
},
globals: {
JSX: true,
},
};
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: https://npm.pkg.github.com/

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Publish
run: npm publish

env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
lib
11 changes: 11 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
printWidth: 120,
tabWidth: 2,
singleQuote: true,
trailingComma: 'all',
semi: true,
useTabs: false,
endOfLine: 'auto',
bracketSpacing: true,
bracketLine: true,
};
Loading

0 comments on commit ddcbbaf

Please sign in to comment.