This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setup prettier config * eslint --fix with eslint-plugin-prettier on this breaks * Disable prettier on test source * Run eslint --fix with prettier config * Remove format script" * Rename script to prettier-check * Remove uncessary rules * Add a small note about prettier * Context for disabling * PR fixes * Run prettier against /tests * Point prettier-check to correct config * v17.2.0-alpha.1 * Add prettier as optional dep * Reformat after rebase * Fix lint error * Change version back to master version
- Loading branch information
1 parent
1790119
commit 45504b6
Showing
42 changed files
with
1,353 additions
and
905 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
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
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
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
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,5 @@ | ||
module.exports = { | ||
plugins: [ | ||
'lodash', | ||
], | ||
plugins: ['lodash'], | ||
|
||
rules: require('./rules/lodash'), | ||
}; |
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,25 +1,17 @@ | ||
var merge = require('merge'); | ||
const merge = require('merge'); | ||
|
||
module.exports = { | ||
env: { | ||
mocha: true, | ||
}, | ||
|
||
plugins: [ | ||
'mocha', | ||
'chai-expect', | ||
'shopify', | ||
], | ||
plugins: ['mocha', 'chai-expect', 'shopify'], | ||
|
||
rules: merge( | ||
require('./rules/mocha'), | ||
require('./rules/chai-expect'), | ||
{ | ||
'shopify/sinon-prefer-meaningful-assertions': 'error', | ||
// Chai expect syntax produces unused expression warnings | ||
'no-unused-expressions': 'off', | ||
// Chai expect syntax can have long chained calls | ||
'newline-per-chained-call': 'off', | ||
} | ||
), | ||
rules: merge(require('./rules/mocha'), require('./rules/chai-expect'), { | ||
'shopify/sinon-prefer-meaningful-assertions': 'error', | ||
// Chai expect syntax produces unused expression warnings | ||
'no-unused-expressions': 'off', | ||
// Chai expect syntax can have long chained calls | ||
'newline-per-chained-call': 'off', | ||
}), | ||
}; |
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 |
---|---|---|
|
@@ -3,9 +3,7 @@ module.exports = { | |
node: true, | ||
}, | ||
|
||
plugins: [ | ||
'node', | ||
], | ||
plugins: ['node'], | ||
|
||
rules: require('./rules/node'), | ||
}; |
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,20 @@ | ||
module.exports = { | ||
extends: ['plugin:shopify/esnext', 'prettier'], | ||
|
||
plugins: ['prettier'], | ||
|
||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
bracketSpacing: false, | ||
jsxBracketSameLine: false, | ||
}, | ||
], | ||
|
||
// rules to disable to prefer prettier | ||
'shopify/binary-assignment-parens': 'off', | ||
}, | ||
}; |
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
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
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
Oops, something went wrong.