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:
Shaunak Kashyap 2017-04-19 04:31:00 -07:00 committed by GitHub
parent a605b7f478
commit 69c22889ab
7 changed files with 20 additions and 7 deletions

View file

@ -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",

View file

@ -0,0 +1,3 @@
# Custom ESLint rules for Kibana
This package contains custom ESLint rules used for Kibana development.

View file

@ -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
View 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.

View file

@ -1,5 +0,0 @@
{
"name": "eslint-plugin-kibana-custom",
"version": "1.0.0",
"description": "Custom ESLint rules for Kibana"
}

View file

@ -1,6 +1,6 @@
plugins: [
'kibana-custom'
'@elastic/kibana-custom'
]
rules:
no-console: 2