eslint work for ava es6
Showing
... | @@ -12,7 +12,7 @@ | ... | @@ -12,7 +12,7 @@ |
"BINARY_CHROMIUM": "/wechaty/bin/xvfb-chromium" | "BINARY_CHROMIUM": "/wechaty/bin/xvfb-chromium" | ||
}, | }, | ||
"scripts": { | "scripts": { | ||
"lint": "echo skip lint - 'npm run eslint && npm run tslint'", | "lint": "npm run eslint && echo npm run tslint", | ||
"eslint": "eslint \"{src,test}/**/*.js\"", | "eslint": "eslint \"{src,test}/**/*.js\"", | ||
"tslint": "tslint \"{src,test}/**/*.ts\"", | "tslint": "tslint \"{src,test}/**/*.ts\"", | ||
"pretest": "npm run lint", | "pretest": "npm run lint", | ||
... | @@ -57,7 +57,15 @@ | ... | @@ -57,7 +57,15 @@ |
"plugins": [ | "plugins": [ | ||
"ava" | "ava" | ||
], | ], | ||
"extends": "plugin:ava/recommended" | "parser": "babel-eslint", | ||
"parserOptions": { | |||
"ecmaVersion": 7, | |||
"sourceType": "module", | |||
"ecmaFeatures": { | |||
"impliedStrict": true | |||
}, | |||
"extends": "plugin:ava/recommended" | |||
} | |||
}, | }, | ||
"engines": { | "engines": { | ||
"node": ">= 6.0.0" | "node": ">= 6.0.0" | ||
... | @@ -79,6 +87,7 @@ | ... | @@ -79,6 +87,7 @@ |
"devDependencies": { | "devDependencies": { | ||
"apiai": "^2.0.7", | "apiai": "^2.0.7", | ||
"ava": "^0.16.0", | "ava": "^0.16.0", | ||
"babel-eslint": "^6.1.2", | |||
"cookie-parser": "^1.4.3", | "cookie-parser": "^1.4.3", | ||
"cross-env": "^2.0.0", | "cross-env": "^2.0.0", | ||
"eslint": "^3.4.0", | "eslint": "^3.4.0", | ||
... | ... |
想要评论请 注册 或 登录