-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from unexpectedjs/feature/prettier
Add prettier setup, drop node.js 4 (Major)
- Loading branch information
Showing
11 changed files
with
3,766 additions
and
3,069 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
node_modules | ||
coverage | ||
vendor | ||
test/documentation.spec.js | ||
site-build | ||
/documentation/ | ||
/vendor/ | ||
/.nyc_output/ | ||
/coverage/ | ||
/site-build/ |
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 |
---|---|---|
@@ -1,8 +1,19 @@ | ||
module.exports = { | ||
extends: [ | ||
'onelint' | ||
], | ||
env: { | ||
es6: false | ||
const config = { | ||
extends: ['pretty-standard'], | ||
plugins: ['mocha'], | ||
rules: { | ||
'mocha/no-exclusive-tests': 'error', | ||
'mocha/no-nested-tests': 'error', | ||
'mocha/no-identical-title': 'error' | ||
} | ||
}; | ||
|
||
if (process.stdin.isTTY) { | ||
// Enable plugin-prettier when running in a terminal. Allows us to have | ||
// eslint verify prettier formatting, while not being bothered by it in our | ||
// editors. | ||
config.plugins.push('prettier'); | ||
config.rules['prettier/prettier'] = 'error'; | ||
} | ||
|
||
module.exports = config; |
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 @@ | ||
package.json |
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,3 @@ | ||
{ | ||
"singleQuote": true | ||
} |
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
language: node_js | ||
node_js: | ||
- "4" | ||
- "6" | ||
- "7" | ||
- "8" | ||
script: "npm run-script travis" | ||
- '6' | ||
- '7' | ||
- '8' | ||
- '10' | ||
- 'node' | ||
script: 'npm run ci' |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/*global unexpected:true, sinon, Promise:true*/ | ||
/*global unexpected:true, sinon:true, Promise:true*/ | ||
/* exported Promise, sinon */ | ||
unexpected = require('unexpected'); | ||
unexpected.output.preferredWidth = 80; | ||
unexpected.installPlugin(require('./lib/unexpected-sinon')); | ||
require('./test/monkeyPatchSinonStackFrames'); | ||
if (typeof Promise === 'undefined') { | ||
Promise = require('rsvp').Promise; | ||
Promise = require('rsvp').Promise; | ||
} | ||
sinon = require('sinon'); |
Oops, something went wrong.