Files
eslint/tests/fixtures/plugins/node_modules/eslint-plugin-schema-empty-array.js
Milos DjermanovicandGitHub 0fcc99fde2 feat!: Set default schema: [], drop support for function-style rules (#17792)
* drop support for function-style rules in flat-rule-tester

* drop support for function-style rules in rule-tester

* drop support for function-style rules in config-rule (eslint-fuzzer)

* add rule object checks to rule testers

* drop support for function-style rules in flat config and Linter#defineRule

* update JSDoc

* add rule object checks to Linter

* drop support for function-style rules in eslintrc

* remove custom-rules-deprecated.md

* update flat config getRuleOptionsSchema for schema changes

* add back and update custom-rules-deprecated.md

* show ruleId in error messages for invalid schema

* throw error in Linter if rule has invalid schema

* add short description of meta.schema to type errors in flat-rule-tester

* throw error for empty object schema in flat-rule-tester

* update rule-tester for schema changes

* add integration tests for eslintrc schema changes

* add more flat-config-array unit tests for schema changes

* throw error in Linter in eslintrc mode if rule has invalid schema

* update docs for schema changes

* use eslintrc v3
2023-12-27 13:55:30 -05:00

17 lines
345 B
JavaScript

module.exports = {
rules: {
rule1: {
meta: {
schema: []
},
create(context) {
return {
Program(node) {
context.report({ node, message: `Hello` });
}
};
}
}
},
};