diff --git a/.eslintrc.js b/.eslintrc.js index 4db0a32..8bfdec2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,6 +10,7 @@ module.exports = { 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:@typescript-eslint/recommended', + 'plugin:storybook/recommended', ], parser: '@typescript-eslint/parser', parserOptions: { diff --git a/README.md b/README.md index 96d138e..bd39e85 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,14 @@ [Pull request](https://github.com/nickovchinnikov/minesweeper/pull/1) -### Code-style and Eslint +### Code-style and Eslint ### Prettier [Pull request](https://github.com/nickovchinnikov/minesweeper/pull/2) +#### Add script lint + eslint-plugin-storybook +[Pull request 2](https://github.com/nickovchinnikov/minesweeper/pull/68) + ## Section: Typescript recap ### Typescript basic diff --git a/package.json b/package.json index 28dec2f..af16410 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "watch": "webpack --watch --mode=development", "start": "webpack serve --mode=development", "test": "jest", + "lint": "npx eslint ./ --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore --fix", "test:mutate": "stryker run", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", @@ -67,6 +68,7 @@ "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.27.1", "eslint-plugin-react-hooks": "^4.3.0", + "eslint-plugin-storybook": "^0.5.6", "html-webpack-plugin": "^5.5.0", "husky": "^7.0.4", "jest": "^27.4.0",