
Javascript Lint Invalid: Eqeqeq Invalid
Intentionally lint-bait SAMPLE javascript snippet (eqeqeq-invalid) for rule-engine tests.
- File
- JS · JavaScript
- Use case
- Code parsingSyntax highlighting+1· Conversion set
Find files, editable templates and browser test targets by what you need to make or test. The directory below is cut by format; the two collections under it cut the same library by subject and by workflow.
Page 3 of 6; 24 results per page.

Intentionally lint-bait SAMPLE javascript snippet (eqeqeq-invalid) for rule-engine tests.

Intentionally lint-bait SAMPLE javascript snippet (var-shadow-invalid) for rule-engine tests.

The classic hello-world in modern JavaScript: a minimal function calling console.log, for testing highlighters, Node, and JS parsers.

Intentionally corrupt JavaScript object literal, labelled invalid for error handling. Labelled intentionally invalid in title and description.

A realistic JavaScript snippet with an ES class, private #fields, arrow functions, template literals, a getter, and async/await, for testing highlighters, ESLint, Prettier, and bundlers.

Intentionally invalid JSON (unquoted key + trailing) for strict parser failure tests. Labelled intentionally invalid in title and description.

Julia broadcast operators (.^ .+ ) for highlighter and parser edge cases.

Julia typed Fibonacci with a for-loop: realistic snippet for language tooling.

Minimal Julia hello-world for syntax highlighters and Julia LSP smoke tests.

Julia Macro SAMPLE for Wave G language-tooling coverage.

Intentionally invalid Julia (unclosed function) for linter error-path tests.

Kotlin data class SAMPLE for Kotlin language-server tests.

The classic hello-world in Kotlin (a top-level main function) for testing highlighters, the Kotlin compiler, and parsers.

A realistic Kotlin snippet with data classes, an enum, a sealed result interface, extension functions, and when expressions, for testing highlighters, the Kotlin compiler, ktlint, and parsers.

Tiny Lua coroutine yield loop for language tooling.

Minimal Lua hello for embedder and syntax-highlight tests.

Lua Metatable SAMPLE for Wave G language-tooling coverage.

Lua table with method colon syntax for parsers.

Intentionally invalid Lua table for error handling.

Minimal Nim hello for nimlsp / highlighter tests.

Nim object type plus proc, for Nim AST tooling.

Nim recursive fib proc: realistic snippet.

Nim Template SAMPLE for Wave G language-tooling coverage.

Intentionally invalid Nim for nim check error paths.