Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit3bcd077

Browse files
committed
Fix linter
1 parentb865f65 commit3bcd077

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"start":"webpack-dashboard -- node server.js",
44
"test":"jest --coverage",
55
"test:watch":"yarn test -- --watch",
6-
"lint":"standard --verbose | snazzy",
6+
"lint":"standard --parser babel-eslint --verbose | snazzy",
77
"lint:watch":"gulp",
88
"lint:fix":"standard --fix",
99
"build":"cross-env NODE_ENV=production webpack --progress --config webpack/prod.config -p",
@@ -14,6 +14,7 @@
1414
"devDependencies": {
1515
"@kadira/storybook":"^2.35.3",
1616
"babel-core":"^6.22.1",
17+
"babel-eslint":"^7.1.1",
1718
"babel-jest":"^18.0.0",
1819
"babel-loader":"^6.2.10",
1920
"babel-plugin-transform-runtime":"^6.22.0",

‎src/app.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class App extends Component {
2828
title:awaitthis.getTitle(),
2929
Component:title.default
3030
})
31-
3231
}
3332

3433
render(){

‎webpack/common.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ module.exports = {
2828
test:/\.js$/,
2929
exclude:/node_modules/,
3030
include:paths.src,
31-
use:'standard-loader'
31+
use:{
32+
loader:'standard-loader',
33+
options:{
34+
parser:'babel-eslint'
35+
}
36+
}
3237
},
3338

3439
jsLoader:{

‎webpack/prod.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
newwebpack.optimize.CommonsChunkPlugin({
3131
name:'react-build',
3232
minChunks:({ resource})=>(
33-
/node_modules\/react(\-dom)?\//.test(resource)
33+
/node_modules\/react(-dom)?\//.test(resource)
3434
)
3535
}),
3636

‎yarn.lock‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,16 @@ babel-core@^6.0.0, babel-core@^6.11.4, babel-core@^6.22.0, babel-core@^6.22.1:
412412
slash "^1.0.0"
413413
source-map "^0.5.0"
414414

415+
babel-eslint@^7.1.1:
416+
version "7.1.1"
417+
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.1.1.tgz#8a6a884f085aa7060af69cfc77341c2f99370fb2"
418+
dependencies:
419+
babel-code-frame "^6.16.0"
420+
babel-traverse "^6.15.0"
421+
babel-types "^6.15.0"
422+
babylon "^6.13.0"
423+
lodash.pickby "^4.6.0"
424+
415425
babel-generator@^6.18.0, babel-generator@^6.22.0:
416426
version "6.22.0"
417427
resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.22.0.tgz#d642bf4961911a8adc7c692b0c9297f325cda805"
@@ -1226,7 +1236,7 @@ babel-template@^6.16.0, babel-template@^6.22.0, babel-template@^6.7.0:
12261236
babylon "^6.11.0"
12271237
lodash "^4.2.0"
12281238

1229-
babel-traverse@^6.16.0, babel-traverse@^6.18.0, babel-traverse@^6.22.0, babel-traverse@^6.22.1:
1239+
babel-traverse@^6.15.0, babel-traverse@^6.16.0, babel-traverse@^6.18.0, babel-traverse@^6.22.0, babel-traverse@^6.22.1:
12301240
version "6.22.1"
12311241
resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.22.1.tgz#3b95cd6b7427d6f1f757704908f2fc9748a5f59f"
12321242
dependencies:
@@ -1240,7 +1250,7 @@ babel-traverse@^6.16.0, babel-traverse@^6.18.0, babel-traverse@^6.22.0, babel-tr
12401250
invariant "^2.2.0"
12411251
lodash "^4.2.0"
12421252

1243-
babel-types@^6.16.0, babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.22.0:
1253+
babel-types@^6.15.0, babel-types@^6.16.0, babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.22.0:
12441254
version "6.22.0"
12451255
resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.22.0.tgz#2a447e8d0ea25d2512409e4175479fd78cc8b1db"
12461256
dependencies:
@@ -4354,6 +4364,10 @@ lodash.pick@^4.2.0, lodash.pick@^4.2.1, lodash.pick@^4.4.0:
43544364
version "4.4.0"
43554365
resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3"
43564366

4367+
lodash.pickby@^4.6.0:
4368+
version "4.6.0"
4369+
resolved "https://registry.yarnpkg.com/lodash.pickby/-/lodash.pickby-4.6.0.tgz#7dea21d8c18d7703a27c704c15d3b84a67e33aff"
4370+
43574371
lodash.restparam@^3.0.0:
43584372
version "3.6.1"
43594373
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp