diff --git a/package.json b/package.json index 09b4c9bbdc54..0a2435bcc68d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "lint": "tslint --project tsconfig.json 'components/**/*.{ts,tsx}'", + "lint": "tslint --project tsconfig-lint.json 'components/**/*.{ts,tsx}'", "pep8": "pycodestyle --max-line-length 120 -r script", "web-ui-gen-grd": "node components/webpack/gen-webpack-grd", "web-ui": "webpack --config components/webpack/webpack.config.js --progress --colors", diff --git a/tsconfig-lint.json b/tsconfig-lint.json new file mode 100644 index 000000000000..9b3112303351 --- /dev/null +++ b/tsconfig-lint.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig", + "include": [ + "./components/**/*" + ], + "exclude": [ + "./components/brave_sync/extension" + ] +} diff --git a/tsconfig.json b/tsconfig.json index e49349d7090b..f276a7ca0147 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,11 +33,6 @@ "noUnusedLocals": true }, "include": [ - "./components/definitions/*", - "./components/**/*" - ], - "exclude": [ - "./components/test/**/*", - "./components/brave_sync/extension" + "./components/definitions/*" ] }