Skip to content

Commit 4de10f0

Browse files
committed
chore(typescript): misc linting updates
1 parent 971defe commit 4de10f0

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

packages/typescript/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ import jsx from 'acorn-jsx';
152152
import typescript from 'rollup-plugin-typescript';
153153

154154
export default {
155-
// … other options …
156-
acornInjectPlugins: [ jsx() ],
157-
plugins: [ typescript({jsx: 'preserve'}) ]
155+
// … other options …
156+
acornInjectPlugins: [jsx()],
157+
plugins: [typescript({ jsx: 'preserve' })]
158158
};
159159
```
160160

packages/typescript/src/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ export default function typescript(options = {}) {
3232

3333
// Load options from `tsconfig.json` unless explicitly asked not to.
3434
const tsConfig =
35-
opts.tsconfig === false
36-
? { compilerOptions: {} }
37-
: readTsConfig(tsRuntime, opts.tsconfig);
35+
opts.tsconfig === false ? { compilerOptions: {} } : readTsConfig(tsRuntime, opts.tsconfig);
3836

3937
delete opts.tsconfig;
4038

@@ -138,10 +136,7 @@ export default function typescript(options = {}) {
138136
let fatalError = false;
139137

140138
diagnostics.forEach((diagnostic) => {
141-
const message = tsRuntime.flattenDiagnosticMessageText(
142-
diagnostic.messageText,
143-
'\n'
144-
);
139+
const message = tsRuntime.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
145140

146141
if (diagnostic.file) {
147142
const { line, character } = diagnostic.file.getLineAndCharacterOfPosition(

0 commit comments

Comments
 (0)