mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Enable no-unexternalized strings warning in tslint
This commit is contained in:
parent
33f221b9b9
commit
cf72b12ce2
|
@ -11,137 +11,137 @@ this.MonacoEditorLanguages = this.MonacoEditorLanguages || [];
|
|||
let MonacoEditorLanguages: ILanguageDef[] = this.MonacoEditorLanguages;
|
||||
|
||||
MonacoEditorLanguages.push({
|
||||
id: "bat",
|
||||
extensions: [ ".bat", ".cmd"],
|
||||
aliases: [ "Batch", "bat" ],
|
||||
defModule: "vs/editor/standalone-languages/bat"
|
||||
id: 'bat',
|
||||
extensions: [ '.bat', '.cmd'],
|
||||
aliases: [ 'Batch', 'bat' ],
|
||||
defModule: 'vs/editor/standalone-languages/bat'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "coffeescript",
|
||||
extensions: [ ".coffee" ],
|
||||
aliases: [ "CoffeeScript", "coffeescript", "coffee" ],
|
||||
mimetypes: ["text/x-coffeescript", "text/coffeescript"],
|
||||
defModule: "vs/editor/standalone-languages/coffee"
|
||||
id: 'coffeescript',
|
||||
extensions: [ '.coffee' ],
|
||||
aliases: [ 'CoffeeScript', 'coffeescript', 'coffee' ],
|
||||
mimetypes: ['text/x-coffeescript', 'text/coffeescript'],
|
||||
defModule: 'vs/editor/standalone-languages/coffee'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "c",
|
||||
extensions: [ ".c", ".h" ],
|
||||
aliases: [ "C", "c" ],
|
||||
defModule: "vs/editor/standalone-languages/cpp"
|
||||
id: 'c',
|
||||
extensions: [ '.c', '.h' ],
|
||||
aliases: [ 'C', 'c' ],
|
||||
defModule: 'vs/editor/standalone-languages/cpp'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "cpp",
|
||||
extensions: [ ".cpp", ".cc", ".cxx", ".hpp", ".hh", ".hxx" ],
|
||||
aliases: [ "C++", "Cpp", "cpp"],
|
||||
defModule: "vs/editor/standalone-languages/cpp"
|
||||
id: 'cpp',
|
||||
extensions: [ '.cpp', '.cc', '.cxx', '.hpp', '.hh', '.hxx' ],
|
||||
aliases: [ 'C++', 'Cpp', 'cpp'],
|
||||
defModule: 'vs/editor/standalone-languages/cpp'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "csharp",
|
||||
extensions: [ ".cs", ".csx" ],
|
||||
aliases: [ "C#", "csharp" ],
|
||||
defModule: "vs/editor/standalone-languages/csharp"
|
||||
id: 'csharp',
|
||||
extensions: [ '.cs', '.csx' ],
|
||||
aliases: [ 'C#', 'csharp' ],
|
||||
defModule: 'vs/editor/standalone-languages/csharp'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "dockerfile",
|
||||
extensions: [ ".dockerfile" ],
|
||||
filenames: [ "Dockerfile" ],
|
||||
aliases: [ "Dockerfile" ],
|
||||
defModule: "vs/editor/standalone-languages/dockerfile"
|
||||
id: 'dockerfile',
|
||||
extensions: [ '.dockerfile' ],
|
||||
filenames: [ 'Dockerfile' ],
|
||||
aliases: [ 'Dockerfile' ],
|
||||
defModule: 'vs/editor/standalone-languages/dockerfile'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "fsharp",
|
||||
extensions: [ ".fs", ".fsi", ".ml", ".mli", ".fsx", ".fsscript" ],
|
||||
aliases: [ "F#", "FSharp", "fsharp" ],
|
||||
defModule: "vs/editor/standalone-languages/fsharp"
|
||||
id: 'fsharp',
|
||||
extensions: [ '.fs', '.fsi', '.ml', '.mli', '.fsx', '.fsscript' ],
|
||||
aliases: [ 'F#', 'FSharp', 'fsharp' ],
|
||||
defModule: 'vs/editor/standalone-languages/fsharp'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "go",
|
||||
extensions: [ ".go" ],
|
||||
aliases: [ "Go" ],
|
||||
defModule: "vs/editor/standalone-languages/go"
|
||||
id: 'go',
|
||||
extensions: [ '.go' ],
|
||||
aliases: [ 'Go' ],
|
||||
defModule: 'vs/editor/standalone-languages/go'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "ini",
|
||||
extensions: [ ".ini", ".properties", ".gitconfig" ],
|
||||
filenames: ["config", ".gitattributes", ".gitconfig", ".editorconfig"],
|
||||
aliases: [ "Ini", "ini" ],
|
||||
defModule: "vs/editor/standalone-languages/ini"
|
||||
id: 'ini',
|
||||
extensions: [ '.ini', '.properties', '.gitconfig' ],
|
||||
filenames: ['config', '.gitattributes', '.gitconfig', '.editorconfig'],
|
||||
aliases: [ 'Ini', 'ini' ],
|
||||
defModule: 'vs/editor/standalone-languages/ini'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "jade",
|
||||
extensions: [ ".jade" ],
|
||||
aliases: [ "Jade", "jade" ],
|
||||
defModule: "vs/editor/standalone-languages/jade"
|
||||
id: 'jade',
|
||||
extensions: [ '.jade' ],
|
||||
aliases: [ 'Jade', 'jade' ],
|
||||
defModule: 'vs/editor/standalone-languages/jade'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "java",
|
||||
extensions: [ ".java", ".jav" ],
|
||||
aliases: [ "Java", "java" ],
|
||||
mimetypes: ["text/x-java-source", "text/x-java"],
|
||||
defModule: "vs/editor/standalone-languages/java"
|
||||
id: 'java',
|
||||
extensions: [ '.java', '.jav' ],
|
||||
aliases: [ 'Java', 'java' ],
|
||||
mimetypes: ['text/x-java-source', 'text/x-java'],
|
||||
defModule: 'vs/editor/standalone-languages/java'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "lua",
|
||||
extensions: [ ".lua" ],
|
||||
aliases: [ "Lua", "lua" ],
|
||||
defModule: "vs/editor/standalone-languages/lua"
|
||||
id: 'lua',
|
||||
extensions: [ '.lua' ],
|
||||
aliases: [ 'Lua', 'lua' ],
|
||||
defModule: 'vs/editor/standalone-languages/lua'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "objective-c",
|
||||
extensions: [ ".m" ],
|
||||
aliases: [ "Objective-C"],
|
||||
defModule: "vs/editor/standalone-languages/objective-c"
|
||||
id: 'objective-c',
|
||||
extensions: [ '.m' ],
|
||||
aliases: [ 'Objective-C'],
|
||||
defModule: 'vs/editor/standalone-languages/objective-c'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "powershell",
|
||||
extensions: [ ".ps1", ".psm1", ".psd1" ],
|
||||
aliases: [ "PowerShell", "powershell", "ps", "ps1" ],
|
||||
defModule: "vs/editor/standalone-languages/powershell"
|
||||
id: 'powershell',
|
||||
extensions: [ '.ps1', '.psm1', '.psd1' ],
|
||||
aliases: [ 'PowerShell', 'powershell', 'ps', 'ps1' ],
|
||||
defModule: 'vs/editor/standalone-languages/powershell'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "python",
|
||||
extensions: [ ".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi" ],
|
||||
aliases: [ "Python", "py" ],
|
||||
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
||||
defModule: "vs/editor/standalone-languages/python"
|
||||
id: 'python',
|
||||
extensions: [ '.py', '.rpy', '.pyw', '.cpy', '.gyp', '.gypi' ],
|
||||
aliases: [ 'Python', 'py' ],
|
||||
firstLine: '^#!/.*\\bpython[0-9.-]*\\b',
|
||||
defModule: 'vs/editor/standalone-languages/python'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "r",
|
||||
extensions: [ ".r", ".rhistory", ".rprofile", ".rt" ],
|
||||
aliases: [ "R", "r" ],
|
||||
defModule: "vs/editor/standalone-languages/r"
|
||||
id: 'r',
|
||||
extensions: [ '.r', '.rhistory', '.rprofile', '.rt' ],
|
||||
aliases: [ 'R', 'r' ],
|
||||
defModule: 'vs/editor/standalone-languages/r'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "ruby",
|
||||
extensions: [ ".rb", ".rbx", ".rjs", ".gemspec", ".pp" ],
|
||||
filenames: [ "rakefile" ],
|
||||
aliases: [ "Ruby", "rb" ],
|
||||
defModule: "vs/editor/standalone-languages/ruby"
|
||||
id: 'ruby',
|
||||
extensions: [ '.rb', '.rbx', '.rjs', '.gemspec', '.pp' ],
|
||||
filenames: [ 'rakefile' ],
|
||||
aliases: [ 'Ruby', 'rb' ],
|
||||
defModule: 'vs/editor/standalone-languages/ruby'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "swift",
|
||||
aliases: ["Swift","swift"],
|
||||
extensions: [".swift"],
|
||||
mimetypes: ["text/swift"],
|
||||
defModule: "vs/editor/standalone-languages/swift"
|
||||
id: 'swift',
|
||||
aliases: ['Swift','swift'],
|
||||
extensions: ['.swift'],
|
||||
mimetypes: ['text/swift'],
|
||||
defModule: 'vs/editor/standalone-languages/swift'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "sql",
|
||||
extensions: [ ".sql" ],
|
||||
aliases: [ "SQL" ],
|
||||
defModule: "vs/editor/standalone-languages/sql"
|
||||
id: 'sql',
|
||||
extensions: [ '.sql' ],
|
||||
aliases: [ 'SQL' ],
|
||||
defModule: 'vs/editor/standalone-languages/sql'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "vb",
|
||||
extensions: [ ".vb" ],
|
||||
aliases: [ "Visual Basic", "vb" ],
|
||||
defModule: "vs/editor/standalone-languages/vb"
|
||||
id: 'vb',
|
||||
extensions: [ '.vb' ],
|
||||
aliases: [ 'Visual Basic', 'vb' ],
|
||||
defModule: 'vs/editor/standalone-languages/vb'
|
||||
});
|
||||
MonacoEditorLanguages.push({
|
||||
id: "xml",
|
||||
extensions: [ ".xml", ".dtd", ".ascx", ".csproj", ".config", ".wxi", ".wxl", ".wxs", ".xaml", ".svg", ".svgz" ],
|
||||
firstLine : "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
|
||||
aliases: [ "XML", "xml" ],
|
||||
mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
|
||||
defModule: "vs/editor/standalone-languages/xml"
|
||||
id: 'xml',
|
||||
extensions: [ '.xml', '.dtd', '.ascx', '.csproj', '.config', '.wxi', '.wxl', '.wxs', '.xaml', '.svg', '.svgz' ],
|
||||
firstLine : '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)',
|
||||
aliases: [ 'XML', 'xml' ],
|
||||
mimetypes: ['text/xml', 'application/xml', 'application/xaml+xml', 'application/xml-dtd'],
|
||||
defModule: 'vs/editor/standalone-languages/xml'
|
||||
});
|
||||
|
|
|
@ -2,6 +2,13 @@
|
|||
"rules": {
|
||||
"no-unused-expression": true,
|
||||
"no-unreachable": true,
|
||||
"no-duplicate-variable": true
|
||||
"no-duplicate-variable": true,
|
||||
"no-unexternalized-strings": [
|
||||
true,
|
||||
{
|
||||
"signatures": ["localize", "nls.localize"],
|
||||
"messageIndex": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue