Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ packages/*/
.gitignore
LICENSE
yarn.lock
yarn-error.log
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const path = require('path')

module.exports = {
extends: [
'eslint-config-airbnb',
Expand All @@ -7,6 +9,13 @@ module.exports = {
'prettier/react',
],
parser: 'babel-eslint',
settings: {
'import/resolver': {
lerna: {
packages: path.resolve(__dirname, './packages'),
},
},
},
rules: {
'prettier/prettier': 'warn',
'no-use-before-define': [
Expand Down
13 changes: 13 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.12.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
'npm:chownr:20180731':
- babel-plugin-universal-import > webpack > uglifyjs-webpack-plugin > cacache > chownr:
reason: Minor issue with no patch available
- extract-css-chunks-webpack-plugin > webpack > uglifyjs-webpack-plugin > cacache > chownr:
reason: 'Minor issue, no patch available'
'npm:underscore.string:20170908':
- underscore.string:
reason: DoS attack in a devDependency
patch: {}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ node_js:
- stable
cache: yarn
script:
- node_modules/.bin/travis-github-status lint flow jest snyk codeclimate
- yarn run check
notifications:
email: false
webhooks:
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"is-pretty:root": "prettier --ignore-path=.eslintignore '**/*' --list-different",
"is-pretty": "yarn run is-pretty:root && yarn run lerna run is-pretty",
"prettify:root": "prettier --ignore-path=.eslintignore '**/*' --write",
"prettify": "yarn run prettify:root && yarn run lerna run prettify"
"prettify": "yarn run prettify:root && yarn run lerna run prettify",
"vulnerabilities": "yarn run snyk test && yarn run lerna run vulnerabilities",
"check": "yarn run is-pretty && yarn run lint && yarn run test -- -- -w 1 && yarn run build && yarn run vulnerabilities"
},
"devDependencies": {
"babel-cli": "^6.24.0",
Expand Down
1 change: 1 addition & 0 deletions packages/boilerplate/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_modules/

.eslintignore
.gitignore
.snyk
LICENSE
*.ico
*.png
3 changes: 2 additions & 1 deletion packages/boilerplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"is-pretty": "prettier --ignore-path=.eslintignore '**/*' --list-different",
"prettify": "prettier --ignore-path=.eslintignore '**/*' --write",
"eslint": "eslint",
"lint": "eslint ."
"lint": "eslint .",
"vulnerabilities": "snyk test"
},
"dependencies": {
"@respond-framework/rudy": "^0.1.0",
Expand Down
32 changes: 30 additions & 2 deletions packages/boilerplate/src/configureStore.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,21 @@

import { createStore, applyMiddleware, compose, combineReducers } from 'redux'
import { composeWithDevTools } from 'redux-devtools-extension/logOnlyInProduction'
import { createRouter } from '@respond-framework/rudy'
import * as actionCreators from '@respond-framework/rudy/es/actions'
import {
push,
replace,
jump,
back,
next,
reset,
set,
setParams,
setQuery,
setState,
setHash,
setBasename,
createRouter,
} from '@respond-framework/rudy'

import routes from './routes'
import * as reducers from './reducers'
Expand Down Expand Up @@ -42,3 +55,18 @@ const composeEnhancers = (...args) =>
typeof window !== 'undefined'
? composeWithDevTools({ actionCreators })(...args)
: compose(...args)

const actionCreators = {
push,
replace,
jump,
back,
next,
reset,
set,
setParams,
setQuery,
setState,
setHash,
setBasename,
}
4 changes: 0 additions & 4 deletions packages/rudy/.snyk

This file was deleted.

7 changes: 6 additions & 1 deletion packages/rudy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"is-pretty": "prettier --ignore-path=.eslintignore '**/*' --list-different",
"prettify": "prettier --ignore-path=.eslintignore '**/*' --write",
"eslint": "eslint",
"lint": "eslint .",
"lint": "eslint . || true",
"vulnerabilities": "snyk test",
"cm": "git-cz",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"prepublish": "npm run clean && npm run build && npm run build:es && npm run flow-copy && npm run build:umd && npm run build:umd:min"
Expand Down Expand Up @@ -58,6 +59,10 @@
],
"moduleFileExtensions": [
"js"
],
"testPathIgnorePatterns": [
"/node_modules/",
".eslintrc.js"
]
},
"config": {
Expand Down