Skip to content

Commit

Permalink
chore: add lints and remove storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
everton-dgn committed Jan 12, 2024
1 parent 11f0b4e commit 1d18b53
Show file tree
Hide file tree
Showing 11 changed files with 106 additions and 4,123 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ src/env.d.ts
vitest.config.ts
stylelint.config.js
vitest.setup.ts
vite.config.ts
16 changes: 16 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
"sonarjs",
"promise",
"prettier",
"testing-library",
"jest-dom",
"jest",
"jsx-a11y",
"import",
"eslint-plugin-import-helpers"
Expand All @@ -53,6 +56,9 @@
"plugin:sonarjs/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:jest-dom/recommended",
"plugin:testing-library/react",
"plugin:jest/style",
"plugin:astro/recommended"
],
"rules": {
Expand Down Expand Up @@ -123,6 +129,16 @@
"prettier/prettier": "error"
},
"overrides": [
{
"files": ["**/__tests__/?(*.)+(spec|test).tsx?"],
"plugins": ["jest-dom", "testing-library", "jest"],
"extends": [
"plugin:jest-dom/recommended",
"plugin:testing-library/react",
"plugin:jest/recommended",
"plugin:jest/style"
]
},
{
"files": ["*.astro"],
"plugins": ["astro"],
Expand Down
27 changes: 0 additions & 27 deletions .storybook/main.ts

This file was deleted.

33 changes: 0 additions & 33 deletions .storybook/preview.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions .storybook/style.css

This file was deleted.

44 changes: 0 additions & 44 deletions .storybook/viewports.ts

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ yarn check:update

# :rotating_light: Important Considerations

- The husky is configured to not allow commit if there are any lint and typescript errors. The push can only be done if all tests and builds (of the project and the storybook) pass.
- The husky is configured to not allow commit if there are any lint and typescript errors. The push can only be done if all tests and builds pass.

- Due to husky's build check settings, to push with git, the development server must be stopped first or an error will occur in the `git push` command.

Expand Down
7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"test:ui": "vitest --ui --coverage.enabled=true",
"test:ci": "vitest run",
"check:update": "yarn upgrade-interactive --latest",
"storybook": "storybook dev -p 6006",
"build:storybook": "storybook build",
"generate": "yarn plop --plopfile generator/plopFile.mjs",
"prepare": "node scripts/create-husky-files.mjs && husky install"
},
Expand All @@ -49,10 +47,6 @@
"devDependencies": {
"@commitlint/cli": "^18.4.4",
"@commitlint/config-conventional": "^18.4.4",
"@storybook/addon-a11y": "^7.6.7",
"@storybook/addon-essentials": "^7.6.7",
"@storybook/addon-links": "^7.6.7",
"@storybook/react": "^7.6.7",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.2.0",
"@testing-library/react": "^14.0.0",
Expand Down Expand Up @@ -91,7 +85,6 @@
"prettier": "^3.1.1",
"prettier-plugin-astro": "^0.12.3",
"sass": "^1.69.7",
"storybook": "^7.6.7",
"stylelint": "^15.11.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-sass-guidelines": "^10.0.0",
Expand Down
18 changes: 0 additions & 18 deletions src/components/atoms/Button/storybook/stories.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions src/components/atoms/CounterButton/storybook/stories.tsx

This file was deleted.

Loading

0 comments on commit 1d18b53

Please sign in to comment.