| @@ -1,22 +1,8 @@ | |||
| { | |||
| "extends": [ | |||
| "plugin:storybook/recommended", | |||
| "next", | |||
| "next/core-web-vitals", | |||
| "eslint:recommended" | |||
| ], | |||
| "extends": ["next", "next/core-web-vitals", "eslint:recommended"], | |||
| "globals": { | |||
| "React": "readonly" | |||
| }, | |||
| "overrides": [ | |||
| { | |||
| "files": ["*.stories.@(ts|tsx|js|jsx|mjs|cjs)"], | |||
| "rules": { | |||
| // example of overriding a rule | |||
| "storybook/hierarchy-separator": "error" | |||
| } | |||
| } | |||
| ], | |||
| "rules": { | |||
| "no-unused-vars": [1, { "args": "after-used", "argsIgnorePattern": "^_" }] | |||
| } | |||
| @@ -0,0 +1,4 @@ | |||
| #!/usr/bin/env sh | |||
| . "$(dirname -- "$0")/_/husky.sh" | |||
| yarn lint | |||
| @@ -0,0 +1,4 @@ | |||
| #!/usr/bin/env sh | |||
| . "$(dirname -- "$0")/_/husky.sh" | |||
| yarn build | |||
| @@ -7,7 +7,8 @@ | |||
| "build": "next build", | |||
| "start": "next start", | |||
| "lint": "next lint", | |||
| "prettier": "prettier --write ." | |||
| "prettier": "prettier --write .", | |||
| "prepare": "husky install" | |||
| }, | |||
| "dependencies": { | |||
| "next": "12.2.3", | |||
| @@ -17,6 +18,7 @@ | |||
| "devDependencies": { | |||
| "eslint": "8.21.0", | |||
| "eslint-config-next": "12.2.3", | |||
| "husky": "^8.0.1", | |||
| "prettier": "^2.7.1" | |||
| } | |||
| } | |||
| @@ -926,6 +926,11 @@ has@^1.0.3: | |||
| dependencies: | |||
| function-bind "^1.1.1" | |||
| husky@^8.0.1: | |||
| version "8.0.1" | |||
| resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.1.tgz#511cb3e57de3e3190514ae49ed50f6bc3f50b3e9" | |||
| integrity sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw== | |||
| ignore@^5.2.0: | |||
| version "5.2.0" | |||
| resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" | |||