* 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 |
||
---|---|---|
.. | ||
rules | ||
index.js | ||
lib.js | ||
package.json | ||
README.md |
Custom ESLint rules for Kibana
This package contains custom ESLint rules used for Kibana development.