Skip to content

Commit

Permalink
fix eslint warning, eslint/eslint#4828
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Sep 10, 2016
1 parent 5c7cf8d commit 0612251
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .eslintrc.js
@@ -1,5 +1,3 @@
'use strict';

const eslintrc = {
extends: ['eslint-config-airbnb'],
env: {
Expand Down Expand Up @@ -28,7 +26,7 @@ const eslintrc = {
'react/sort-comp': 0,
'react/prop-types': 0,
'react/jsx-first-prop-new-line': 0,
"react/jsx-filename-extension": [1, { extensions: ['.js', '.jsx', '.md'] }],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.md'] }],
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'no-param-reassign': 0,
Expand All @@ -37,7 +35,7 @@ const eslintrc = {
'consistent-return': 0,
'no-redeclare': 0,
'react/require-extension': 0,
}
},
};

if (process.env.RUN_ENV === 'DEMO') {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -134,7 +134,7 @@
"pre-deploy": "mkdir -p _site && cp CNAME _site",
"deploy": "npm run clean && npm run pre-deploy && bisheng gh-pages -c ./site/bisheng.config.js",
"lint": "npm run tslint && tsc && npm run srclint && npm run demolint && npm run lesshint",
"srclint": "RUN_ENV=SRC eslint test site scripts ./.eslintrc.js ./webpack.config.js --ext '.js,.jsx,.tsx'",
"srclint": "RUN_ENV=SRC eslint test site scripts ./.eslintrc.js ./webpack.config.js --ext '.js,.jsx,.tsx' --ignore-pattern '!.eslintrc.js'",
"tslint": "antd-tools run ts-lint",
"demolint": "RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
"lesshint": "lesshint components -r scripts/lesshint-report.js",
Expand Down

0 comments on commit 0612251

Please sign in to comment.