Skip to content

Commit

Permalink
chore: update prettier to 2.8 (#6067)
Browse files Browse the repository at this point in the history
* chore: update prettier to 2.8

* prettier

* trigger ci
  • Loading branch information
SimenB authored and Omri Luzon committed Nov 23, 2022
1 parent 33a519b commit e647994
Show file tree
Hide file tree
Showing 35 changed files with 483 additions and 369 deletions.
4 changes: 1 addition & 3 deletions .lintstagedrc
@@ -1,5 +1,3 @@
{
"*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}": [
"prettier --write"
]
"*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}": ["prettier --write"]
}
4 changes: 0 additions & 4 deletions .prettierignore
Expand Up @@ -12,10 +12,6 @@ packages/eslint-plugin/src/configs/*.json
CONTRIBUTORS.md
packages/ast-spec/src/*/*/fixtures/_error_/*/fixture.ts

# prettier doesn't yet support satisfies
packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/
packages/scope-manager/tests/fixtures/type-assertion/satisfies.ts

# Ignore CHANGELOG.md files to avoid issues with automated release job
CHANGELOG.md

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -99,7 +99,7 @@
"ncp": "^2.0.0",
"nx": "14.8.4",
"patch-package": "^6.4.7",
"prettier": "2.7.1",
"prettier": "2.8.0",
"pretty-format": "^29.0.3",
"rimraf": "^3.0.2",
"tmp": "^0.2.1",
Expand Down
@@ -1 +1 @@
[1,2,3] satisfies [1, 2, 3];
[1, 2, 3] satisfies [1, 2, 3];
Expand Up @@ -27,29 +27,29 @@ Program {
raw: "2",
value: 2,
range: [3, 4],
range: [4, 5],
loc: {
start: { column: 3, line: 1 },
end: { column: 4, line: 1 },
start: { column: 4, line: 1 },
end: { column: 5, line: 1 },
},
},
Literal {
type: "Literal",
raw: "3",
value: 3,
range: [5, 6],
range: [7, 8],
loc: {
start: { column: 5, line: 1 },
end: { column: 6, line: 1 },
start: { column: 7, line: 1 },
end: { column: 8, line: 1 },
},
},
],
range: [0, 7],
range: [0, 9],
loc: {
start: { column: 0, line: 1 },
end: { column: 7, line: 1 },
end: { column: 9, line: 1 },
},
},
typeAnnotation: TSTupleType {
Expand All @@ -62,17 +62,17 @@ Program {
raw: "1",
value: 1,
range: [19, 20],
range: [21, 22],
loc: {
start: { column: 19, line: 1 },
end: { column: 20, line: 1 },
start: { column: 21, line: 1 },
end: { column: 22, line: 1 },
},
},
range: [19, 20],
range: [21, 22],
loc: {
start: { column: 19, line: 1 },
end: { column: 20, line: 1 },
start: { column: 21, line: 1 },
end: { column: 22, line: 1 },
},
},
TSLiteralType {
Expand All @@ -82,17 +82,17 @@ Program {
raw: "2",
value: 2,
range: [22, 23],
range: [24, 25],
loc: {
start: { column: 22, line: 1 },
end: { column: 23, line: 1 },
start: { column: 24, line: 1 },
end: { column: 25, line: 1 },
},
},
range: [22, 23],
range: [24, 25],
loc: {
start: { column: 22, line: 1 },
end: { column: 23, line: 1 },
start: { column: 24, line: 1 },
end: { column: 25, line: 1 },
},
},
TSLiteralType {
Expand All @@ -102,45 +102,45 @@ Program {
raw: "3",
value: 3,
range: [25, 26],
range: [27, 28],
loc: {
start: { column: 25, line: 1 },
end: { column: 26, line: 1 },
start: { column: 27, line: 1 },
end: { column: 28, line: 1 },
},
},
range: [25, 26],
range: [27, 28],
loc: {
start: { column: 25, line: 1 },
end: { column: 26, line: 1 },
start: { column: 27, line: 1 },
end: { column: 28, line: 1 },
},
},
],
range: [18, 27],
range: [20, 29],
loc: {
start: { column: 18, line: 1 },
end: { column: 27, line: 1 },
start: { column: 20, line: 1 },
end: { column: 29, line: 1 },
},
},
range: [0, 27],
range: [0, 29],
loc: {
start: { column: 0, line: 1 },
end: { column: 27, line: 1 },
end: { column: 29, line: 1 },
},
},
range: [0, 28],
range: [0, 30],
loc: {
start: { column: 0, line: 1 },
end: { column: 28, line: 1 },
end: { column: 30, line: 1 },
},
},
],
sourceType: "script",
range: [0, 29],
range: [0, 31],
loc: {
start: { column: 0, line: 1 },
end: { column: 0, line: 2 },
Expand Down
Expand Up @@ -36,130 +36,130 @@ Array [
type: "Numeric",
value: "2",
range: [3, 4],
range: [4, 5],
loc: {
start: { column: 3, line: 1 },
end: { column: 4, line: 1 },
start: { column: 4, line: 1 },
end: { column: 5, line: 1 },
},
},
Punctuator {
type: "Punctuator",
value: ",",
range: [4, 5],
range: [5, 6],
loc: {
start: { column: 4, line: 1 },
end: { column: 5, line: 1 },
start: { column: 5, line: 1 },
end: { column: 6, line: 1 },
},
},
Numeric {
type: "Numeric",
value: "3",
range: [5, 6],
range: [7, 8],
loc: {
start: { column: 5, line: 1 },
end: { column: 6, line: 1 },
start: { column: 7, line: 1 },
end: { column: 8, line: 1 },
},
},
Punctuator {
type: "Punctuator",
value: "]",
range: [6, 7],
range: [8, 9],
loc: {
start: { column: 6, line: 1 },
end: { column: 7, line: 1 },
start: { column: 8, line: 1 },
end: { column: 9, line: 1 },
},
},
Identifier {
type: "Identifier",
value: "satisfies",
range: [8, 17],
range: [10, 19],
loc: {
start: { column: 8, line: 1 },
end: { column: 17, line: 1 },
start: { column: 10, line: 1 },
end: { column: 19, line: 1 },
},
},
Punctuator {
type: "Punctuator",
value: "[",
range: [18, 19],
range: [20, 21],
loc: {
start: { column: 18, line: 1 },
end: { column: 19, line: 1 },
start: { column: 20, line: 1 },
end: { column: 21, line: 1 },
},
},
Numeric {
type: "Numeric",
value: "1",
range: [19, 20],
range: [21, 22],
loc: {
start: { column: 19, line: 1 },
end: { column: 20, line: 1 },
start: { column: 21, line: 1 },
end: { column: 22, line: 1 },
},
},
Punctuator {
type: "Punctuator",
value: ",",
range: [20, 21],
range: [22, 23],
loc: {
start: { column: 20, line: 1 },
end: { column: 21, line: 1 },
start: { column: 22, line: 1 },
end: { column: 23, line: 1 },
},
},
Numeric {
type: "Numeric",
value: "2",
range: [22, 23],
range: [24, 25],
loc: {
start: { column: 22, line: 1 },
end: { column: 23, line: 1 },
start: { column: 24, line: 1 },
end: { column: 25, line: 1 },
},
},
Punctuator {
type: "Punctuator",
value: ",",
range: [23, 24],
range: [25, 26],
loc: {
start: { column: 23, line: 1 },
end: { column: 24, line: 1 },
start: { column: 25, line: 1 },
end: { column: 26, line: 1 },
},
},
Numeric {
type: "Numeric",
value: "3",
range: [25, 26],
range: [27, 28],
loc: {
start: { column: 25, line: 1 },
end: { column: 26, line: 1 },
start: { column: 27, line: 1 },
end: { column: 28, line: 1 },
},
},
Punctuator {
type: "Punctuator",
value: "]",
range: [26, 27],
range: [28, 29],
loc: {
start: { column: 26, line: 1 },
end: { column: 27, line: 1 },
start: { column: 28, line: 1 },
end: { column: 29, line: 1 },
},
},
Punctuator {
type: "Punctuator",
value: ";",
range: [27, 28],
range: [29, 30],
loc: {
start: { column: 27, line: 1 },
end: { column: 28, line: 1 },
start: { column: 29, line: 1 },
end: { column: 30, line: 1 },
},
},
]
Expand Down

0 comments on commit e647994

Please sign in to comment.