mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
cleanup rule meta data, add links when possible
This commit is contained in:
@@ -9,10 +9,11 @@ const utils_1 = require("./utils");
|
|||||||
module.exports = new class {
|
module.exports = new class {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.meta = {
|
this.meta = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
badImport: 'Imports violates \'{{restrictions}}\' restrictions. See https://github.com/Microsoft/vscode/wiki/Code-Organization'
|
badImport: 'Imports violates \'{{restrictions}}\' restrictions. See https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,11 +16,12 @@ interface ImportPatternsConfig {
|
|||||||
|
|
||||||
export = new class implements eslint.Rule.RuleModule {
|
export = new class implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
readonly meta = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
badImport: 'Imports violates \'{{restrictions}}\' restrictions. See https://github.com/Microsoft/vscode/wiki/Code-Organization'
|
badImport: 'Imports violates \'{{restrictions}}\' restrictions. See https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -8,10 +8,11 @@ const utils_1 = require("./utils");
|
|||||||
module.exports = new class {
|
module.exports = new class {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.meta = {
|
this.meta = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
layerbreaker: 'Bad layering. You are not allowed to access {{from}} from here, allowed layers are: [{{allowed}}]'
|
layerbreaker: 'Bad layering. You are not allowed to access {{from}} from here, allowed layers are: [{{allowed}}]'
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,11 +14,12 @@ type Config = {
|
|||||||
|
|
||||||
export = new class implements eslint.Rule.RuleModule {
|
export = new class implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
readonly meta = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
layerbreaker: 'Bad layering. You are not allowed to access {{from}} from here, allowed layers are: [{{allowed}}]'
|
layerbreaker: 'Bad layering. You are not allowed to access {{from}} from here, allowed layers are: [{{allowed}}]'
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ const utils_1 = require("./utils");
|
|||||||
module.exports = new class NoNlsInStandaloneEditorRule {
|
module.exports = new class NoNlsInStandaloneEditorRule {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.meta = {
|
this.meta = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
noNls: 'Not allowed to import vs/nls in standalone editor modules. Use standaloneStrings.ts'
|
noNls: 'Not allowed to import vs/nls in standalone editor modules. Use standaloneStrings.ts'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,9 +9,7 @@ import { createImportRuleListener } from './utils';
|
|||||||
|
|
||||||
export = new class NoNlsInStandaloneEditorRule implements eslint.Rule.RuleModule {
|
export = new class NoNlsInStandaloneEditorRule implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
readonly meta = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
noNls: 'Not allowed to import vs/nls in standalone editor modules. Use standaloneStrings.ts'
|
noNls: 'Not allowed to import vs/nls in standalone editor modules. Use standaloneStrings.ts'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,10 +8,11 @@ const utils_1 = require("./utils");
|
|||||||
module.exports = new class NoNlsInStandaloneEditorRule {
|
module.exports = new class NoNlsInStandaloneEditorRule {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.meta = {
|
this.meta = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
badImport: 'Not allowed to import standalone editor modules. See https://github.com/Microsoft/vscode/wiki/Code-Organization'
|
badImport: 'Not allowed to import standalone editor modules.'
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,11 +9,12 @@ import { createImportRuleListener } from './utils';
|
|||||||
|
|
||||||
export = new class NoNlsInStandaloneEditorRule implements eslint.Rule.RuleModule {
|
export = new class NoNlsInStandaloneEditorRule implements eslint.Rule.RuleModule {
|
||||||
|
|
||||||
readonly meta = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
badImport: 'Not allowed to import standalone editor modules. See https://github.com/Microsoft/vscode/wiki/Code-Organization'
|
badImport: 'Not allowed to import standalone editor modules.'
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
url: 'https://github.com/microsoft/vscode/wiki/Source-Code-Organization'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ function isDoubleQuoted(node) {
|
|||||||
module.exports = new (_a = class NoUnexternalizedStrings {
|
module.exports = new (_a = class NoUnexternalizedStrings {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.meta = {
|
this.meta = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
doubleQuoted: 'Only use double-quoted strings for externalized strings.',
|
doubleQuoted: 'Only use double-quoted strings for externalized strings.',
|
||||||
badKey: 'The key \'{{key}}\' doesn\'t conform to a valid localize identifier.',
|
badKey: 'The key \'{{key}}\' doesn\'t conform to a valid localize identifier.',
|
||||||
|
|||||||
@@ -18,9 +18,7 @@ export = new class NoUnexternalizedStrings implements eslint.Rule.RuleModule {
|
|||||||
|
|
||||||
private static _rNlsKeys = /^[_a-zA-Z0-9][ .\-_a-zA-Z0-9]*$/;
|
private static _rNlsKeys = /^[_a-zA-Z0-9][ .\-_a-zA-Z0-9]*$/;
|
||||||
|
|
||||||
readonly meta = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
doubleQuoted: 'Only use double-quoted strings for externalized strings.',
|
doubleQuoted: 'Only use double-quoted strings for externalized strings.',
|
||||||
badKey: 'The key \'{{key}}\' doesn\'t conform to a valid localize identifier.',
|
badKey: 'The key \'{{key}}\' doesn\'t conform to a valid localize identifier.',
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ const utils_1 = require("./utils");
|
|||||||
module.exports = new (_a = class TranslationRemind {
|
module.exports = new (_a = class TranslationRemind {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.meta = {
|
this.meta = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
missing: 'Please add \'{{resource}}\' to ./build/lib/i18n.resources.json file to use translations here.'
|
missing: 'Please add \'{{resource}}\' to ./build/lib/i18n.resources.json file to use translations here.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,9 +13,7 @@ export = new class TranslationRemind implements eslint.Rule.RuleModule {
|
|||||||
|
|
||||||
private static NLS_MODULE = 'vs/nls';
|
private static NLS_MODULE = 'vs/nls';
|
||||||
|
|
||||||
readonly meta = {
|
readonly meta: eslint.Rule.RuleMetaData = {
|
||||||
type: 'problem',
|
|
||||||
schema: {},
|
|
||||||
messages: {
|
messages: {
|
||||||
missing: 'Please add \'{{resource}}\' to ./build/lib/i18n.resources.json file to use translations here.'
|
missing: 'Please add \'{{resource}}\' to ./build/lib/i18n.resources.json file to use translations here.'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user