kibana/packages/kbn-eslint-plugin-eslint/package.json
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

16 lines
307 B
JSON

{
"name": "@kbn/eslint-plugin-eslint",
"version": "1.0.0",
"private": true,
"license": "Apache-2.0",
"peerDependencies": {
"eslint": "^5.14.1",
"babel-eslint": "^10.0.1"
},
"dependencies": {
"micromatch": "3.1.10",
"dedent": "^0.7.0",
"eslint-module-utils": "^2.3.0"
}
}