We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8809cd commit ccc6f9cCopy full SHA for ccc6f9c
1 file changed
src/deadcode/scanner.py
@@ -141,12 +141,6 @@ def unreferenced_components(self) -> list[Finding]:
141
r"""\b\w+\.(?:_?[\w$]+)|(\w+)\[['"]([\w$-]+)['"]\]""",
142
)
143
144
-# DOM classList API: `el.classList.add('foo')` / `toggle('bar')` / `remove(...)`
145
-# / `contains('baz')`. Dynamic class names referenced here are real uses.
146
-_CLASSLIST_PATTERN = re.compile(
147
- r"""classList\.(?:add|remove|toggle|contains)\(\s*['"]([\w$-]+)['"]""",
148
-)
149
-
150
# Detect a CSS-module import so we know which source-file class accessors
151
# correspond to module classes (``import styles from './x.module.css'``).
152
_CSS_MODULE_IMPORT_PATTERN = re.compile(
0 commit comments