File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed
packages/@angular/cli/lib/config Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 232
232
},
233
233
"tslintConfig" : {
234
234
"description" : " Location of the tslint.json configuration." ,
235
- "type" : " string" ,
236
- "default" : " tslint.json"
235
+ "type" : " string"
237
236
},
238
237
"exclude" : {
239
238
"description" : " File glob(s) to ignore." ,
Original file line number Diff line number Diff line change
1
+ import { createDir , writeFile } from '../../utils/fs' ;
2
+ import { ng } from '../../utils/process' ;
3
+ import { expectToFail } from '../../utils/utils' ;
4
+
5
+ export default function ( ) {
6
+ const fileName = 'src/app/foo/foo.ts' ;
7
+ const nestedConfigContent = `
8
+ {
9
+ "rules": {
10
+ "quotemark": [
11
+ true,
12
+ "double",
13
+ "avoid-escape"
14
+ ]
15
+ }
16
+ }` ;
17
+
18
+ return Promise . resolve ( )
19
+ . then ( ( ) => createDir ( 'src/app/foo' ) )
20
+ . then ( ( ) => writeFile ( fileName , 'const foo = \'\';\n' ) )
21
+ . then ( ( ) => writeFile ( 'src/app/foo/tslint.json' , nestedConfigContent ) )
22
+ . then ( ( ) => expectToFail ( ( ) => ng ( 'lint' ) ) ) ;
23
+ }
You can’t perform that action at this time.
0 commit comments