From 051769c83799724d09417a8ac8133ac42dc9c4a8 Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Tue, 24 Sep 2019 10:18:34 +0200 Subject: [PATCH] chore: fix linting --- .eslintrc.js | 2 ++ examples/autocomplete/src/App.test.js | 2 +- examples/next/pages/index.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index d4d7f02ebb..f62a8dd329 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,6 +9,8 @@ const config = { 'valid-jsdoc': 'off', // @TODO: remove once this is in `eslint-config-algolia` '@typescript-eslint/explicit-member-accessibility': 'off', + // @TODO: re-enable this once the code base is made for it + '@typescript-eslint/consistent-type-assertions': 'off', // @TODO: re-enable once the rule is properly setup for monorepos // https://github.com/benmosher/eslint-plugin-import/issues/1103 // https://github.com/benmosher/eslint-plugin-import/issues/1174 diff --git a/examples/autocomplete/src/App.test.js b/examples/autocomplete/src/App.test.js index d9033facca..d690af297e 100644 --- a/examples/autocomplete/src/App.test.js +++ b/examples/autocomplete/src/App.test.js @@ -8,7 +8,7 @@ jest.mock('antd/lib/mention', () => { ` ${placeholder} ${suggestions.join('\n')} -` +`; }); describe('autocomplete recipe', () => { diff --git a/examples/next/pages/index.js b/examples/next/pages/index.js index ae803b7bbd..2bad597610 100644 --- a/examples/next/pages/index.js +++ b/examples/next/pages/index.js @@ -24,7 +24,7 @@ const searchStateToURL = searchState => const DEFAULT_PROPS = { searchClient, - indexName: "instant_search" + indexName: 'instant_search', }; class Page extends React.Component {