-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from predix-apphub/fix/babelupdate
Fix/babelupdate
- Loading branch information
Showing
82 changed files
with
1,522 additions
and
608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,57 @@ | ||
{ | ||
"extends": "airbnb", | ||
"parser": "babel-eslint", | ||
"globals": { | ||
"before": true, | ||
"after" : true, | ||
"describe" : true, | ||
"it": true | ||
}, | ||
"env": { | ||
"browser": true, | ||
"jest": true, | ||
"es6": true | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"rules": { | ||
"no-plusplus": "warn", | ||
"no-console": "warn", | ||
"comma-dangle": ["error", "never"], | ||
"jsx-a11y/href-no-hash": 0, | ||
"global-require": 0, | ||
"prefer-arrow-callback": 0, | ||
"experimentalDecorators": 0, | ||
"func-names": 0, | ||
"import/no-extraneous-dependencies": 0, | ||
"no-underscore-dangle": 0, | ||
"no-unused-expressions": 0, | ||
"no-use-before-define": 0, | ||
"react/jsx-filename-extension": 0, | ||
"react/sort-comp": 0, | ||
"react/no-multi-comp": 0, | ||
"react/require-extension": 0 | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"src/**/*.js", | ||
"src/**/*.jsx" | ||
], | ||
"excludedFiles": [] | ||
} | ||
] | ||
"extends": ["airbnb", "prettier"], | ||
"plugins": ["prettier", "react"], | ||
"parser": "babel-eslint", | ||
"globals": { | ||
"before": true, | ||
"after": true, | ||
"describe": true, | ||
"it": true | ||
}, | ||
"env": { | ||
"browser": true, | ||
"jest": true, | ||
"es6": true | ||
}, | ||
"rules": { | ||
"prettier/prettier": [ | ||
"error", | ||
{}, | ||
{ | ||
"usePrettierrc": true | ||
} | ||
], | ||
"max-len": 1, | ||
"no-plusplus": "warn", | ||
"no-console": "warn", | ||
"comma-dangle": ["warn", "never"], | ||
"jsx-a11y/href-no-hash": 0, | ||
"no-case-declarations": 1, | ||
"global-require": 0, | ||
"prefer-arrow-callback": 0, | ||
"experimentalDecorators": 0, | ||
"func-names": 0, | ||
"import/no-extraneous-dependencies": 0, | ||
"no-underscore-dangle": 0, | ||
"space-before-function-paren": 0, | ||
"arrow-parens": 1, | ||
"no-unused-expressions": 0, | ||
"no-use-before-define": 0, | ||
"react/jsx-filename-extension": 0, | ||
"react/sort-comp": 0, | ||
"react/no-multi-comp": 0, | ||
"react/require-extension": 0, | ||
"react/require-default-props": 1, | ||
"react/forbid-prop-types": 1, | ||
"react/prop-types": 1, | ||
"react/no-this-in-sfc": 1, | ||
"react/prefer-stateless-function": 1, | ||
"react/destructuring-assignment": 1 | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["src/**/*.js", "src/**/*.jsx"], | ||
"excludedFiles": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ stats.json | |
.tar | ||
temp-db.json | ||
.eslintcache | ||
.predix-ci* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
import '@storybook/addon-knobs/register' | ||
import '@storybook/addon-knobs/register'; | ||
import '@storybook/addon-storysource/register'; | ||
import '@storybook/addon-actions/register'; | ||
import '@storybook/addon-viewport/register'; | ||
import '@storybook/addon-links/register'; | ||
import '@storybook/addon-notes/register'; | ||
|
||
|
||
//import '@storybook/addon-viewport/register'; | ||
//import 'storybook-addon-jsx/register'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,45 @@ | ||
const path = require('path'); | ||
const glob = require('glob'); | ||
const merge = require('webpack-merge'); | ||
const genDefaultConfig = require('@storybook/react/dist/server/config/defaults/webpack.config.js'); | ||
const pkg = require('../package.json'); | ||
const ROOT_PATH = path.resolve(__dirname, '../'); | ||
|
||
// Export a function. Accept the base config as the only param. | ||
module.exports = (storybookBaseConfig, configType) => { | ||
const config = genDefaultConfig(storybookBaseConfig, configType); | ||
// configType has a value of 'DEVELOPMENT' or 'PRODUCTION' | ||
module.exports = async ({ | ||
config, | ||
mode | ||
}) => { | ||
// `mode` has a value of 'DEVELOPMENT' or 'PRODUCTION' | ||
// You can change the configuration based on that. | ||
// 'PRODUCTION' is used when building the static version of storybook. | ||
config.resolve.modules.push('node_modules'); | ||
config.resolve.extensions.push('.scss'); | ||
|
||
// Make whatever fine-grained changes you need | ||
//config.plugins.push(extractSass); | ||
//config.module.rules.push(sassRules); | ||
config.module.rules.push({ | ||
test: /\.scss$/, | ||
loaders: ['style-loader', 'css-loader', | ||
{ | ||
loader: 'sass-loader', | ||
options: { | ||
importer: require('node-sass-import-once'), | ||
importOnce: { | ||
index: true, | ||
css: true, | ||
bower: true | ||
}, | ||
includePaths: ['node_modules', 'bower_components'] | ||
} | ||
} | ||
], | ||
include: path.resolve(__dirname, '../'), | ||
}); | ||
|
||
config.module.rules.push({ | ||
test: /\.stories\.js?(x)$/, | ||
loaders: [require.resolve('@storybook/addon-storysource/loader')], | ||
enforce: 'pre' | ||
}); | ||
|
||
|
||
// Return the altered config | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: node dist/server.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
nodejs: | ||
version: '8.10.0' | ||
hooks: | ||
pre_setup: npm install | ||
tests: | ||
- npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.