-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #271 from drubin/add-editorconfig
Add .editorconfig
- Loading branch information
Showing
4 changed files
with
63 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{ts,js}] | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"noImplicitAny": false, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"target": "es6", | ||
"moduleResolution": "node", | ||
"removeComments": false, | ||
"sourceMap": true, | ||
"noLib": false, | ||
"declaration": true, | ||
"outDir": "dist", | ||
"rootDir": "src", | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"importHelpers": true | ||
// enable this when it works with tslint, or we switch to prettier | ||
// "declarationMap": true | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"src/*_test.ts", | ||
"dist" | ||
], | ||
"include": [ | ||
"*.ts", | ||
"src/**/*" | ||
] | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"noImplicitAny": false, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"target": "es6", | ||
"moduleResolution": "node", | ||
"removeComments": false, | ||
"sourceMap": true, | ||
"noLib": false, | ||
"declaration": true, | ||
"outDir": "dist", | ||
"rootDir": "src", | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"importHelpers": true | ||
// enable this when it works with tslint, or we switch to prettier | ||
// "declarationMap": true | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"src/*_test.ts", | ||
"dist" | ||
], | ||
"include": [ | ||
"*.ts", | ||
"src/**/*" | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{ | ||
"extends": "tslint:recommended", | ||
"defaultSeverity": "error", | ||
"linterOptions": { | ||
"exclude": [ | ||
"src/api.ts", | ||
"dist", | ||
"node_modules" | ||
] | ||
}, | ||
"jsRules": {}, | ||
"rules": { | ||
"quotemark": [true, "single", "avoid-escape", "avoid-template"], | ||
"interface-name": [true, "never-prefix"], | ||
"object-literal-sort-keys": false, | ||
"object-literal-key-quotes": [true, "as-needed"], | ||
"max-classes-per-file": false | ||
}, | ||
"rulesDirectory": [] | ||
"extends": "tslint:recommended", | ||
"defaultSeverity": "error", | ||
"linterOptions": { | ||
"exclude": [ | ||
"src/api.ts", | ||
"dist", | ||
"node_modules" | ||
] | ||
}, | ||
"jsRules": {}, | ||
"rules": { | ||
"quotemark": [true, "single", "avoid-escape", "avoid-template"], | ||
"interface-name": [true, "never-prefix"], | ||
"object-literal-sort-keys": false, | ||
"object-literal-key-quotes": [true, "as-needed"], | ||
"max-classes-per-file": false | ||
}, | ||
"rulesDirectory": [] | ||
} |