-
Notifications
You must be signed in to change notification settings - Fork 3
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 #8 from npetruzzelli/develop
Merge v3.0.0 from Develop into Master
- Loading branch information
Showing
16 changed files
with
259 additions
and
104 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,34 +1 @@ | ||
const _ = { merge: require('lodash.merge') } | ||
const prettierConfig = _.merge( | ||
{}, | ||
require('./lib/base').rules['prettier/prettier'][1] | ||
) | ||
|
||
module.exports = { | ||
extends: [ | ||
'./lib/prettier-standard.js' | ||
], | ||
overrides: [ | ||
{ | ||
files: [ | ||
'lib/**/*.js' | ||
], | ||
rules:{ | ||
/* Force double quotes to make it easier to copy the source JavaScript into | ||
* JSON files | ||
*/ | ||
quotes: ['error', 'double'], | ||
'prettier/prettier': [ | ||
'error', | ||
_.merge( | ||
{}, | ||
prettierConfig, | ||
{ | ||
'singleQuote': false | ||
} | ||
) | ||
] | ||
} | ||
} | ||
] | ||
} | ||
module.exports = require('./prettier-file') |
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,2 @@ | ||
// Use the same configuration that we expose to users for our own formatting. | ||
module.exports = require('./prettierrc.js') |
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,4 @@ | ||
module.exports = { | ||
plugins: ['prettier'], | ||
extends: ['standard'] | ||
} |
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 @@ | ||
module.exports = { | ||
extends: ['prettier', 'prettier/standard'] | ||
} |
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,8 @@ | ||
const prettierConfig = require('./prettierrc.js') | ||
|
||
module.exports = { | ||
extends: ['./base.js'], | ||
rules: { | ||
'prettier/prettier': ['error', prettierConfig] | ||
} | ||
} |
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 @@ | ||
module.exports = { | ||
extends: ['./eslint-file-base.js', './end.js'] | ||
} |
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 @@ | ||
module.exports = require('./eslint-file') |
Oops, something went wrong.