chore: replace VSCode-specific settings.json with broadly recommended .editorconfig

closes #1022
This commit is contained in:
Ward Bell 2016-04-04 11:19:26 -07:00
parent c1f2c397ff
commit 7fdb40caa3
6 changed files with 54 additions and 17 deletions

24
.editorconfig Normal file
View File

@ -0,0 +1,24 @@
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
max_line_length = 0
trim_trailing_whitespace = false
[*.jade]
max_line_length = 0
trim_trailing_whitespace = false
# Indentation override
#[lib/**.js]
#[{package.json,.travis.yml}]
#[**/**.js]

11
.vscode/settings.json vendored
View File

@ -1,11 +0,0 @@
// Place your settings in this file to overwrite default and user settings.
{
// Controls the rendering size of tabs in characters. Accepted values: "auto", 2, 4, 6, etc. If set to "auto", the value will be guessed when a file is opened.
"editor.tabSize": 2,
// Controls if the editor will insert spaces for tabs. Accepted values: "auto", true, false. If set to "auto", the value will be guessed when a file is opened.
"editor.insertSpaces": true,
// When enabled, will trim trailing whitespace when you save a file.
"files.trimTrailingWhitespace": false,
// Specifies the folder path containing the tsserver and lib*.d.ts files to use.
"typescript.tsdk": "public/docs/_examples/node_modules/typescript/lib"
}

View File

@ -69,6 +69,7 @@ var _excludeMatchers = _excludePatterns.map(function(excludePattern){
});
var _exampleBoilerplateFiles = [
'.editorconfig',
'karma.conf.js',
'karma-test-shim.js',
'package.json',

View File

@ -0,0 +1,20 @@
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
max_line_length = 0
trim_trailing_whitespace = false
# Indentation override
#[lib/**.js]
#[{package.json,.travis.yml}]
#[**/**.js]

View File

@ -1,3 +1,4 @@
.editorconfig
styles.css
typings
typings.json

View File

@ -114,7 +114,9 @@ function initConfigAndCollectFileNames(configFileName) {
'!**/*plnkr.*',
'!**/package.json',
'!**/example-config.json',
'!**/*.spec.*'
'!**/*.spec.*',
'!**/tslint.json',
'!**/.editorconfig'
];
Array.prototype.push.apply(gpaths, defaultExcludes);