{"library":"polymer-linter","title":"Polymer Linter","description":"Polymer Linter (v3.0.1) is a library for finding suspicious patterns and errors in web projects using Polymer custom elements. It is built on the Polymer Analyzer and provides AST-based linting with high-level feature queries. The linter is typically run via Polymer CLI or integrated into editors like VS Code. It offers rule collections (e.g., polymer-2-hybrid) and individual rules. Release cadence is low, as the project is in maintenance mode. Key differentiators: Polymer-specific linting rules (e.g., attribute checks, behaviors spelling) and tight integration with Polymer toolchain.","language":"javascript","status":"deprecated","last_verified":"Fri May 01","install":{"commands":["npm install polymer-linter"],"cli":{"name":"polymer-lint","version":null}},"imports":["import { Linter } from 'polymer-linter'","import { Warning } from 'polymer-linter'","import { registry } from 'polymer-linter'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { Linter } from 'polymer-linter';\nimport { Analyzer } from 'polymer-analyzer';\n\nconst analyzer = new Analyzer({ urlLoader: { canLoad: () => false, load: () => '', request: () => '' } });\nconst linter = new Linter(analyzer);\n\n// See available rules\nconsole.log(linter.registry.rules);\n\n// Create a lint result\nconst doc = await analyzer.analyze('file.html');\nconst warnings = await linter.lint(doc, { rules: ['polymer-2-hybrid'] });\nfor (const warning of warnings) {\n  console.log(warning.message);\n}","lang":"typescript","description":"Shows how to programmatically use Polymer Linter: create an Analyzer, instantiate Linter, and lint a document with a rule collection.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}