-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tests and travis config * Don't use yarn since arguments aren't forwarded * v2.2.1
- Loading branch information
Showing
5 changed files
with
1,093 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- '8' | ||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const config = require('../react-rails') | ||
const execSync = require('child_process').execSync | ||
|
||
// Basic sanity checks to make sure there are no syntax errors in the configs | ||
|
||
function runConfig (config) { | ||
execSync(`node_modules/.bin/eslint --config ${ config }.js test/test-input.js`, { stdio: 'inherit' }) | ||
} | ||
|
||
test('index', () => runConfig('index')) | ||
test('base', () => runConfig('base')) | ||
test('es6', () => runConfig('es6')) | ||
test('react', () => runConfig('react')) | ||
test('react-rails', () => runConfig('react-rails')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
function testInput () { | ||
var thisFile = 'doesnt do anything' | ||
return 'its just an input for the tests!' | ||
} |
Oops, something went wrong.