Skip to content

Commit

Permalink
Fix lint again
Browse files Browse the repository at this point in the history
  • Loading branch information
tajo committed Jul 30, 2017
1 parent 84fe3de commit eaf52ef
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"parser" : "babel-eslint",
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": "error"
"prettier/prettier": ["error", {"singleQuote": true}]
}
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
examples/bundle.js
build
npm-debug.log
lib
es
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_js:
- "node"
- "6"
script:
- yarn lint
- yarn test -- --runInBand
- yarn build
- yarn build:examples
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
</head>
<body>
<div id="root"></div>
<script src="bundle.js"></script>
<script src="../build/bundle.js"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"build-cjs": "BABEL_ENV=commonjs babel ./src --out-dir ./lib",
"build:examples": "cross-env NODE_ENV=production webpack",
"prepublish": "cross-env NODE_ENV=production npm run build",
"lint": "eslint webpack.config.js src/**/*.js",
"prettier": "prettier --single-quote --write \"{webpack.config.js,{src,examples}/**/*.js}\"",
"test": "cross-env BABEL_ENV=commonjs jest"
},
Expand All @@ -41,6 +42,7 @@
"devDependencies": {
"babel-cli": "^6.8.0",
"babel-core": "^6.8.0",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.1",
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const webpack = require('webpack');
module.exports = {
entry: ['./examples/index'],
output: {
path: path.join(__dirname, './examples'),
path: path.join(__dirname, './build'),
filename: 'bundle.js'
},
module: {
Expand Down
15 changes: 12 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,15 @@ babel-core@^6.0.0, babel-core@^6.24.1, babel-core@^6.8.0:
slash "^1.0.0"
source-map "^0.5.0"

babel-eslint@^7.2.3:
version "7.2.3"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.2.3.tgz#b2fe2d80126470f5c19442dc757253a897710827"
dependencies:
babel-code-frame "^6.22.0"
babel-traverse "^6.23.1"
babel-types "^6.23.0"
babylon "^6.17.0"

babel-generator@^6.18.0, babel-generator@^6.25.0:
version "6.25.0"
resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.25.0.tgz#33a1af70d5f2890aeb465a4a7793c1df6a9ea9fc"
Expand Down Expand Up @@ -733,7 +742,7 @@ babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.25.0:
babylon "^6.17.2"
lodash "^4.2.0"

babel-traverse@^6.18.0, babel-traverse@^6.24.1, babel-traverse@^6.25.0:
babel-traverse@^6.18.0, babel-traverse@^6.23.1, babel-traverse@^6.24.1, babel-traverse@^6.25.0:
version "6.25.0"
resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.25.0.tgz#2257497e2fcd19b89edc13c4c91381f9512496f1"
dependencies:
Expand All @@ -747,7 +756,7 @@ babel-traverse@^6.18.0, babel-traverse@^6.24.1, babel-traverse@^6.25.0:
invariant "^2.2.0"
lodash "^4.2.0"

babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.25.0:
babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.23.0, babel-types@^6.24.1, babel-types@^6.25.0:
version "6.25.0"
resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.25.0.tgz#70afb248d5660e5d18f811d91c8303b54134a18e"
dependencies:
Expand All @@ -756,7 +765,7 @@ babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.25
lodash "^4.2.0"
to-fast-properties "^1.0.1"

babylon@^6.17.2, babylon@^6.17.4:
babylon@^6.17.0, babylon@^6.17.2, babylon@^6.17.4:
version "6.17.4"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.17.4.tgz#3e8b7402b88d22c3423e137a1577883b15ff869a"

Expand Down

0 comments on commit eaf52ef

Please sign in to comment.