From 3349fa303e226be0d5023b524e2c67bc489cd7e0 Mon Sep 17 00:00:00 2001 From: Rory Hunter Date: Wed, 6 Feb 2019 21:26:17 +0000 Subject: [PATCH] Make TSLint issues be warnings, not errors, when running `src-docs` --- CHANGELOG.md | 1 + src-docs/tslint.yaml | 2 ++ src-docs/webpack.config.js | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src-docs/tslint.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index 64d777556436..7d0737089fca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ **Bug fixes** - Fixed `EuiSearchBar.Query` match_all query string must be `*` ([#1521](https://github.com/elastic/eui/pull/1521)) +- Make TSLint issues be warnings, not errors, when running `src-docs` ([#1537](https://github.com/elastic/eui/pull/1537)) ## [`6.10.0`](https://github.com/elastic/eui/tree/v6.10.0) diff --git a/src-docs/tslint.yaml b/src-docs/tslint.yaml new file mode 100644 index 000000000000..f0c8f9c18970 --- /dev/null +++ b/src-docs/tslint.yaml @@ -0,0 +1,2 @@ +extends: ../tslint.yaml +defaultSeverity: warning diff --git a/src-docs/webpack.config.js b/src-docs/webpack.config.js index 58f74afa948c..19e5f186ee10 100644 --- a/src-docs/webpack.config.js +++ b/src-docs/webpack.config.js @@ -64,7 +64,7 @@ module.exports = { // run TypeScript and tslint during webpack build new ForkTsCheckerWebpackPlugin({ tsconfig: path.resolve(__dirname, '..', 'tsconfig.json'), - tslint: path.resolve(__dirname, '..', 'tslint.yaml'), + tslint: path.resolve(__dirname, 'tslint.yaml'), async: false, // makes errors more visible, but potentially less performant }), ],