mirror of
https://github.com/elastic/kibana.git
synced 2025-04-26 02:37:44 -04:00
## Summary ESLint was not correctly migrating tags that involved tags with multiple prefixes or helper functions. Specifically, it was failing to handle: - Tags using helper functions, such as: `['access:securitySolution', routeTagHelper('someTag')]`. - Nested prefixes like: `['access:ml:some-tag']`. This resulted in incomplete tag migrations. Also added `MIGRATE_DISABLED_AUTHZ` flag which allows to skip migration for routes opted out from authorization with `MIGRATE_DISABLED_AUTHZ=false` ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios __Closes: https://github.com/elastic/kibana/issues/194798__
25 lines
1.3 KiB
JavaScript
25 lines
1.3 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'),
|
|
no_deprecated_authz_config: require('./rules/no_deprecated_authz_config'),
|
|
},
|
|
};
|