Skip to content

Commit

Permalink
Configure JS files in EditorConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj committed May 24, 2022
1 parent 0f4737a commit d23cf30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
# Top-most EditorConfig file
root = true

# Unix-style newlines with newline ending and space indentation for all files
Expand All @@ -9,7 +9,8 @@ end_of_line = lf
insert_final_newline = true
indent_style = space

# 4 space indentation and max line length of 100 in *.ts files
[*.ts]
# 4 space indentation and max line length of 100 in JavaScript/TypeScript files
[*.{js,ts}]
indent_size = 4
max_line_length = 100

10 changes: 5 additions & 5 deletions bin/fixtures/read-echo.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
process.stdin.on('data', chunk => {
const line = chunk.toString().trim();
console.log(line);
const line = chunk.toString().trim();
console.log(line);

if (line === 'stop') {
process.exit(0);
}
if (line === 'stop') {
process.exit(0);
}
});

console.log('READING');

0 comments on commit d23cf30

Please sign in to comment.