diff --git a/.vscode/settings.json b/.vscode/settings.json index c7c1623bc..0f3d9ea7b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,5 @@ { - "typescript.tsdk": "./node_modules/typescript/lib" + "typescript.tsdk": "./node_modules/typescript/lib", + "angulardoc.repoId": "51f64839-b313-47fa-8d89-9317081ebe22", + "angulardoc.lastSync": 0 } \ No newline at end of file diff --git a/src/useViewEncapsulationRule.ts b/src/useViewEncapsulationRule.ts index 74494016e..1aecfed1c 100644 --- a/src/useViewEncapsulationRule.ts +++ b/src/useViewEncapsulationRule.ts @@ -17,7 +17,7 @@ export class Rule extends Lint.Rules.AbstractRule { typescriptOnly: true }; - static FAILURE = 'Using "ViewEncapsulation.None" may cause conflicts between css rules having the same selector'; + static FAILURE = 'Using "ViewEncapsulation.None" will make your styles global which may have unintended effect'; apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] { const walker = new ViewEncapsulationWalker(sourceFile, this.getOptions()); diff --git a/test/useViewEncapsulationRule.spec.ts b/test/useViewEncapsulationRule.spec.ts index c43ef9964..d0bb86611 100644 --- a/test/useViewEncapsulationRule.spec.ts +++ b/test/useViewEncapsulationRule.spec.ts @@ -14,7 +14,7 @@ describe('use-view-encapsulation', () => { assertAnnotated({ ruleName: 'use-view-encapsulation', - message: 'Using "ViewEncapsulation.None" may cause conflicts between css rules having the same selector', + message: 'Using "ViewEncapsulation.None" will make your styles global which may have unintended effect', source }); });