10 lines
293 B
JavaScript
10 lines
293 B
JavaScript
'use strict';
|
|
|
|
module.exports = (context, badBrowser) => ({
|
|
OptionalMemberExpression(node) {
|
|
context.report(node, `Optional Chaining is not supported in ${badBrowser}`)
|
|
},
|
|
ChainExpression(node) {
|
|
context.report(node, `Optional Chaining is not supported in ${badBrowser}`)
|
|
}
|
|
})
|