Skip to content

Commit 31ace26

Browse files
committed
enable tests
1 parent dda7f83 commit 31ace26

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
3+
node_js:
4+
- "latest"
5+
6+
notifications:
7+
email: false

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"hint"
3030
],
3131
"scripts": {
32-
"test": "echo \"Error: no test specified\" && exit 1"
32+
"test": "npm link eslint-config-htmlacademy && eslint test/"
3333
},
3434
"repository": {
3535
"type": "git",
@@ -43,5 +43,9 @@
4343
"homepage": "https://github.com/htmlacademy/eslint-config-htmlacademy#readme",
4444
"peerDependencies": {
4545
"eslint": ">=3.9.0"
46+
},
47+
"devDependencies": {
48+
"babel-eslint": "7.1.1",
49+
"eslint": "3.10.2"
4650
}
4751
}

test/es6/.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
let es6 = require('../../es6');
2+
es6.parser = 'babel-eslint';
3+
es6.env = {
4+
'es6': true,
5+
'browser': true
6+
};
7+
8+
module.exports = es6;

test/es6/template-only.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const a = `abcde`;
2+
const b = 'defgh';
3+
const c = "ijklm";
4+
throw new Error(a, b, c);

0 commit comments

Comments
 (0)