From 44aebba47dd0116db3832c8a0f7d0ca7757e3b74 Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Tue, 12 Dec 2023 15:39:38 -0800 Subject: [PATCH] Update eslintrc Signed-off-by: Ryan Liang --- gantt-chart/.eslintrc.js | 32 ++++++++++++++++++++++++++++++++ gantt-chart/.eslintrc.yaml | 9 --------- 2 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 gantt-chart/.eslintrc.js delete mode 100644 gantt-chart/.eslintrc.yaml diff --git a/gantt-chart/.eslintrc.js b/gantt-chart/.eslintrc.js new file mode 100644 index 0000000..35fde01 --- /dev/null +++ b/gantt-chart/.eslintrc.js @@ -0,0 +1,32 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +const LICENSE_HEADER = `/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */`; + +module.exports = { + root: true, + extends: [ + '@elastic/eslint-config-kibana', + 'plugin:@elastic/eui/recommended', + 'plugin:react-hooks/recommended', + ], + overrides: [ + { + files: ['**/*.{js,ts,tsx}'], + rules: { + 'no-console': 0, + '@osd/eslint/require-license-header': [ + 'error', + { + licenses: [LICENSE_HEADER], + }, + ], + }, + }, + ], +}; diff --git a/gantt-chart/.eslintrc.yaml b/gantt-chart/.eslintrc.yaml deleted file mode 100644 index 593afaa..0000000 --- a/gantt-chart/.eslintrc.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -extends: '@elastic/kibana' - -settings: - import/resolver: - '@osd/eslint-import-resolver-kibana': - rootPackageName: 'gantt-chart' - pluginPaths: - - .