From d80fe902b3ee3fadf5acbab2ac2d5a1e5b7870ab Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 24 Nov 2021 10:59:31 -0500 Subject: [PATCH] fix lgtm warnings --- scripts/build.js | 4 ---- scripts/make-css.js | 1 - scripts/make-metadata.js | 1 - scripts/make-react.js | 2 -- scripts/make-vscode-data.js | 1 - src/components/range/range.ts | 1 - 6 files changed, 10 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index fa95acf6..74208e5a 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -4,15 +4,11 @@ import commandLineArgs from 'command-line-args'; import copy from 'recursive-copy'; import del from 'del'; import esbuild from 'esbuild'; -import fs from 'fs'; import getPort from 'get-port'; import glob from 'globby'; import mkdirp from 'mkdirp'; -import path from 'path'; -import { URL } from 'url'; import { execSync } from 'child_process'; -const build = esbuild.build; const bs = browserSync.create(); const { bundle, copydir, dir, serve, types } = commandLineArgs([ diff --git a/scripts/make-css.js b/scripts/make-css.js index 71440b13..3b994c96 100644 --- a/scripts/make-css.js +++ b/scripts/make-css.js @@ -3,7 +3,6 @@ // import chalk from 'chalk'; import commandLineArgs from 'command-line-args'; -import esbuild from 'esbuild'; import fs from 'fs/promises'; import glob from 'globby'; import mkdirp from 'mkdirp'; diff --git a/scripts/make-metadata.js b/scripts/make-metadata.js index 88d2f8ed..af0643e1 100644 --- a/scripts/make-metadata.js +++ b/scripts/make-metadata.js @@ -1,7 +1,6 @@ // // This script runs the Custom Elements Manifest analyzer to generate custom-elements.json // -import chalk from 'chalk'; import commandLineArgs from 'command-line-args'; import { execSync } from 'child_process'; diff --git a/scripts/make-react.js b/scripts/make-react.js index ec0a2a2f..562088a0 100644 --- a/scripts/make-react.js +++ b/scripts/make-react.js @@ -1,5 +1,4 @@ import chalk from 'chalk'; -import commandLineArgs from 'command-line-args'; import fs from 'fs'; import del from 'del'; import mkdirp from 'mkdirp'; @@ -7,7 +6,6 @@ import path from 'path'; import pascalCase from 'pascal-case'; import prettier from 'prettier'; import prettierConfig from '../prettier.config.cjs'; -import { execSync } from 'child_process'; import { getAllComponents } from './shared.js'; const outdir = path.join('./src/react'); diff --git a/scripts/make-vscode-data.js b/scripts/make-vscode-data.js index 32138e76..2bfa1d9e 100644 --- a/scripts/make-vscode-data.js +++ b/scripts/make-vscode-data.js @@ -3,7 +3,6 @@ // // You must generate dist/custom-elements.json before running this script. // -import chalk from 'chalk'; import commandLineArgs from 'command-line-args'; import fs from 'fs'; import path from 'path'; diff --git a/src/components/range/range.ts b/src/components/range/range.ts index 8df3c3b0..8b2cd9a7 100644 --- a/src/components/range/range.ts +++ b/src/components/range/range.ts @@ -87,7 +87,6 @@ export default class SlRange extends LitElement { connectedCallback() { super.connectedCallback(); - this.handleSlotChange = this.handleSlotChange; this.resizeObserver = new ResizeObserver(() => this.syncRange()); this.shadowRoot!.addEventListener('slotchange', this.handleSlotChange);