Skip to content

Commit

Permalink
feat(ui): storybook 세팅 추가 (#2)
Browse files Browse the repository at this point in the history
* feat(ui): storybook 설정 추가

* fix: nx 삭제 후 다시 추가
  • Loading branch information
lsj0202 authored Aug 8, 2024
1 parent 4d7ca8d commit cd03e72
Show file tree
Hide file tree
Showing 17 changed files with 242 additions and 177 deletions.
15 changes: 0 additions & 15 deletions .eslintrc

This file was deleted.

22 changes: 22 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {
'prettier/prettier': 'error',
},
ignorePatterns: ['node_modules', 'dist', '.eslintrc.js'],
};
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm exec lint-staged
pnpm lint-staged
4 changes: 2 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
}
}
},
"nxCloudAccessToken": "MDYyZWU5OGUtNTU5ZS00YWQyLTk4YzItOGY4NTJjMzMyZWU4fHJlYWQtd3JpdGU="
}
"nxCloudAccessToken": "ZDA1YmQzMTEtYWQ1MS00MjkzLWEzNjgtMzYzMTdlNTRjMTQyfHJlYWQtd3JpdGU="
}
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,25 @@
"prepare": "husky"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"*.{js,jsx}": [
"prettier --write",
"eslint --fix"
],
"*.{ts,tsx}": [
"prettier --write"
]
},
"devDependencies": {
"@commitlint/cli": "^19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"eslint": "^8.53.0",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^9.1.4",
"lint-staged": "^15.2.8",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"turbo": "^2.0.12",
"typescript": "^5.4.5",
"nx": "19.5.7"
Expand All @@ -32,4 +37,4 @@
"engines": {
"node": ">=18"
}
}
}
6 changes: 3 additions & 3 deletions packages/ui/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
extends: ["@repo/eslint-config/react-internal.js"],
parser: "@typescript-eslint/parser",
extends: ['@jjoing/eslint-config/react-internal.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: "./tsconfig.lint.json",
project: './tsconfig.lint.json',
tsconfigRootDir: __dirname,
},
};
2 changes: 1 addition & 1 deletion packages/ui/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@repo/typescript-config/react-library.json",
"extends": "@jjoing/typescript-config/react-library.json",
"compilerOptions": {
"outDir": "dist"
},
Expand Down
30 changes: 0 additions & 30 deletions packages/ui/turbo/generators/config.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/ui/turbo/generators/templates/component.hbs

This file was deleted.

Loading

0 comments on commit cd03e72

Please sign in to comment.