Update test for eslint 3.8 (babel/babel-eslint#412)
* Update test for eslint 3.8 also ignore yarn lock * Run lint only on latest version
This commit is contained in:
parent
610cf28dab
commit
31f48f0651
1
eslint/babel-eslint-parser/.gitignore
vendored
1
eslint/babel-eslint-parser/.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
node_modules
|
node_modules
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
yarn.lock
|
||||||
|
|||||||
@ -1,11 +1,16 @@
|
|||||||
git:
|
|
||||||
depth: 1
|
|
||||||
sudo: false
|
sudo: false
|
||||||
language: node_js
|
language: node_js
|
||||||
matrix:
|
node_js:
|
||||||
include:
|
- "4"
|
||||||
- node_js: "4"
|
- "5"
|
||||||
- node_js: "5"
|
- "6"
|
||||||
- node_js: "6"
|
|
||||||
|
|
||||||
script: npm run test-ci
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
include:
|
||||||
|
- node_js: "node"
|
||||||
|
env: LINT=true
|
||||||
|
|
||||||
|
script:
|
||||||
|
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
|
||||||
|
- 'if [ -z "${LINT-}" ]; then npm test ; fi'
|
||||||
|
|||||||
@ -20,8 +20,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"bootstrap": "git submodule update --init && cd eslint && npm install",
|
"bootstrap": "git submodule update --init && cd eslint && npm install",
|
||||||
"eslint": "cd eslint && mocha -c tests/lib/rules/*.js -r ../eslint-tester.js",
|
"eslint": "cd eslint && mocha -c tests/lib/rules/*.js -r ../eslint-tester.js",
|
||||||
"test": "mocha",
|
"test": "npm run lint && npm run test-only",
|
||||||
"test-ci": "npm test && npm run lint",
|
"test-only": "mocha",
|
||||||
"lint": "eslint index.js babylon-to-espree test",
|
"lint": "eslint index.js babylon-to-espree test",
|
||||||
"fix": "eslint index.js babylon-to-espree test --fix",
|
"fix": "eslint index.js babylon-to-espree test --fix",
|
||||||
"preversion": "npm test",
|
"preversion": "npm test",
|
||||||
|
|||||||
@ -1196,7 +1196,7 @@ describe("verify", function () {
|
|||||||
verifyAndAssertMessages(
|
verifyAndAssertMessages(
|
||||||
"const {Bacona} = require('baconjs')",
|
"const {Bacona} = require('baconjs')",
|
||||||
{ "no-undef": 1, "no-unused-vars": 1 },
|
{ "no-undef": 1, "no-unused-vars": 1 },
|
||||||
[ "1:8 'Bacona' is defined but never used. no-unused-vars" ]
|
[ "1:8 'Bacona' is assigned a value but never used. no-unused-vars" ]
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user