Skip to content

Commit 7a05496

Browse files
authored
Mention which style guide takes precedence and import practices
Closes #1223
1 parent af16af2 commit 7a05496

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CODING_STANDARDS.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Coding guidelines for TypeScript
2-
* The following standards are inspired from [Coding guidelines for TypeScript](https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines).
2+
* The following standards are inspired from [Coding guidelines for TypeScript](https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines) (which you should follow when something is not specified in this document, although any pre-existing practices in a file being edited trump either style guide).
33

44
### Names
55

@@ -31,6 +31,11 @@ Use undefined. Do not use null.
3131

3232
Use single quotes for strings.
3333

34+
### Imports
35+
36+
* Use ES6 module imports.
37+
* Do not use bare `import *`; all imports should either explicitly pull in an object or import an entire module, otherwise you're implicitly polluting the global namespace and making it difficult to figure out from code examination where a name originates from.
38+
3439
### Style
3540

3641
* Use arrow functions over anonymous function expressions.

0 commit comments

Comments
 (0)