How to ignore/exclude some files/directory from linting in angular cli

前端 未结 3 1669
难免孤独
难免孤独 2021-02-03 18:27

Similar to this question

I am running the following command to linting my angular2 typeScript code.

ng lint

It is proving all the lint

3条回答
  •  时光取名叫无心
    2021-02-03 19:06

    Figured out it HAS to be a blob pattern..

    If you want multiple files/directories just use an array in your .angular-cli.json

    "exclude": [
     "**/*whatever.pipe.ts", 
     "**/*whatever_else.component.ts"
    ]
    

提交回复
热议问题