Skip to content

Commit 8115575

Browse files
committed
update prettier config
1 parent df783f9 commit 8115575

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

.prettierrc.js

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
'use strict';
22

3-
const {
4-
compilerPaths,
5-
esNextPaths,
6-
typescriptPaths,
7-
} = require('./scripts/shared/pathsByLanguageVersion');
3+
const {esNextPaths} = require('./scripts/shared/pathsByLanguageVersion');
84

95
module.exports = {
106
bracketSpacing: false,
@@ -28,25 +24,11 @@ module.exports = {
2824
},
2925
},
3026
{
31-
files: typescriptPaths,
27+
files: ['*.ts', '*.tsx'],
3228
options: {
3329
trailingComma: 'all',
3430
parser: 'typescript',
3531
},
3632
},
37-
{
38-
files: compilerPaths,
39-
options: {
40-
requirePragma: false,
41-
parser: 'babel-ts',
42-
semi: true,
43-
singleQuote: false,
44-
trailingComma: 'es5',
45-
bracketSpacing: true,
46-
bracketSameLine: false,
47-
printWidth: 80,
48-
arrowParens: 'always',
49-
},
50-
},
5133
],
5234
};

scripts/shared/pathsByLanguageVersion.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
*/
77
'use strict';
88

9-
const compilerPaths = ['compiler/**'];
10-
119
// Files that are transformed and can use ES6/Flow/JSX.
1210
const esNextPaths = [
1311
// Internal forwarding modules
@@ -27,11 +25,7 @@ const esNextPaths = [
2725
// Files that we distribute on npm that should be ES5-only.
2826
const es5Paths = ['packages/*/npm/**/*.js'];
2927

30-
const typescriptPaths = ['packages/**/*.d.ts'];
31-
3228
module.exports = {
33-
compilerPaths,
3429
esNextPaths,
3530
es5Paths,
36-
typescriptPaths,
3731
};

0 commit comments

Comments
 (0)