kibana/src
Mikhail Shustov 2489180999
[New platform] Restrict import from core&plugin internals for js files (#33697)
* restrict import from core&plugin internals

* Fork import/no-restricted-paths and add allowSameFolder option

Our use case requires to restrict imports from plugin folders, which names are unknown for us yet. We cannot use 'import/no-restricted-paths' in the current state, because if we define 'from: plugins/*/server/' the rule will report all relative imports in the same folder as well. To fix this problem we added another option 'allowSameFolder' that makes the rule to ignore imports in the same folder.

* update notices

* add basePath option

* support glob pattern instead of reagexp

* remove @notice, make basePath required
2019-03-29 08:48:32 +01:00
..
cli
cli_keystore
cli_plugin
core Migration to Babel7 and @babel/preset-typescript (#33093) 2019-03-26 20:44:03 +00:00
dev Fix regex to select paths correctly. (#34106) 2019-03-28 15:02:17 -05:00
docs
es_archiver [@kbn/expect] "fork" expect.js into repo (#33761) 2019-03-25 09:56:48 -07:00
fixtures Remove deep clone from courier request handler. (#32806) 2019-03-11 17:14:33 -06:00
functional_test_runner [@kbn/expect] "fork" expect.js into repo (#33761) 2019-03-25 09:56:48 -07:00
legacy [New platform] Restrict import from core&plugin internals for js files (#33697) 2019-03-29 08:48:32 +01:00
optimize Migration to Babel7 and @babel/preset-typescript (#33093) 2019-03-26 20:44:03 +00:00
plugins/testbed Replace start with setup lifecycle event (#33455) 2019-03-21 13:27:59 -05:00
setup_node_env chore(NA): regex path support for windows on babel register ignore patterns. (#33946) 2019-03-27 15:16:00 +00:00
test_utils [@kbn/expect] "fork" expect.js into repo (#33761) 2019-03-25 09:56:48 -07:00
type_definitions