Skip to content

Commit

Permalink
chore: eslint, prettier 설정 끝
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2980 committed May 17, 2024
1 parent 6202970 commit e8f11e2
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 179 deletions.
39 changes: 18 additions & 21 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,22 @@
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["@typescript-eslint", "react"],
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:storybook/recommended",
"prettier"
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:storybook/recommended"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
"testing-library/no-await-sync-events": [
"off",
{ "eventModules": ["fire", "user"] }
]
},
"overrides": [
{
"files": ["**/*.{spec,test}.{js,jsx,ts,tsx}"],
"files": ["**/?(*.)+(spec|test).[jt]s?(x)"],
"plugins": ["jest", "jest-dom", "testing-library"],
"extends": [
"plugin:jest/recommended",
"plugin:jest-dom/recommended",
Expand All @@ -43,5 +30,15 @@
"@typescript-eslint/ban-ts-comment": "off"
}
}
]
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
"testing-library/no-await-sync-events": ["off", { "eventModules": ["fire", "user"] }]
},
"settings": {
"react": {
"version": "detect"
}
}
}
22 changes: 22 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"printWidth": 100,
"tabWidth": 2,
"semi": true,
"bracketSameLine": false,
"singleQuote": false,
"endOfLine": "lf",
"importOrder": [
"^@customTypes/(.*)$",
"^@root/(.*)$",
"^@src/(.*)$",
"^@assets/(.*)$",
"^@constants/(.*)$",
"^@utils/(.*)$",
"^@story/(.*)$",
"^@tokens/(.*)$",
"^@atoms/(.*)$",
"^[./]"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
],
"devDependencies": {
"@chromatic-com/storybook": "1.4.0",
"@eslint/js": "^9.2.0",
"@size-limit/preset-small-lib": "^11.1.4",
"@storybook/addon-essentials": "^8.1.1",
"@storybook/addon-interactions": "^8.1.1",
Expand All @@ -60,14 +59,16 @@
"@types/d3": "^7.4.3",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"autoprefixer": "^10.4.19",
"eslint": "^9.2.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jest-dom": "^5.0.2",
"eslint": "8.47.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-jest-dom": "^5.4.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-storybook": "^0.6.13",
"eslint-plugin-testing-library": "^6.0.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-testing-library": "^6.2.2",
"globals": "^15.2.0",
"husky": "^9.0.11",
"postcss": "^8.4.38",
Expand All @@ -82,8 +83,7 @@
"tsdx": "^0.14.1",
"tslib": "^2.6.2",
"tw-colors": "^3.3.1",
"typescript": "^5.4.5",
"typescript-eslint": "^7.9.0"
"typescript": "^5.4.5"
},
"dependencies": {
"d3": "^7.9.0",
Expand Down
Loading

0 comments on commit e8f11e2

Please sign in to comment.