mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Kibana-related packages (#11308)
* Make sure package is published under @elastic org namespace * Preparing packages/ for Kibana-related packages * Folder structure mirrors package name * Add note on naming consistency * s/packages/node modules/ for removing potention confusion with Kibana system packages * Prefixing the eslint rule with package scope (i.e. org namespace) * Adding README * Bumping up version for release * Adding repository information to package.json * Bumping up version for release * URL-encoding repository link + bumping up version for release * Using published version
This commit is contained in:
parent
a605b7f478
commit
69c22889ab
7 changed files with 20 additions and 7 deletions
|
@ -217,7 +217,7 @@
|
|||
"eslint": "3.11.1",
|
||||
"eslint-plugin-babel": "4.0.0",
|
||||
"eslint-plugin-jest": "19.0.1",
|
||||
"eslint-plugin-kibana-custom": "file:packages/custom-eslint-rules",
|
||||
"@elastic/eslint-plugin-kibana-custom": "1.0.3",
|
||||
"eslint-plugin-mocha": "4.7.0",
|
||||
"eslint-plugin-react": "6.10.3",
|
||||
"event-stream": "3.3.2",
|
||||
|
|
3
packages/@elastic/eslint-plugin-kibana-custom/README.md
Normal file
3
packages/@elastic/eslint-plugin-kibana-custom/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Custom ESLint rules for Kibana
|
||||
|
||||
This package contains custom ESLint rules used for Kibana development.
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"name": "@elastic/eslint-plugin-kibana-custom",
|
||||
"version": "1.0.3",
|
||||
"description": "Custom ESLint rules for Kibana",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/elastic/kibana/tree/master/packages/%40elastic/eslint-plugin-kibana-custom"
|
||||
}
|
||||
}
|
6
packages/README.md
Normal file
6
packages/README.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
## Kibana-related node modules
|
||||
|
||||
This folder contains node modules that are created by Kibana developers, for use in Kibana and its plugins.
|
||||
|
||||
For each such node module, create a sub-folder in this folder. The path/name of the folder should mirror the `name` in the node module's `package.json`. To publish the node module as an npm package, `cd` into the package's sub-folder, and run `npm publish` as usual.
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"name": "eslint-plugin-kibana-custom",
|
||||
"version": "1.0.0",
|
||||
"description": "Custom ESLint rules for Kibana"
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
plugins: [
|
||||
'kibana-custom'
|
||||
'@elastic/kibana-custom'
|
||||
]
|
||||
rules:
|
||||
no-console: 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue