Skip to content

Commit

Permalink
fix(lint): Change endOfLine rules to better support linting on Windows (
Browse files Browse the repository at this point in the history
#311)

* fix(lint): Change endOfLine rules to better support linting on Windows

* new snapshots

* reverted changes to environment.json files
  • Loading branch information
HowardBraham committed Jul 18, 2023
1 parent d7ba49c commit 9a3be2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// All of these are defaults except singleQuote, but we specify them
// All of these are defaults except singleQuote and endOfLine, but we specify them
// for explicitness
module.exports = {
endOfLine: 'auto',
quoteProps: 'as-needed',
singleQuote: true,
tabWidth: 2,
Expand Down
1 change: 1 addition & 0 deletions packages/base/rules-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -3310,6 +3310,7 @@
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
"quoteProps": "as-needed",
"singleQuote": true,
"tabWidth": 2,
Expand Down
3 changes: 2 additions & 1 deletion packages/base/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ module.exports = {
'prettier/prettier': [
'error',
{
// All of these are defaults except singleQuote, but we specify them
// All of these are defaults except singleQuote and endOfLine, but we specify them
// for explicitness
endOfLine: 'auto',
quoteProps: 'as-needed',
singleQuote: true,
tabWidth: 2,
Expand Down

0 comments on commit 9a3be2b

Please sign in to comment.