-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(*): Add prettier for js, json, md, yml code formatting (#3277)
- Loading branch information
Showing
954 changed files
with
39,557 additions
and
39,712 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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
fixes: | ||
-"api/src/opentrons/"::"opentrons/" | ||
- 'api/src/opentrons/::opentrons/' | ||
ignore: | ||
- "architecture-and-planning" | ||
- "audio" | ||
- "compute" | ||
- "**/node_modules" | ||
- "protocol-library-kludge" | ||
- "shared-data/definitions" | ||
- "shared-data/definitions2" | ||
- "shared-data/robot-data" | ||
- "shared-data/protocol-json-schema" | ||
- "shared-data/labware-json-schema" | ||
- "webpack-config" | ||
|
||
- 'architecture-and-planning' | ||
- 'audio' | ||
- 'compute' | ||
- '**/node_modules' | ||
- 'protocol-library-kludge' | ||
- 'shared-data/definitions' | ||
- 'shared-data/definitions2' | ||
- 'shared-data/robot-data' | ||
- 'shared-data/protocol-json-schema' | ||
- 'shared-data/labware-json-schema' | ||
- 'webpack-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
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,15 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
printWidth: 80, // default | ||
tabWidth: 2, // default | ||
useTabs: false, // default | ||
semi: false, | ||
singleQuote: true, | ||
jsxSingleQuote: false, // default | ||
trailingComma: 'es5', | ||
bracketSpacing: true, // default | ||
jsxBracketSameLine: false, // default | ||
arrowParens: 'avoid', // default | ||
endOfLine: 'lf', | ||
} |
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,63 +1,60 @@ | ||
module.exports = { | ||
extends: [ | ||
'stylelint-config-standard', | ||
], | ||
extends: ['stylelint-config-standard'], | ||
|
||
ignoreFiles: [ | ||
'api/**', | ||
'**/dist/**', | ||
'**/coverage/**', | ||
'**/venv/**', | ||
], | ||
ignoreFiles: ['api/**', '**/dist/**', '**/coverage/**', '**/venv/**'], | ||
|
||
rules: { | ||
'selector-class-pattern': /^[a-z0-9_]+$/, | ||
|
||
// support css-modules | ||
'selector-pseudo-class-no-unknown': [ true, { | ||
ignorePseudoClasses: [ | ||
'export', | ||
'import', | ||
'global', | ||
'local', | ||
], | ||
}], | ||
'selector-pseudo-class-no-unknown': [ | ||
true, | ||
{ | ||
ignorePseudoClasses: ['export', 'import', 'global', 'local'], | ||
}, | ||
], | ||
|
||
'property-no-unknown': [ true, { | ||
ignoreProperties: [ | ||
// css-modules | ||
// TODO(mc, 2018-02-09): stop using composes | ||
'composes', | ||
'compose-with', | ||
'property-no-unknown': [ | ||
true, | ||
{ | ||
ignoreProperties: [ | ||
// css-modules | ||
// TODO(mc, 2018-02-09): stop using composes | ||
'composes', | ||
'compose-with', | ||
|
||
// lost grid (http://lostgrid.org/docs.html) | ||
// TODO(mc, 2018-02-09): use stylelint-config-lost once stylelint- | ||
// config-css-modules property-no-unknown no longer conflicts | ||
'lost-align', | ||
'lost-center', | ||
'lost-column', | ||
'lost-flex-container', | ||
'lost-masonry-column', | ||
'lost-masonry-wrap', | ||
'lost-move', | ||
'lost-offset', | ||
'lost-row', | ||
'lost-unit', | ||
'lost-utility', | ||
'lost-waffle', | ||
], | ||
}], | ||
// lost grid (http://lostgrid.org/docs.html) | ||
// TODO(mc, 2018-02-09): use stylelint-config-lost once stylelint- | ||
// config-css-modules property-no-unknown no longer conflicts | ||
'lost-align', | ||
'lost-center', | ||
'lost-column', | ||
'lost-flex-container', | ||
'lost-masonry-column', | ||
'lost-masonry-wrap', | ||
'lost-move', | ||
'lost-offset', | ||
'lost-row', | ||
'lost-unit', | ||
'lost-utility', | ||
'lost-waffle', | ||
], | ||
}, | ||
], | ||
|
||
'at-rule-no-unknown': [ true, { | ||
ignoreAtRules: [ | ||
// TODO(mc, 2018-02-09): stop using @value | ||
'value', | ||
'at-rule-no-unknown': [ | ||
true, | ||
{ | ||
ignoreAtRules: [ | ||
// TODO(mc, 2018-02-09): stop using @value | ||
'value', | ||
|
||
// lost grid (http://lostgrid.org/docs.html) | ||
// TODO(mc, 2018-02-09): use stylelint-config-lost once stylelint- | ||
// config-css-modules at-rule-no-unknown no longer conflicts | ||
'lost', | ||
], | ||
}], | ||
// lost grid (http://lostgrid.org/docs.html) | ||
// TODO(mc, 2018-02-09): use stylelint-config-lost once stylelint- | ||
// config-css-modules at-rule-no-unknown no longer conflicts | ||
'lost', | ||
], | ||
}, | ||
], | ||
}, | ||
} |
Oops, something went wrong.