diff --git a/.prettierrc.js b/.prettierrc.js index b2d98d2e..fa85e10c 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -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, diff --git a/packages/base/rules-snapshot.json b/packages/base/rules-snapshot.json index dd05f957..5959f442 100644 --- a/packages/base/rules-snapshot.json +++ b/packages/base/rules-snapshot.json @@ -3310,6 +3310,7 @@ "prettier/prettier": [ "error", { + "endOfLine": "auto", "quoteProps": "as-needed", "singleQuote": true, "tabWidth": 2, diff --git a/packages/base/src/index.js b/packages/base/src/index.js index 4e126ff8..bc9ea17a 100644 --- a/packages/base/src/index.js +++ b/packages/base/src/index.js @@ -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,