mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
## Summary Please see for [context](https://docs.google.com/document/d/1J9mGfmGukgFS-6jqD1zopH8wIRvsqNhDhQbjQZ9hjEY/edit?tab=t.hzzf0a72f9gd) This PR tries to discourage usage of enzyme: - Mark shared test utils that use enzyme as `@deprecated` - Add eslint warning for imports of `enzyme` - Add ci stat counter of imports of `enzyme`
26 lines
1.4 KiB
JavaScript
26 lines
1.4 KiB
JavaScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the "Elastic License
|
|
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
|
|
* Public License v 1"; you may not use this file except in compliance with, at
|
|
* your election, the "Elastic License 2.0", the "GNU Affero General Public
|
|
* License v3.0 only", or the "Server Side Public License, v 1".
|
|
*/
|
|
|
|
module.exports = {
|
|
rules: {
|
|
'require-license-header': require('./rules/require_license_header'),
|
|
'disallow-license-headers': require('./rules/disallow_license_headers'),
|
|
module_migration: require('./rules/module_migration'),
|
|
no_export_all: require('./rules/no_export_all'),
|
|
no_async_promise_body: require('./rules/no_async_promise_body'),
|
|
no_async_foreach: require('./rules/no_async_foreach'),
|
|
no_trailing_import_slash: require('./rules/no_trailing_import_slash'),
|
|
no_constructor_args_in_property_initializers: require('./rules/no_constructor_args_in_property_initializers'),
|
|
no_this_in_property_initializers: require('./rules/no_this_in_property_initializers'),
|
|
no_unsafe_console: require('./rules/no_unsafe_console'),
|
|
no_unsafe_hash: require('./rules/no_unsafe_hash'),
|
|
require_kibana_feature_privileges_naming: require('./rules/require_kibana_feature_privileges_naming'),
|
|
no_deprecated_imports: require('./rules/no_deprecated_imports'),
|
|
},
|
|
};
|