mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
Use babel as the eslint parser.
This allows eslint to validate all of the code that babel is configured to accept. Without this, eslint won't validate code that is part of ES7. We use the beta for 6.0 to avoid https://github.com/babel/babel-eslint/issues/249
This commit is contained in:
parent
41460d615a
commit
4c0bf478d0
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"parser": "babel-eslint",
|
||||||
"extends": ["eslint-config-airbnb"],
|
"extends": ["eslint-config-airbnb"],
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
|
@ -76,6 +76,7 @@
|
|||||||
"autoprefixer": "^6.3.3",
|
"autoprefixer": "^6.3.3",
|
||||||
"babel-cli": "^6.2.0",
|
"babel-cli": "^6.2.0",
|
||||||
"babel-core": "^6.2.1",
|
"babel-core": "^6.2.1",
|
||||||
|
"babel-eslint": "^6.0.0-beta.6",
|
||||||
"babel-jest": "^6.0.1",
|
"babel-jest": "^6.0.1",
|
||||||
"babel-loader": "^6.2.0",
|
"babel-loader": "^6.2.0",
|
||||||
"babel-plugin-add-module-exports": "^0.1.1",
|
"babel-plugin-add-module-exports": "^0.1.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user