This commit is contained in:
afc163 2016-09-10 11:18:07 +08:00
parent 5c7cf8d746
commit 0612251647
2 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,3 @@
'use strict';
const eslintrc = {
extends: ['eslint-config-airbnb'],
env: {
@ -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,
@ -37,7 +35,7 @@ const eslintrc = {
'consistent-return': 0,
'no-redeclare': 0,
'react/require-extension': 0,
}
},
};
if (process.env.RUN_ENV === 'DEMO') {

View File

@ -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",