Skip to content

Commit

Permalink
Update devDependencies (#196)
Browse files Browse the repository at this point in the history
* Update all devDependencies. Load scss in storybook

* Try to resolve scss loading error

* Update react-scripts and make storybook work on production

* Remove underscore, warning and deprecated-prop. Update bulma.

* Remove two externals from rollup config

* Update version to 2.0.0

* Add to npmignore

* Disallow trailing comma eslint rule

* Update some deps
  • Loading branch information
Utwo authored Jul 31, 2020
1 parent d2f9ef4 commit 81004ab
Show file tree
Hide file tree
Showing 73 changed files with 13,475 additions and 5,228 deletions.
9 changes: 3 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@
"es6": true,
"jest/globals": true
},
"plugins": ["react", "prettier", "jest"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"plugins": ["react", "jest"],
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
"rules": {
"react/jsx-no-bind": [
"error",
Expand All @@ -38,6 +34,7 @@
"no-trailing-spaces": "warn",
"no-unused-expressions": "error",
"no-var": "error",
"comma-dangle": ["error", "never"],
"max-len": ["error", { "code": 120 }],
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
Expand Down
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
dist
.babelrc
.babelrc.json
.storybook
.gitignore
.prettierrc
.eslintrc
rollup.config.js
9 changes: 5 additions & 4 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const path = require("path");

module.exports = {
stories: ["../src/**/*.stories.[tj]s"],
addons: [
"@storybook/react",
"@storybook/preset-scss",
"@storybook/preset-create-react-app",
"@storybook/addon-docs",
"@storybook/addon-storysource",
"@storybook/addon-knobs/register",
"@storybook/addon-viewport/register"
]
"@storybook/addon-viewport/register",
],
};
13 changes: 7 additions & 6 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { addParameters } from '@storybook/react';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
import { addParameters } from "@storybook/react";
import { INITIAL_VIEWPORTS } from "@storybook/addon-viewport";
require("!style-loader!css-loader!sass-loader!../src/styles.scss");

addParameters({
viewport: {
viewports: INITIAL_VIEWPORTS,
},
});
viewport: {
viewports: INITIAL_VIEWPORTS,
},
});
Loading

1 comment on commit 81004ab

@vercel
Copy link

@vercel vercel bot commented on 81004ab Jul 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.