id-denylist
eslint
No autofix
eslint.config.js
export default [
{
rules: {
"id-denylist": "error",
},
},
];const data = { ...values };
function callback() {
// ...
}
element.callback = function() {
// ...
};
const itemSet = {
data: [...values]
};
class Foo {
data = [];
}
class Bar {
#data = [];
}
class Baz {
callback() {}
}
class Qux {
#callback() {}
}const encodingOptions = {...values};
function processFileResult() {
// ...
}
element.successHandler = function() {
// ...
};
const itemSet = {
entities: [...values]
};
callback(); // all function calls are ignored
foo.callback(); // all function calls are ignored
foo.data; // all property names that are not assignments are ignored
class Foo {
items = [];
}
class Bar {
#items = [];
}
class Baz {
method() {}
}
// …Examples from the ESLint documentation.
id-denylist
eslint
export default [
{
rules: {
"id-denylist": "error",
},
},
];id-denylist
eslint plugin · style
{
"rules": {
"id-denylist": "error"
}
}Biome does not have this rule.
Require identifiers to match a specified regular expression
Enforce the consistent use of either function declarations or expressions assigned to variables
Require variables within the same declaration block to be sorted
Disallow async functions which have no await expression