Lit is a simple library for building fast, lightweight web components.
159 matches across 6 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | rollup-common.js | 101 | // lowercase letters for short, public APIs. Keep this list in order by mangled |
| LOW | rollup-common.js | 321 | // access internal details of lit-html.js. |
| LOW | rollup-common.js | 421 | // const DEV_MODE = true; |
| LOW | rollup-common.js | 501 | 'const ENABLE_EXTRA_SECURITY_HOOKS = false', |
| LOW | …s/labs/tsserver-plugin/src/lib/lit-language-service.ts | 201 | element: (element: Element) => { |
| LOW | packages/labs/ssr-client/src/lib/hydrate-lit-html.ts | 241 | // https://github.com/lit/lit/issues/1434 |
| LOW | packages/labs/ssr-client/src/lib/hydrate-lit-html.ts | 481 | |
| LOW | packages/labs/preact-signals/src/lib/watch.ts | 41 | this.__dispose?.(); |
| LOW | packages/labs/signals/src/lib/signal-watcher.ts | 301 | super.disconnectedCallback(); |
| LOW | packages/labs/ssr-dom-shim/src/index.ts | 421 | }; |
| LOW | …s/labs/ssr-dom-shim/src/test/event-target-shim_test.ts | 281 | 'slot:2/non-capture/BUBBLING_PHASE/child:3', |
| LOW | …ckages/labs/motion/src/test/animate_controller_test.ts | 21 | |
| LOW | …ckages/labs/motion/src/test/animate_controller_test.ts | 41 | // options: AnimateOptions = {onStart, onComplete}, |
| LOW | …ckages/labs/motion/src/test/animate_controller_test.ts | 61 | // opacity: 0; |
| LOW | …ckages/labs/motion/src/test/animate_controller_test.ts | 81 | // </div>`; |
| LOW | …ckages/labs/motion/src/test/animate_controller_test.ts | 101 | |
| LOW | packages/labs/ssr/src/test/integration/tests/basic.ts | 841 | }, |
| LOW | packages/labs/ssr/src/test/integration/tests/basic.ts | 861 | // async setup() { |
| LOW | packages/labs/ssr/src/test/integration/tests/basic.ts | 881 | // return { |
| LOW | …ges/labs/ssr/src/test/test-files/render-test-module.ts | 501 | |
| LOW | packages/labs/ssr/src/lib/render-value.ts | 801 | // - Literal sections of the template |
| LOW | packages/labs/ssr/src/lib/render-result-readable.ts | 41 | |
| LOW | …labs/observers/src/test/performance-controller_test.ts | 41 | await nextFrame(); |
| LOW | …/compiler/test_files/handle_deprecated_octal_escape.js | 1 | import {html} from 'lit'; |
| LOW | …er/test_files/handle_deprecated_octal_escape.golden.js | 1 | import { html } from 'lit'; |
| LOW | packages/labs/analyzer/src/lib/package-analyzer.ts | 61 | allowJs: true, |
| LOW | packages/labs/analyzer/src/lib/javascript/classes.ts | 341 | // as references. If we want to support complex expressions in future, |
| LOW | packages/labs/analyzer/src/lib/javascript/modules.ts | 301 | */ |
| LOW | …bs/virtualizer/src/test/scenarios/item-changes.test.ts | 81 | // If outOfBounds is true, then the directive's |
| LOW | …c/polyfills/resize-observer-polyfill/ResizeObserver.js | 481 | var vertPad = paddings.top + paddings.bottom; |
| LOW | …c/polyfills/resize-observer-polyfill/ResizeObserver.js | 501 | if (Math.round(height + vertPad) !== clientHeight) { |
| LOW | …tdata/build-transform-xliff/goldens/tsout/zh_CN/foo.js | 21 | // end tag). |
| LOW | …data/build-transform-xliff/goldens/tsout/es-419/foo.js | 21 | // end tag). |
| LOW | …testdata/build-transform-xliff/goldens/tsout/en/foo.js | 21 | // end tag). |
| LOW | …a/build-transform-xliff-std/goldens/tsout/zh_CN/foo.js | 21 | // end tag). |
| LOW | …/build-transform-xliff-std/goldens/tsout/es-419/foo.js | 21 | // end tag). |
| LOW | …data/build-transform-xliff-std/goldens/tsout/en/foo.js | 21 | // end tag). |
| LOW | packages/localize-tools/src/modes/transform.ts | 281 | // |
| LOW | packages/localize-tools/src/modes/runtime.ts | 201 | * if there is embedded HTML. |
| LOW | packages/lit-starter-js/web-test-runner.config.js | 21 | // { |
| LOW | packages/lit-starter-js/web-test-runner.config.js | 41 | // capabilities: { |
| LOW | packages/lit-starter-js/web-test-runner.config.js | 61 | // =========== |
| LOW | packages/lit-starter-ts/web-test-runner.config.js | 21 | // { |
| LOW | packages/lit-starter-ts/web-test-runner.config.js | 41 | // capabilities: { |
| LOW | packages/lit-starter-ts/web-test-runner.config.js | 61 | // =========== |
| LOW | packages/lit-html/src/lit-html.ts | 801 | ): [TrustedHTML, Array<string>] => { |
| LOW | packages/lit-html/src/lit-html.ts | 1681 | private _commitIterable(value: Iterable<unknown>): void { |
| LOW | packages/lit-html/src/polyfill-support.ts | 141 | if (hasScopeCss) { |
| LOW | packages/lit-html/src/polyfill-support.ts | 221 | const scope = this.options?.scope; |
| LOW | packages/lit-html/src/directives/repeat.ts | 101 | // oldParts is not an Array then this is the first render and we return |
| LOW | packages/lit-html/src/directives/repeat.ts | 121 | // Maps from key to index for current and previous update; these |
| LOW | packages/lit-html/src/directives/repeat.ts | 141 | // The initial scenario might look like this (for brevity of |
| LOW | packages/lit-html/src/directives/repeat.ts | 161 | // `oldHead` and `newHead` pointers (will be reflected in the |
| LOW | packages/lit-html/src/directives/repeat.ts | 181 | // newHead ^ ^ newTail |
| LOW | packages/lit-html/src/directives/repeat.ts | 201 | // newKeys: [0, 2, 1, 4, 3, 7, 6] 5 and advance oldTail |
| LOW | packages/lit-html/src/directives/repeat.ts | 221 | // oldHead v v oldTail |
| LOW | packages/lit-html/src/directives/repeat.ts | 241 | // * Example below: the head pointers once again match, so |
| LOW | packages/lit-html/src/directives/repeat.ts | 261 | // oldHead v v oldTail |
| LOW | packages/lit-html/src/directives/repeat.ts | 281 | // newHead ^ ^ newTail |
| LOW | packages/lit-html/src/directives/repeat.ts | 301 | // it at the new head position, and the update is complete. |
| 7 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/labs/motion/demo/hero.html | 370 | qui dolorem ipsum quia dolor sit amet, consectetur, adipisci |
| LOW | packages/labs/motion/demo/hero.html | 370 | qui dolorem ipsum quia dolor sit amet, consectetur, adipisci |
| LOW | packages/labs/analyzer/test-files/js/classes/classes.js | 107 | * @description TaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | packages/labs/analyzer/test-files/js/classes/classes.js | 107 | * @description TaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | packages/labs/analyzer/test-files/js/classes/classes.js | 117 | * UntaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | packages/labs/analyzer/test-files/js/classes/classes.js | 117 | * UntaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …ges/labs/analyzer/test-files/ts/classes/src/classes.ts | 97 | * @description TaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …ges/labs/analyzer/test-files/ts/classes/src/classes.ts | 97 | * @description TaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …ges/labs/analyzer/test-files/ts/classes/src/classes.ts | 107 | * UntaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …ges/labs/analyzer/test-files/ts/classes/src/classes.ts | 107 | * UntaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …/analyzer/test-files/ts/vanilla-jsdoc/src/element-a.ts | 51 | * @description TaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …/analyzer/test-files/ts/vanilla-jsdoc/src/element-a.ts | 51 | * @description TaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …/analyzer/test-files/ts/vanilla-jsdoc/src/element-a.ts | 61 | * UntaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …/analyzer/test-files/ts/vanilla-jsdoc/src/element-a.ts | 61 | * UntaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …bs/analyzer/src/test/server/javascript/classes_test.ts | 22 | `TaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …bs/analyzer/src/test/server/javascript/classes_test.ts | 22 | `TaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …bs/analyzer/src/test/server/javascript/classes_test.ts | 36 | `UntaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | …bs/analyzer/src/test/server/javascript/classes_test.ts | 36 | `UntaggedDescription description. Lorem ipsum dolor sit amet, consectetur |
| LOW | packages/labs/eleventy-plugin-lit/demo/test.md | 10 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| LOW | packages/labs/eleventy-plugin-lit/demo/test.md | 10 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| LOW | packages/labs/eleventy-plugin-lit/demo/test.md | 16 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| LOW | packages/labs/eleventy-plugin-lit/demo/test.md | 16 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 168 | "longText": "Esse ullamco veniam aliquip cillum aliqua veniam in consequat eu cupidatat. Ad amet reprehenderit sit a |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 652 | "longText": "Consequat laborum est irure eiusmod fugiat dolore fugiat do. Consequat occaecat deserunt non consectetu |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 1092 | "longText": "Qui cillum proident id irure quis sit. Sit nisi et fugiat amet exercitation eiusmod esse enim pariatur |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 1400 | "longText": "Ullamco veniam exercitation velit eu aute fugiat nisi dolor do. Deserunt culpa laboris ipsum cillum sun |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 2060 | "longText": "Anim voluptate consequat et deserunt. Officia culpa quis consequat et occaecat adipisicing commodo ipsu |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 3864 | "longText": "Excepteur voluptate irure proident enim nulla eiusmod anim enim nisi id et incididunt velit. Id anim ex |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 4326 | "longText": "Officia nulla cillum duis nostrud labore mollit eiusmod labore ut aliqua elit incididunt. Minim exercit |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 5909 | "mediumText": "Tempor sunt anim occaecat in irure occaecat enim cupidatat voluptate ex laboris enim. Exercitation fu |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 6372 | "longText": "Consectetur aute officia nisi sint ut enim consequat. Id culpa in velit tempor nulla officia culpa. Ips |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 6438 | "longText": "Amet veniam ex eiusmod ex nulla consequat nulla non duis officia. Reprehenderit esse laborum laboris ve |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 8021 | "mediumText": "Ullamco elit eu id excepteur incididunt Lorem ipsum pariatur laboris incididunt Lorem ullamco. Veniam |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 8154 | "longText": "Velit enim nostrud et ut elit nostrud laboris mollit. Pariatur sit sint proident officia ea sunt consec |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 8880 | "longText": "Ipsum ullamco commodo aliqua non consectetur culpa in. Et nulla nulla adipisicing sit sunt irure ea com |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 9012 | "longText": "Nulla pariatur in cupidatat qui fugiat. Id incididunt ad aute consequat velit anim ad velit fugiat labo |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 9342 | "longText": "Ullamco exercitation deserunt enim est ea. Ullamco irure ipsum dolore labore do nisi in minim occaecat |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 9430 | "longText": "Culpa ipsum irure eiusmod et ad esse cillum. In ipsum qui dolor dolor. Ex deserunt incididunt duis exer |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 9539 | "mediumText": "Lorem ipsum ipsum elit ad reprehenderit do culpa proident qui labore ea cillum tempor aute. Velit nis |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 9694 | "longText": "Ipsum non enim aliqua culpa velit enim deserunt proident laboris sunt. Sunt esse officia qui est ut ad |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 10111 | "mediumText": "Cupidatat officia duis do sunt veniam voluptate exercitation. Ea excepteur tempor magna fugiat Lorem |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 10112 | "longText": "Lorem ipsum culpa voluptate labore consectetur reprehenderit anim duis fugiat anim consequat tempor off |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 10244 | "longText": "Pariatur ea veniam fugiat officia incididunt aliquip occaecat commodo. Enim anim officia aliquip eu. Oc |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 10772 | "longText": "Lorem ea id veniam proident exercitation culpa dolor deserunt do cillum dolor ullamco cillum id. Esse s |
| LOW | …/labs/virtualizer/test/screenshot/shared/contacts.json | 10925 | "mediumText": "Fugiat pariatur in Lorem ipsum ex id. Ex commodo magna enim non ullamco nulla officia velit. Et et ip |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | playground/scripts/util.js | 15 | async function getModuleSpecifiersFromFile(filePath) { |
| LOW | playground/scripts/util.js | 43 | async function getBareModuleSpecifiersFromFile(filePath) { |
| LOW | playground/scripts/util.js | 49 | export async function getBareModuleSpecifiersFromDir(dir) { |
| LOW | …ver-plugin/src/lib/type-helpers/lit-expression-type.ts | 96 | function getRenderTypeFromDirectiveResult( |
| LOW | …ckages/labs/ssr/src/test/integration/tests/ssr-test.ts | 44 | export function isPartialHydrationExpectation( |
| LOW | packages/labs/ssr/src/lib/render-value.ts | 1080 | function throwErrorForPartIndexMismatch( |
| LOW | packages/labs/ssr/src/lib/render-value.ts | 1115 | function renderBooleanAttributePart( |
| LOW | …fy-html-literals/src/test/minify-html-literals.spec.ts | 339 | function renderWithStyleAndExpressions(color, size) { |
| LOW | …fy-html-literals/src/test/minify-html-literals.spec.ts | 358 | function renderWithStyleAndExpressions(color, size) { |
| LOW | …labs/virtualizer/src/support/resize-observer-errors.ts | 29 | export function setupIgnoreWindowResizeObserverLoopErrors( |
| LOW | …labs/virtualizer/src/support/resize-observer-errors.ts | 48 | export function isResizeObserverLoopErrorMessage(message: string): boolean { |
| LOW | …labs/virtualizer/src/support/resize-observer-errors.ts | 105 | export function ignoreWindowResizeObserverLoopErrors( |
| LOW | …labs/virtualizer/src/support/resize-observer-errors.ts | 116 | export function preventResizeObserverLoopErrorEventDefaults() { |
| LOW | …c/polyfills/resize-observer-polyfill/ResizeObserver.js | 246 | (function observeExistingShadowRoots(node) { |
| LOW | …c/polyfills/resize-observer-polyfill/ResizeObserver.js | 462 | function getHTMLElementContentRect(target) { |
| LOW | packages/localize-tools/src/program-analysis.ts | 24 | export function extractMessagesFromProgram(program: ts.Program): { |
| LOW | packages/localize-tools/src/program-analysis.ts | 403 | function replaceExpressionsAndHtmlWithPlaceholders( |
| LOW | packages/localize-tools/src/program-analysis.ts | 480 | function combineAdjacentPlaceholders( |
| LOW | packages/localize-tools/src/program-analysis.ts | 513 | function replaceHtmlWithPlaceholders( |
| LOW | packages/localize-tools/src/messages.ts | 124 | export function validateLocalizedPlaceholders( |
| LOW | packages/localize-tools/src/messages.ts | 195 | function normalizeExpressionInTemplateString(templateString: string): string { |
| LOW | packages/localize-tools/src/typescript.ts | 86 | export function escapeTextContentToEmbedInTemplateLiteral( |
| LOW | packages/localize-tools/src/typescript.ts | 103 | export function parseStringAsTemplateLiteral( |
| LOW | packages/localize-tools/src/config.ts | 26 | export function readConfigFileAndWriteSchema(configPath: string): Config { |
| LOW | packages/localize-tools/src/config.ts | 81 | function writeConfigSchemaIfMissing(config: ConfigFile, configPath: string) { |
| LOW | packages/localize-tools/src/formatters/xml-utils.ts | 11 | export function getOneElementByTagNameOrThrow( |
| LOW | packages/localize-tools/src/formatters/xml-utils.ts | 29 | export function getNonEmptyAttributeOrThrow( |
| LOW | packages/internal-scripts/src/add-browser-exports.ts | 132 | function optionallyAddBrowserExportCondition(exports: Exports): { |
| LOW | packages/tests/src/run-web-tests.ts | 67 | async function startWithNextAvailablePort() { |
| LOW | packages/localize/src/tests/runtime.test.ts | 365 | function assertEventLogEqualsAndFlush(expected: LocaleStatusEventDetail[]) { |
| LOW | packages/lit-html/src/async-directive.ts | 235 | function notifyChildPartConnectedChanged( |
| LOW | packages/lit-html/src/test/directive-helpers_test.ts | 128 | function acceptUncompiledTemplateResult(_v: UncompiledTemplateResult) {} |
| LOW | packages/lit-html/src/test/directive-helpers_test.ts | 130 | function acceptTemplateOrCompiledTemplateResult( |
| LOW | packages/lit-html/src/test/directive-helpers_test.ts | 139 | function acceptTemplateResultMathMl( |
| LOW | packages/ts-transformers/src/idiomatic-decorators.ts | 58 | export function idiomaticDecoratorsTransformer( |
| LOW | packages/ts-transformers/src/preserve-blank-lines.ts | 61 | export function preserveBlankLinesTransformer(): ts.TransformerFactory<ts.SourceFile> { |
| LOW | packages/ts-transformers/src/constructor-cleanup.ts | 31 | export function constructorCleanupTransformer( |
| LOW | …kages/ts-transformers/src/tests/compile-ts-fragment.ts | 77 | export function createTsProgramFromFragment( |
| LOW | packages/ts-transformers/src/internal/util.ts | 60 | function getSuperClassTypeExpression( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | packages/labs/analyzer/src/lib/javascript/jsdoc.ts | 218 | // from `ts.forEachChild` is more robust than `sourceFile.getChildAt(0)`, |
| MEDIUM | …c/polyfills/resize-observer-polyfill/ResizeObserver.js | 484 | // be possible to utilize the getBoundingClientRect if only it's data wasn't |
| MEDIUM | packages/lit-html/src/lit-html.ts | 389 | // Note that the regexes are stateful. We utilize lastIndex and sync it |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | packages/lit-html/src/async-directive.ts | 133 | * @return True if there were children to disconnect; false otherwise |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | packages/labs/ssr-dom-shim/src/index.ts | 97 | * This is a basic implementation of an EventTarget. |
| LOW | packages/lit-html/scripts/check-version-tracker.js | 17 | `Don't forget to update the version tracker string before release!` |
| LOW | …ages/reactive-element/scripts/check-version-tracker.js | 19 | `Don't forget to update the version tracker string before release!` |
| LOW | packages/lit-element/scripts/check-version-tracker.js | 19 | `Don't forget to update the version tracker string before release!` |