You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add deprecation warnings for legacy API in RuleTester (#16063)
* feat: add deprecation warnings for legacy API in `RuleTester`
* fix: use unique deprecation code for rules
* refactor: avoid using deprecation codes
* refactor: use object-style syntax
* refactor: use process.emitWarning()
* test: add more cases
* fix: improve check for missing schema
* refactor: update fixtures
* test: add test cases when schema is undefined or null
* fix: lint
`"${ruleName}" rule is using the deprecated function-style format and will stop working in ESLint v9. Please use object-style format: https://eslint.org/docs/developer-guide/working-with-rules`,
318
+
"DeprecationWarning"
319
+
);
320
+
}
321
+
}
322
+
323
+
/**
324
+
* Emit a deprecation warning if rule has options but is missing the "meta.schema" property
`"${ruleName}" rule has options but is missing the "meta.schema" property and will stop working in ESLint v9. Please add a schema: https://eslint.org/docs/developer-guide/working-with-rules#options-schemas`,
0 commit comments