Browse Source

ignore lint temp js/jsx files in components

pull/4574/head
afc163 8 years ago
parent
commit
1dd5fce324
  1. 6
      .eslintignore
  2. 4
      package.json

6
.eslintignore

@ -0,0 +1,6 @@
components/**/*.js
components/**/*.jsx
!.eslintrc.js
!components/**/__tests__/*
!components/**/demo/*
!components/**/style/*

4
package.json

@ -141,10 +141,10 @@
"test-all": "./scripts/test-all.sh",
"lint": "npm run tslint && npm run eslint && npm run demolint && npm run lesshint",
"tslint": "antd-tools run ts-lint && npm run compile && rm -rf lib",
"eslint": "eslint tests site scripts components ./.eslintrc.js ./webpack.config.js --ext '.js,.jsx' --ignore-pattern '!.eslintrc.js'",
"eslint": "eslint tests site scripts components ./.eslintrc.js ./webpack.config.js --ext '.js,.jsx'",
"demolint": "RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
"lesshint": "lesshint components -r scripts/lesshint-report.js",
"eslint-fix": "eslint --fix tests site scripts components ./.eslintrc.js ./webpack.config.js --ext '.js,.jsx' --ignore-pattern '!.eslintrc.js' && eslint-tinker ./components/*/demo/*.md",
"eslint-fix": "eslint --fix tests site scripts components ./.eslintrc.js ./webpack.config.js --ext '.js,.jsx' && eslint-tinker ./components/*/demo/*.md",
"clean": "antd-tools run clean",
"dist": "antd-tools run dist",

Loading…
Cancel
Save