mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 19:20:08 +08:00
12 lines
501 B
JavaScript
12 lines
501 B
JavaScript
module.exports = (context, badBrowser) => ({
|
|
// Ignore type annotations that don't assign
|
|
'ClassProperty[static=false]:not([typeAnnotation]:not([value]))'(node) {
|
|
if (node.value === null) return
|
|
context.report(node, `Instance Class Fields are not supported in ${badBrowser}`)
|
|
},
|
|
'PropertyDefinition[static=false]:not([typeAnnotation]:not([value]))'(node) {
|
|
if (node.value === null) return
|
|
context.report(node, `Instance Class Fields are not supported in ${badBrowser}`)
|
|
}
|
|
})
|