# es/no-accessor-properties
disallow accessor properties
- ✅ The following configurations enable this rule:
plugin:es/no-new-in-es5
andplugin:es/restrict-to-es3
This rule reports ES5 accessor properties as errors.
# Examples
⛔ Examples of incorrect code for this rule:
/*eslint es/no-accessor-properties: error */
var a = {
get a() {},
set a(value) {}
}
class A {
get a() {}
set a(value) {}
}