mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix eslint warning, eslint/eslint#4828
This commit is contained in:
parent
5c7cf8d746
commit
0612251647
@ -1,5 +1,3 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const eslintrc = {
|
const eslintrc = {
|
||||||
extends: ['eslint-config-airbnb'],
|
extends: ['eslint-config-airbnb'],
|
||||||
env: {
|
env: {
|
||||||
@ -28,7 +26,7 @@ const eslintrc = {
|
|||||||
'react/sort-comp': 0,
|
'react/sort-comp': 0,
|
||||||
'react/prop-types': 0,
|
'react/prop-types': 0,
|
||||||
'react/jsx-first-prop-new-line': 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-unresolved': 0,
|
||||||
'import/no-extraneous-dependencies': 0,
|
'import/no-extraneous-dependencies': 0,
|
||||||
'no-param-reassign': 0,
|
'no-param-reassign': 0,
|
||||||
@ -37,7 +35,7 @@ const eslintrc = {
|
|||||||
'consistent-return': 0,
|
'consistent-return': 0,
|
||||||
'no-redeclare': 0,
|
'no-redeclare': 0,
|
||||||
'react/require-extension': 0,
|
'react/require-extension': 0,
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (process.env.RUN_ENV === 'DEMO') {
|
if (process.env.RUN_ENV === 'DEMO') {
|
||||||
|
@ -134,7 +134,7 @@
|
|||||||
"pre-deploy": "mkdir -p _site && cp CNAME _site",
|
"pre-deploy": "mkdir -p _site && cp CNAME _site",
|
||||||
"deploy": "npm run clean && npm run pre-deploy && bisheng gh-pages -c ./site/bisheng.config.js",
|
"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",
|
"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",
|
"tslint": "antd-tools run ts-lint",
|
||||||
"demolint": "RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
|
"demolint": "RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
|
||||||
"lesshint": "lesshint components -r scripts/lesshint-report.js",
|
"lesshint": "lesshint components -r scripts/lesshint-report.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user