angular - TSLINT config : exclude external modules -


i'm using angular2 webpack starter tslint configured on it.

i use ngx-datables (directory @swimlane directly in node_modules).

i have plenty of warnings :

 @ ./~/@swimlane/ngx-datatable/src/utils/index.ts 14:0-32  @ ./~/@swimlane/ngx-datatable/src/components/datatable.component.ts  @ ./~/@swimlane/ngx-datatable/src/components/index.ts  @ ./~/@swimlane/ngx-datatable/src/index.ts  @ ./src/app/adherent/list/adherent-list.component.ts  @ ./src/app/adherent/list/index.ts  @ ./src/app/adherent/index.ts  @ ./src/app/app.module.ts  @ ./src/app/index.ts  @ ./src/main.browser.ts  @ multi (webpack)-dev-server/client?http://localhost:3000 ./src/main.browser.ts 

however, configs supposed done :

tsconfig.json :

... "exclude": [     "node_modules",     "dist"   ], ... 

tsconfig.webpack.json :

... "exclude": [     "node_modules",     "dist",     "src/**/*.spec.ts",     "src/**/*.e2e.ts"   ], ... 

tslint.json :

... "exclude": [      "node_modules"   ], ... 

i've tried "**/node_modules/**". nothing changed, still have warnings.

i'm using same angular2-starter webpack, solution me add node_modules folder exclude, inside webpack.dev.js file, have changed:

exclude: [/\.(spec|e2e)\.ts$/] 

to

exclude: [/\.(spec|e2e)\.ts$/, /node_modules/] 

and worked, solution provided @aravind not worked sadly.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -