ignore-suffix
See original GitHub issueCould we have this feature?
Angular’s test files end in .spec.ts
I want to use let
in those files, as it is common practice to do so
A typical test looks like:
describe('CloseButtonComponent', () => {
let component: CloseButtonComponent;
let fixture: ComponentFixture<CloseButtonComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [CloseButtonComponent],
providers: [
{
provide: Store,
useValue: {
select: () => Observable.empty(),
},
},
],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(CloseButtonComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
ignore-suffix - IBM
Specifies the suffix distinguished name (DN) that you want to be ignored. Repeat this stanza entry for each suffix you want to be...
Read more >Prefix, Suffix and Derived words for ignore - NiftyWord
Suffixes of ignore · ignored. Word Popularity Bar. 5/5. « ignored. adjective satellite disregarded neglected; unheeded. · ignores. 4/5. « ignore. verb refuse...
Read more >Spring Boot 2.2.6 - MVC | How to ignore suffix and prefix ...
I suppose you can use redirect, to go to desired url without prefixes.
Read more >How to read a file ignore its suffix - UiPath Community Forum
How to read a file ignore its suffix · Help Studio · excel, activities · learningRPA (Huohuo) August 12, 2020, 3:48am #1. Hi...
Read more >A way to ignore prefix/suffix in module ID, then resolve the ...
Search Terms wildcard module declarations ignore prefix suffix relative path Suggestion import url, { other, exported, values } from 'css:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There might be another solution too. IIRC the
tslint
CLI command will look upwards in the directory hierarchy fortslint.json
for every file it lints. So if you have your.spec.ts
in atest
directory you can put a separatetslint.json
in that directory. Thentslint
will use it for thetest
directory, while you can have anohtertslint.json
at the root level for everything else. That way you only have to runtslint
once but can still have different set of rules for thetest
directory.I want linting for the
.spec.ts
files, I just want to disableno-let
for.spec.ts
files