From 5ac3b647bbaffb255e743557dde6546aab0aa2a7 Mon Sep 17 00:00:00 2001 From: Spencer Date: Tue, 9 Feb 2016 16:12:37 -0700 Subject: [PATCH 01/33] Initial commit --- .gitignore | 33 +++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000..e920c16718d13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# Logs +logs +*.log +npm-debug.log* + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +node_modules + +# Optional npm cache directory +.npm + +# Optional REPL history +.node_repl_history diff --git a/README.md b/README.md new file mode 100644 index 0000000000000..96b36ca61cc4c --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# eslint-config-kibana +The eslint config used by the kibana team From 8184893b944e53935b7a4bf9405446ce88b35132 Mon Sep 17 00:00:00 2001 From: spalger Date: Tue, 9 Feb 2016 16:24:15 -0700 Subject: [PATCH 02/33] added actual config --- README.md | 1 + index.js | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 25 +++++++++++++++++ 3 files changed, 103 insertions(+) create mode 100644 index.js create mode 100644 package.json diff --git a/README.md b/README.md index 96b36ca61cc4c..4b20fc999b48a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # eslint-config-kibana + The eslint config used by the kibana team diff --git a/index.js b/index.js new file mode 100644 index 0000000000000..d663c98a9fd8e --- /dev/null +++ b/index.js @@ -0,0 +1,77 @@ +module.exports = { + parser: 'babel-eslint', + + plugins: [ + 'mocha' + ], + + env: { + es6: true, + amd: true, + node: true, + mocha: true, + browser: true, + }, + + rules: { + 'block-scoped-var': 2, + 'camelcase': [ 2, { properties: 'never' } ], + 'comma-dangle': 0, + 'comma-style': [ 2, 'last' ], + 'consistent-return': 0, + 'curly': [ 2, 'multi-line' ], + 'dot-location': [ 2, 'property' ], + 'dot-notation': [ 2, { allowKeywords: true } ], + 'eqeqeq': [ 2, 'allow-null' ], + 'guard-for-in': 2, + 'indent': [ 2, 2, { SwitchCase: 1 } ], + 'key-spacing': [ 0, { align: 'value' } ], + 'max-len': [ 2, 140, 2, { ignoreComments: true, ignoreUrls: true } ], + 'new-cap': [ 2, { capIsNewExceptions: [ 'Private' ] } ], + 'no-bitwise': 0, + 'no-caller': 2, + 'no-cond-assign': 0, + 'no-debugger': 2, + 'no-empty': 2, + 'no-eval': 2, + 'no-extend-native': 2, + 'no-extra-parens': 0, + 'no-irregular-whitespace': 2, + 'no-iterator': 2, + 'no-loop-func': 2, + 'no-multi-spaces': 0, + 'no-multi-str': 2, + 'no-nested-ternary': 2, + 'no-new': 0, + 'no-path-concat': 0, + 'no-proto': 2, + 'no-return-assign': 0, + 'no-script-url': 2, + 'no-sequences': 2, + 'no-shadow': 0, + 'no-trailing-spaces': 2, + 'no-undef': 2, + 'no-underscore-dangle': 0, + 'no-unused-expressions': 0, + 'no-unused-vars': 0, + 'no-use-before-define': [ 2, 'nofunc' ], + 'no-with': 2, + 'one-var': [ 2, 'never' ], + 'quotes': [ 2, 'single' ], + 'semi-spacing': [ 2, { before: false, after: true } ], + 'semi': [ 2, 'always' ], + 'space-after-keywords': [ 2, 'always' ], + 'space-before-blocks': [ 2, 'always' ], + 'space-before-function-paren': [ 2, { anonymous: 'always', named: 'never' } ], + 'space-in-parens': [ 2, 'never' ], + 'space-infix-ops': [ 2, { int32Hint: false } ], + 'space-return-throw-case': [ 2 ], + 'space-unary-ops': [ 2 ], + 'strict': [ 2, 'never' ], + 'valid-typeof': 2, + 'wrap-iife': [ 2, 'outside' ], + 'yoda': 0, + 'mocha/no-exclusive-tests': 2, + 'mocha/handle-done-callback': 2, + } +}; diff --git a/package.json b/package.json new file mode 100644 index 0000000000000..4ecdff0ab6923 --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "name": "@elastic/eslint-config-kibana", + "version": "0.0.0", + "description": "The eslint config used by the kibana team", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/elastic/eslint-config-kibana.git" + }, + "keywords": [], + "author": "Spencer Alger ", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/elastic/eslint-config-kibana/issues" + }, + "homepage": "https://github.com/elastic/eslint-config-kibana#readme", + "peerDependencies": { + "eslint": ">=1.0.0", + "eslint-plugin-mocha": "1.1.0", + "babel-eslint": "4.1.8" + } +} From 2e07914bd156f4a7d7bfe3ddd563bb0d7171579c Mon Sep 17 00:00:00 2001 From: spalger Date: Tue, 9 Feb 2016 16:47:28 -0700 Subject: [PATCH 03/33] version 0.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4ecdff0ab6923..37c40b38a1dd0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.0.0", + "version": "0.0.1", "description": "The eslint config used by the kibana team", "main": "index.js", "scripts": { From f6d0902d4d2c0d9d0dc32e0bcf95ecea652d6a22 Mon Sep 17 00:00:00 2001 From: spalger Date: Tue, 9 Feb 2016 16:52:12 -0700 Subject: [PATCH 04/33] version 0.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37c40b38a1dd0..55e9939d2aedf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.0.1", + "version": "0.0.2", "description": "The eslint config used by the kibana team", "main": "index.js", "scripts": { From e4c75100a9786a33c1f7ab57138b334bb8c17fa4 Mon Sep 17 00:00:00 2001 From: Court Ewing Date: Fri, 1 Apr 2016 14:15:36 -0400 Subject: [PATCH 05/33] [no-const-assign] Disallow assignment to const http://eslint.org/docs/rules/no-const-assign --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index d663c98a9fd8e..5089e109f3d55 100644 --- a/index.js +++ b/index.js @@ -31,6 +31,7 @@ module.exports = { 'no-bitwise': 0, 'no-caller': 2, 'no-cond-assign': 0, + 'no-const-assign': 2, 'no-debugger': 2, 'no-empty': 2, 'no-eval': 2, From 6dbd10e2f04037b75d497583bff6c80c79aa77c2 Mon Sep 17 00:00:00 2001 From: Court Ewing Date: Fri, 1 Apr 2016 14:22:03 -0400 Subject: [PATCH 06/33] [no-redeclare] Disallow redeclaring variables http://eslint.org/docs/rules/no-redeclare --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 5089e109f3d55..8e8b27e9d2d78 100644 --- a/index.js +++ b/index.js @@ -46,6 +46,7 @@ module.exports = { 'no-new': 0, 'no-path-concat': 0, 'no-proto': 2, + 'no-redeclare': 2, 'no-return-assign': 0, 'no-script-url': 2, 'no-sequences': 2, From 9e48ff65d2562e71966bf97ed28957ec6bddf5ac Mon Sep 17 00:00:00 2001 From: Court Ewing Date: Fri, 1 Apr 2016 16:07:39 -0400 Subject: [PATCH 07/33] version 0.0.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 55e9939d2aedf..6f2884d8fdb87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.0.2", + "version": "0.0.3", "description": "The eslint config used by the kibana team", "main": "index.js", "scripts": { From 461321daace3d16cddb0c491c45ee005d40216f6 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Mon, 4 Jul 2016 20:18:59 -0700 Subject: [PATCH 08/33] [no-unused-vars]: Disallow declaration of variables that are not used in the code. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8e8b27e9d2d78..20f6106117039 100644 --- a/index.js +++ b/index.js @@ -55,7 +55,8 @@ module.exports = { 'no-undef': 2, 'no-underscore-dangle': 0, 'no-unused-expressions': 0, - 'no-unused-vars': 0, + // Disallow declaration of variables that are not used in the code. + 'no-unused-vars': [2, { vars: 'local' }], 'no-use-before-define': [ 2, 'nofunc' ], 'no-with': 2, 'one-var': [ 2, 'never' ], From 2cfe85cc28ee550af75a71e2ffc229a0f01ba44f Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Tue, 5 Jul 2016 10:56:35 -0700 Subject: [PATCH 09/33] Bump to 0.1.0. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6f2884d8fdb87..516833d23d302 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.0.3", + "version": "0.1.0", "description": "The eslint config used by the kibana team", "main": "index.js", "scripts": { From d5b87d41afe59b01879f7205acbaccca2e9530f6 Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 24 Aug 2016 11:34:06 -0700 Subject: [PATCH 10/33] upgrade deps in preperation for babel6 transition --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 516833d23d302..5417d686ff2a7 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ }, "homepage": "https://github.com/elastic/eslint-config-kibana#readme", "peerDependencies": { - "eslint": ">=1.0.0", - "eslint-plugin-mocha": "1.1.0", - "babel-eslint": "4.1.8" + "eslint": ">=3, <4", + "eslint-plugin-mocha": "4.4.0", + "babel-eslint": "6.1.2" } } From 52f42ecfbc6e0f95cafdc31e94ff51feb311d6ea Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 24 Aug 2016 13:17:21 -0700 Subject: [PATCH 11/33] 0.2.0-alpha1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5417d686ff2a7..46d608f8a3833 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.1.0", + "version": "0.2.0-alpha1", "description": "The eslint config used by the kibana team", "main": "index.js", "scripts": { From 782b60f7c215cea6b3aa83d0af81688b8dce687e Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 24 Aug 2016 17:10:50 -0700 Subject: [PATCH 12/33] use yaml for readability --- .eslintrc.yaml | 77 ++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + .npmignore | 2 ++ index.js | 80 ---------------------------------------------- package.json | 8 +++-- tasks/writejson.js | 11 +++++++ 6 files changed, 97 insertions(+), 82 deletions(-) create mode 100644 .eslintrc.yaml create mode 100644 .npmignore delete mode 100644 index.js create mode 100644 tasks/writejson.js diff --git a/.eslintrc.yaml b/.eslintrc.yaml new file mode 100644 index 0000000000000..26e08f76da6b2 --- /dev/null +++ b/.eslintrc.yaml @@ -0,0 +1,77 @@ +--- +parser: babel-eslint + +plugins: + - mocha + +env: + es6: true + amd: true + node: true + mocha: true + browser: true + +rules: + block-scoped-var: error + camelcase: [ error, { properties: never } ] + comma-dangle: off + comma-style: [ error, last ] + consistent-return: off + curly: [ error, multi-line ] + dot-location: [ error, property ] + dot-notation: [ error, { allowKeywords: true } ] + eqeqeq: [ error, allow-null ] + guard-for-in: error + indent: [ error, 2, { SwitchCase: 1 } ] + key-spacing: [ off, { align: value } ] + max-len: [ error, 140, 2, { ignoreComments: true, ignoreUrls: true } ] + new-cap: [ error, { capIsNewExceptions: [ Private ] } ] + no-bitwise: off + no-caller: error + no-cond-assign: off + no-const-assign: error + no-debugger: error + no-empty: error + no-eval: error + no-extend-native: error + no-extra-parens: off + no-irregular-whitespace: error + no-iterator: error + no-loop-func: error + no-multi-spaces: off + no-multi-str: error + no-nested-ternary: error + no-new: off + no-path-concat: off + no-proto: error + no-redeclare: error + no-return-assign: off + no-script-url: error + no-sequences: error + no-shadow: off + no-trailing-spaces: error + no-undef: error + no-underscore-dangle: off + no-unused-expressions: off + # Disallow declaration of variables that are not used in the code. + no-unused-vars: [ error ] + no-use-before-define: [ error, nofunc ] + no-with: error + one-var: [ error, never ] + quotes: [ error, single ] + semi-spacing: [ error, { before: false, after: true } ] + semi: [ error, always ] + no-extra-semi: [ error ] + space-before-blocks: [ error, always ] + space-before-function-paren: [ error, { anonymous: always, named: never } ] + space-in-parens: [ error, never ] + space-infix-ops: [ error, { int32Hint: false } ] + space-unary-ops: [ error ] + strict: [ error, never ] + valid-typeof: error + wrap-iife: [ error, outside ] + yoda: off + mocha/no-exclusive-tests: error + mocha/handle-done-callback: error + no-var: error + prefer-const: error diff --git a/.gitignore b/.gitignore index e920c16718d13..15559ebb608c4 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ node_modules # Optional REPL history .node_repl_history +.eslintrc.json diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000000000..2ba159593147d --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +.eslintrc.yaml +tasks diff --git a/index.js b/index.js deleted file mode 100644 index 20f6106117039..0000000000000 --- a/index.js +++ /dev/null @@ -1,80 +0,0 @@ -module.exports = { - parser: 'babel-eslint', - - plugins: [ - 'mocha' - ], - - env: { - es6: true, - amd: true, - node: true, - mocha: true, - browser: true, - }, - - rules: { - 'block-scoped-var': 2, - 'camelcase': [ 2, { properties: 'never' } ], - 'comma-dangle': 0, - 'comma-style': [ 2, 'last' ], - 'consistent-return': 0, - 'curly': [ 2, 'multi-line' ], - 'dot-location': [ 2, 'property' ], - 'dot-notation': [ 2, { allowKeywords: true } ], - 'eqeqeq': [ 2, 'allow-null' ], - 'guard-for-in': 2, - 'indent': [ 2, 2, { SwitchCase: 1 } ], - 'key-spacing': [ 0, { align: 'value' } ], - 'max-len': [ 2, 140, 2, { ignoreComments: true, ignoreUrls: true } ], - 'new-cap': [ 2, { capIsNewExceptions: [ 'Private' ] } ], - 'no-bitwise': 0, - 'no-caller': 2, - 'no-cond-assign': 0, - 'no-const-assign': 2, - 'no-debugger': 2, - 'no-empty': 2, - 'no-eval': 2, - 'no-extend-native': 2, - 'no-extra-parens': 0, - 'no-irregular-whitespace': 2, - 'no-iterator': 2, - 'no-loop-func': 2, - 'no-multi-spaces': 0, - 'no-multi-str': 2, - 'no-nested-ternary': 2, - 'no-new': 0, - 'no-path-concat': 0, - 'no-proto': 2, - 'no-redeclare': 2, - 'no-return-assign': 0, - 'no-script-url': 2, - 'no-sequences': 2, - 'no-shadow': 0, - 'no-trailing-spaces': 2, - 'no-undef': 2, - 'no-underscore-dangle': 0, - 'no-unused-expressions': 0, - // Disallow declaration of variables that are not used in the code. - 'no-unused-vars': [2, { vars: 'local' }], - 'no-use-before-define': [ 2, 'nofunc' ], - 'no-with': 2, - 'one-var': [ 2, 'never' ], - 'quotes': [ 2, 'single' ], - 'semi-spacing': [ 2, { before: false, after: true } ], - 'semi': [ 2, 'always' ], - 'space-after-keywords': [ 2, 'always' ], - 'space-before-blocks': [ 2, 'always' ], - 'space-before-function-paren': [ 2, { anonymous: 'always', named: 'never' } ], - 'space-in-parens': [ 2, 'never' ], - 'space-infix-ops': [ 2, { int32Hint: false } ], - 'space-return-throw-case': [ 2 ], - 'space-unary-ops': [ 2 ], - 'strict': [ 2, 'never' ], - 'valid-typeof': 2, - 'wrap-iife': [ 2, 'outside' ], - 'yoda': 0, - 'mocha/no-exclusive-tests': 2, - 'mocha/handle-done-callback': 2, - } -}; diff --git a/package.json b/package.json index 46d608f8a3833..0e3e7c4ffbeab 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,10 @@ "name": "@elastic/eslint-config-kibana", "version": "0.2.0-alpha1", "description": "The eslint config used by the kibana team", - "main": "index.js", + "main": ".eslintrc.json", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "prepublish": "node tasks/writejson.js" }, "repository": { "type": "git", @@ -21,5 +22,8 @@ "eslint": ">=3, <4", "eslint-plugin-mocha": "4.4.0", "babel-eslint": "6.1.2" + }, + "devDependencies": { + "js-yaml": "^3.6.1" } } diff --git a/tasks/writejson.js b/tasks/writejson.js new file mode 100644 index 0000000000000..a7afe32359ffc --- /dev/null +++ b/tasks/writejson.js @@ -0,0 +1,11 @@ +const read = require('fs').readFileSync; +const write = require('fs').writeFileSync; +const resolve = require('path').resolve; +const parse = require('js-yaml').safeLoad; + +const from = resolve(__dirname, '../.eslintrc.yaml'); +const to = resolve(__dirname, '../.eslintrc.json'); + +const config = parse(read(from, 'utf8')); + +write(to, JSON.stringify(config, null, 2), 'utf8'); From 09a0b2df9116fce2304ac3d5f12d0baa72bd3991 Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 24 Aug 2016 17:14:46 -0700 Subject: [PATCH 13/33] 0.2.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0e3e7c4ffbeab..c29d504e29ae4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.2.0-alpha1", + "version": "0.2.0", "description": "The eslint config used by the kibana team", "main": ".eslintrc.json", "scripts": { From 23e4747896651168bc54018e5d070fcf94483b59 Mon Sep 17 00:00:00 2001 From: spalger Date: Fri, 2 Dec 2016 16:01:48 -0700 Subject: [PATCH 14/33] update/pin peed dependency versions --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c29d504e29ae4..7ed28c31c645e 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ }, "homepage": "https://github.com/elastic/eslint-config-kibana#readme", "peerDependencies": { - "eslint": ">=3, <4", - "eslint-plugin-mocha": "4.4.0", + "eslint": "3.11.1", + "eslint-plugin-mocha": "4.7.0", "babel-eslint": "6.1.2" }, "devDependencies": { From e6665ca095107113ff38781c74ecfd95fe467a22 Mon Sep 17 00:00:00 2001 From: spalger Date: Fri, 2 Dec 2016 16:01:58 -0700 Subject: [PATCH 15/33] 0.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7ed28c31c645e..07e2b614ca969 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.2.0", + "version": "0.2.1", "description": "The eslint config used by the kibana team", "main": ".eslintrc.json", "scripts": { From d5b80bd4d3334c506190890edf0aced9698014c1 Mon Sep 17 00:00:00 2001 From: spalger Date: Tue, 13 Dec 2016 16:36:46 -0700 Subject: [PATCH 16/33] [quotes] allow template literals This allows eslint to validate this rule from the styleguide: https://github.com/elastic/kibana/blob/master/style_guides/js_style_guide.md#use-template-strings-to-avoid-escaping-single-quotes --- .eslintrc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 26e08f76da6b2..eed5df12819df 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -58,7 +58,7 @@ rules: no-use-before-define: [ error, nofunc ] no-with: error one-var: [ error, never ] - quotes: [ error, single ] + quotes: [ error, single, { allowTemplateLiterals: true } ] semi-spacing: [ error, { before: false, after: true } ] semi: [ error, always ] no-extra-semi: [ error ] From 5f88089ece88bebc59e81a50522e1f23bb8c78c3 Mon Sep 17 00:00:00 2001 From: spalger Date: Tue, 13 Dec 2016 16:37:24 -0700 Subject: [PATCH 17/33] 0.2.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 07e2b614ca969..9d38b2818c0c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.2.1", + "version": "0.2.2", "description": "The eslint config used by the kibana team", "main": ".eslintrc.json", "scripts": { From e55b573294c4013fa5a0be3e6b59d25f7fcc9375 Mon Sep 17 00:00:00 2001 From: spalger Date: Tue, 13 Dec 2016 18:30:26 -0700 Subject: [PATCH 18/33] add object-curly-spacing and no-global-assign rules --- .eslintrc.yaml | 5 +++++ package.json | 1 + 2 files changed, 6 insertions(+) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index eed5df12819df..a02fc1847bc05 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -3,6 +3,7 @@ parser: babel-eslint plugins: - mocha + - babel env: es6: true @@ -35,6 +36,7 @@ rules: no-eval: error no-extend-native: error no-extra-parens: off + no-global-assign: error no-irregular-whitespace: error no-iterator: error no-loop-func: error @@ -57,6 +59,7 @@ rules: no-unused-vars: [ error ] no-use-before-define: [ error, nofunc ] no-with: error + object-curly-spacing: off # overriden with babel/object-curly-spacing one-var: [ error, never ] quotes: [ error, single, { allowTemplateLiterals: true } ] semi-spacing: [ error, { before: false, after: true } ] @@ -75,3 +78,5 @@ rules: mocha/handle-done-callback: error no-var: error prefer-const: error + + babel/object-curly-spacing: [ error, always ] diff --git a/package.json b/package.json index 9d38b2818c0c6..c8dcf80814c95 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "peerDependencies": { "eslint": "3.11.1", "eslint-plugin-mocha": "4.7.0", + "eslint-plugin-babel": "4.0.0", "babel-eslint": "6.1.2" }, "devDependencies": { From 9f2556266d9e61b5e5b0f85253dab747855bd425 Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 14 Dec 2016 08:54:29 -0700 Subject: [PATCH 19/33] sort .eslintrc.yaml rules --- .eslintrc.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index a02fc1847bc05..2425072e44460 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -13,6 +13,7 @@ env: browser: true rules: + babel/object-curly-spacing: [ error, always ] block-scoped-var: error camelcase: [ error, { properties: never } ] comma-dangle: off @@ -26,6 +27,8 @@ rules: indent: [ error, 2, { SwitchCase: 1 } ] key-spacing: [ off, { align: value } ] max-len: [ error, 140, 2, { ignoreComments: true, ignoreUrls: true } ] + mocha/handle-done-callback: error + mocha/no-exclusive-tests: error new-cap: [ error, { capIsNewExceptions: [ Private ] } ] no-bitwise: off no-caller: error @@ -36,6 +39,7 @@ rules: no-eval: error no-extend-native: error no-extra-parens: off + no-extra-semi: [ error ] no-global-assign: error no-irregular-whitespace: error no-iterator: error @@ -55,16 +59,16 @@ rules: no-undef: error no-underscore-dangle: off no-unused-expressions: off - # Disallow declaration of variables that are not used in the code. no-unused-vars: [ error ] no-use-before-define: [ error, nofunc ] + no-var: error no-with: error object-curly-spacing: off # overriden with babel/object-curly-spacing one-var: [ error, never ] + prefer-const: error quotes: [ error, single, { allowTemplateLiterals: true } ] semi-spacing: [ error, { before: false, after: true } ] semi: [ error, always ] - no-extra-semi: [ error ] space-before-blocks: [ error, always ] space-before-function-paren: [ error, { anonymous: always, named: never } ] space-in-parens: [ error, never ] @@ -74,9 +78,3 @@ rules: valid-typeof: error wrap-iife: [ error, outside ] yoda: off - mocha/no-exclusive-tests: error - mocha/handle-done-callback: error - no-var: error - prefer-const: error - - babel/object-curly-spacing: [ error, always ] From 9c7da2f73f0ff197bd568e86f05862a92d1de81a Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 14 Dec 2016 08:59:54 -0700 Subject: [PATCH 20/33] 0.3.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c8dcf80814c95..18231473307f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.2.2", + "version": "0.3.0", "description": "The eslint config used by the kibana team", "main": ".eslintrc.json", "scripts": { From 40652fb7804ca6bad6658f5822be1b6d6aaf790f Mon Sep 17 00:00:00 2001 From: spalger Date: Mon, 20 Mar 2017 16:32:29 -0700 Subject: [PATCH 21/33] add basic react support --- .eslintrc.yaml | 5 +++++ package.json | 1 + 2 files changed, 6 insertions(+) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 2425072e44460..77bdba174c6e4 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -4,6 +4,7 @@ parser: babel-eslint plugins: - mocha - babel + - react env: es6: true @@ -78,3 +79,7 @@ rules: valid-typeof: error wrap-iife: [ error, outside ] yoda: off + react/jsx-uses-react: error + react/jsx-uses-vars: error + react/jsx-no-undef: error + react/jsx-pascal-case: error \ No newline at end of file diff --git a/package.json b/package.json index 18231473307f4..d66c9c5a9e137 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "babel-eslint": "6.1.2" }, "devDependencies": { + "eslint-plugin-react": "^6.10.3", "js-yaml": "^3.6.1" } } From 01ab7e474a533d1be210a49b1da6f416f4e92968 Mon Sep 17 00:00:00 2001 From: spalger Date: Mon, 20 Mar 2017 16:32:39 -0700 Subject: [PATCH 22/33] 0.4.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d66c9c5a9e137..fe66780bad8df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.3.0", + "version": "0.4.0", "description": "The eslint config used by the kibana team", "main": ".eslintrc.json", "scripts": { From be8ad8f2e3ec7adf76c7358cab3d9962e6a3f00e Mon Sep 17 00:00:00 2001 From: Kim Joar Bekkelund Date: Mon, 3 Apr 2017 19:15:06 -0400 Subject: [PATCH 23/33] Disallow using 'context' in tests --- .eslintrc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 77bdba174c6e4..9dae06885f93e 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -52,6 +52,7 @@ rules: no-path-concat: off no-proto: error no-redeclare: error + no-restricted-globals: [ error, context ] no-return-assign: off no-script-url: error no-sequences: error From 4244ba0c0507bb625fe7ba8d6dde731c5128c89b Mon Sep 17 00:00:00 2001 From: Kim Joar Bekkelund Date: Tue, 4 Apr 2017 10:45:13 -0400 Subject: [PATCH 24/33] 0.5.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fe66780bad8df..55cc051762fac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.4.0", + "version": "0.5.0", "description": "The eslint config used by the kibana team", "main": ".eslintrc.json", "scripts": { From e5883a04bf3141e19cbf13794fae0258eb9a6577 Mon Sep 17 00:00:00 2001 From: Spencer Date: Thu, 1 Jun 2017 10:16:28 -0700 Subject: [PATCH 25/33] move from .eslintrc.yaml to .eslintrc.js without .json generation (#6) --- .eslintrc.js | 90 ++++++++++++++++++++++++++++++++++++++++++++++ .eslintrc.yaml | 86 -------------------------------------------- package.json | 10 ++---- tasks/writejson.js | 11 ------ 4 files changed, 93 insertions(+), 104 deletions(-) create mode 100644 .eslintrc.js delete mode 100644 .eslintrc.yaml delete mode 100644 tasks/writejson.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000000000..91be416a453b9 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,90 @@ +module.exports = { + parser: 'babel-eslint', + + plugins: [ + 'mocha', + 'babel', + 'react', + ], + + env: { + es6: true, + amd: true, + node: true, + mocha: true, + browser: true, + }, + + rules: { + 'babel/object-curly-spacing': [ 'error', 'always' ], + 'block-scoped-var': 'error', + camelcase: [ 'error', { properties: 'never' } ], + 'comma-dangle': 'off', + 'comma-style': [ 'error', 'last' ], + 'consistent-return': 'off', + curly: [ 'error', 'multi-line' ], + 'dot-location': [ 'error', 'property' ], + 'dot-notation': [ 'error', { allowKeywords: true } ], + eqeqeq: [ 'error', 'allow-null' ], + 'guard-for-in': 'error', + indent: [ 'error', 2, { SwitchCase: 1 } ], + 'key-spacing': [ 'off', { align: 'value' } ], + 'max-len': [ 'error', 140, 2, { ignoreComments: true, ignoreUrls: true } ], + 'mocha/handle-done-callback': 'error', + 'mocha/no-exclusive-tests': 'error', + 'new-cap': [ 'error', { capIsNewExceptions: [ 'Private' ] } ], + 'no-bitwise': 'off', + 'no-caller': 'error', + 'no-cond-assign': 'off', + 'no-const-assign': 'error', + 'no-debugger': 'error', + 'no-empty': 'error', + 'no-eval': 'error', + 'no-extend-native': 'error', + 'no-extra-parens': 'off', + 'no-extra-semi': [ 'error' ], + 'no-global-assign': 'error', + 'no-irregular-whitespace': 'error', + 'no-iterator': 'error', + 'no-loop-func': 'error', + 'no-multi-spaces': 'off', + 'no-multi-str': 'error', + 'no-nested-ternary': 'error', + 'no-new': 'off', + 'no-path-concat': 'off', + 'no-proto': 'error', + 'no-redeclare': 'error', + 'no-restricted-globals': [ 'error', 'context' ], + 'no-return-assign': 'off', + 'no-script-url': 'error', + 'no-sequences': 'error', + 'no-shadow': 'off', + 'no-trailing-spaces': 'error', + 'no-undef': 'error', + 'no-underscore-dangle': 'off', + 'no-unused-expressions': 'off', + 'no-unused-vars': [ 'error' ], + 'no-use-before-define': [ 'error', 'nofunc' ], + 'no-var': 'error', + 'no-with': 'error', + 'object-curly-spacing': 'off', // overriden with babel/object-curly-spacing + 'one-var': [ 'error', 'never' ], + 'prefer-const': 'error', + quotes: [ 'error', 'single', { allowTemplateLiterals: true } ], + 'semi-spacing': [ 'error', { before: false, after: true } ], + semi: [ 'error', 'always' ], + 'space-before-blocks': [ 'error', 'always' ], + 'space-before-function-paren': [ 'error', { anonymous: 'always', named: 'never' } ], + 'space-in-parens': [ 'error', 'never' ], + 'space-infix-ops': [ 'error', { int32Hint: false } ], + 'space-unary-ops': [ 'error' ], + strict: [ 'error', 'never' ], + 'valid-typeof': 'error', + 'wrap-iife': [ 'error', 'outside' ], + yoda: 'off', + 'react/jsx-uses-react': 'error', + 'react/jsx-uses-vars': 'error', + 'react/jsx-no-undef': 'error', + 'react/jsx-pascal-case': 'error', + } +} \ No newline at end of file diff --git a/.eslintrc.yaml b/.eslintrc.yaml deleted file mode 100644 index 9dae06885f93e..0000000000000 --- a/.eslintrc.yaml +++ /dev/null @@ -1,86 +0,0 @@ ---- -parser: babel-eslint - -plugins: - - mocha - - babel - - react - -env: - es6: true - amd: true - node: true - mocha: true - browser: true - -rules: - babel/object-curly-spacing: [ error, always ] - block-scoped-var: error - camelcase: [ error, { properties: never } ] - comma-dangle: off - comma-style: [ error, last ] - consistent-return: off - curly: [ error, multi-line ] - dot-location: [ error, property ] - dot-notation: [ error, { allowKeywords: true } ] - eqeqeq: [ error, allow-null ] - guard-for-in: error - indent: [ error, 2, { SwitchCase: 1 } ] - key-spacing: [ off, { align: value } ] - max-len: [ error, 140, 2, { ignoreComments: true, ignoreUrls: true } ] - mocha/handle-done-callback: error - mocha/no-exclusive-tests: error - new-cap: [ error, { capIsNewExceptions: [ Private ] } ] - no-bitwise: off - no-caller: error - no-cond-assign: off - no-const-assign: error - no-debugger: error - no-empty: error - no-eval: error - no-extend-native: error - no-extra-parens: off - no-extra-semi: [ error ] - no-global-assign: error - no-irregular-whitespace: error - no-iterator: error - no-loop-func: error - no-multi-spaces: off - no-multi-str: error - no-nested-ternary: error - no-new: off - no-path-concat: off - no-proto: error - no-redeclare: error - no-restricted-globals: [ error, context ] - no-return-assign: off - no-script-url: error - no-sequences: error - no-shadow: off - no-trailing-spaces: error - no-undef: error - no-underscore-dangle: off - no-unused-expressions: off - no-unused-vars: [ error ] - no-use-before-define: [ error, nofunc ] - no-var: error - no-with: error - object-curly-spacing: off # overriden with babel/object-curly-spacing - one-var: [ error, never ] - prefer-const: error - quotes: [ error, single, { allowTemplateLiterals: true } ] - semi-spacing: [ error, { before: false, after: true } ] - semi: [ error, always ] - space-before-blocks: [ error, always ] - space-before-function-paren: [ error, { anonymous: always, named: never } ] - space-in-parens: [ error, never ] - space-infix-ops: [ error, { int32Hint: false } ] - space-unary-ops: [ error ] - strict: [ error, never ] - valid-typeof: error - wrap-iife: [ error, outside ] - yoda: off - react/jsx-uses-react: error - react/jsx-uses-vars: error - react/jsx-no-undef: error - react/jsx-pascal-case: error \ No newline at end of file diff --git a/package.json b/package.json index 55cc051762fac..95a78c6112acb 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,9 @@ "name": "@elastic/eslint-config-kibana", "version": "0.5.0", "description": "The eslint config used by the kibana team", - "main": ".eslintrc.json", + "main": ".eslintrc.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "prepublish": "node tasks/writejson.js" + "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", @@ -22,10 +21,7 @@ "eslint": "3.11.1", "eslint-plugin-mocha": "4.7.0", "eslint-plugin-babel": "4.0.0", - "babel-eslint": "6.1.2" - }, - "devDependencies": { "eslint-plugin-react": "^6.10.3", - "js-yaml": "^3.6.1" + "babel-eslint": "6.1.2" } } diff --git a/tasks/writejson.js b/tasks/writejson.js deleted file mode 100644 index a7afe32359ffc..0000000000000 --- a/tasks/writejson.js +++ /dev/null @@ -1,11 +0,0 @@ -const read = require('fs').readFileSync; -const write = require('fs').writeFileSync; -const resolve = require('path').resolve; -const parse = require('js-yaml').safeLoad; - -const from = resolve(__dirname, '../.eslintrc.yaml'); -const to = resolve(__dirname, '../.eslintrc.json'); - -const config = parse(read(from, 'utf8')); - -write(to, JSON.stringify(config, null, 2), 'utf8'); From ea0f6aee7a7a5bd6b7d62d1b71f8670213d7e0d2 Mon Sep 17 00:00:00 2001 From: Spencer Date: Thu, 1 Jun 2017 15:45:59 -0700 Subject: [PATCH 26/33] Implement import plugin (#7) * update deps * include eslint-plugin-import --- .eslintrc.js | 8 +++++++- .gitignore | 2 ++ package.json | 11 ++++++----- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 91be416a453b9..7a7238ccff82e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,10 +1,16 @@ module.exports = { parser: 'babel-eslint', - + + extends: [ + 'plugin:import/errors', + 'plugin:import/warnings' + ], + plugins: [ 'mocha', 'babel', 'react', + 'import' ], env: { diff --git a/.gitignore b/.gitignore index 15559ebb608c4..7c0c9807a8b7d 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,5 @@ node_modules # Optional REPL history .node_repl_history .eslintrc.json + +yarn.lock \ No newline at end of file diff --git a/package.json b/package.json index 95a78c6112acb..1da22c2887fbd 100644 --- a/package.json +++ b/package.json @@ -18,10 +18,11 @@ }, "homepage": "https://github.com/elastic/eslint-config-kibana#readme", "peerDependencies": { - "eslint": "3.11.1", - "eslint-plugin-mocha": "4.7.0", - "eslint-plugin-babel": "4.0.0", - "eslint-plugin-react": "^6.10.3", - "babel-eslint": "6.1.2" + "babel-eslint": "^7.2.3", + "eslint": "^3.19.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.3.0", + "eslint-plugin-mocha": "^4.9.0", + "eslint-plugin-react": "^7.0.1" } } From d8ba31690d3e06d2520faa912b86a746e1ecbebd Mon Sep 17 00:00:00 2001 From: Spencer Date: Thu, 1 Jun 2017 17:02:30 -0700 Subject: [PATCH 27/33] Dereference import config (#8) * reorganize existing rules into groups * defreference eslint-plugin-import "recommended" config Based on https://github.com/benmosher/eslint-plugin-import/blob/ea9c92c7324473ef303ac76b127e17af2becd2ee/config/recommended.js --- .eslintrc.js | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 7a7238ccff82e..35afedf7fcb53 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,11 +1,6 @@ module.exports = { parser: 'babel-eslint', - - extends: [ - 'plugin:import/errors', - 'plugin:import/warnings' - ], - + plugins: [ 'mocha', 'babel', @@ -21,8 +16,13 @@ module.exports = { browser: true, }, + parserOptions: { + sourceType: 'module', + ecmaVersion: 6, + ecmaFeatures: { experimentalObjectRestSpread: true }, + }, + rules: { - 'babel/object-curly-spacing': [ 'error', 'always' ], 'block-scoped-var': 'error', camelcase: [ 'error', { properties: 'never' } ], 'comma-dangle': 'off', @@ -36,8 +36,6 @@ module.exports = { indent: [ 'error', 2, { SwitchCase: 1 } ], 'key-spacing': [ 'off', { align: 'value' } ], 'max-len': [ 'error', 140, 2, { ignoreComments: true, ignoreUrls: true } ], - 'mocha/handle-done-callback': 'error', - 'mocha/no-exclusive-tests': 'error', 'new-cap': [ 'error', { capIsNewExceptions: [ 'Private' ] } ], 'no-bitwise': 'off', 'no-caller': 'error', @@ -73,7 +71,6 @@ module.exports = { 'no-use-before-define': [ 'error', 'nofunc' ], 'no-var': 'error', 'no-with': 'error', - 'object-curly-spacing': 'off', // overriden with babel/object-curly-spacing 'one-var': [ 'error', 'never' ], 'prefer-const': 'error', quotes: [ 'error', 'single', { allowTemplateLiterals: true } ], @@ -88,9 +85,25 @@ module.exports = { 'valid-typeof': 'error', 'wrap-iife': [ 'error', 'outside' ], yoda: 'off', + + 'object-curly-spacing': 'off', // overriden with babel/object-curly-spacing + 'babel/object-curly-spacing': [ 'error', 'always' ], + 'react/jsx-uses-react': 'error', 'react/jsx-uses-vars': 'error', 'react/jsx-no-undef': 'error', 'react/jsx-pascal-case': 'error', + + 'mocha/handle-done-callback': 'error', + 'mocha/no-exclusive-tests': 'error', + + 'import/no-unresolved': 'error', + 'import/named': 'error', + 'import/namespace': 'error', + 'import/default': 'error', + 'import/export': 'error', + 'import/no-named-as-default': 'error', + 'import/no-named-as-default-member': 'error', + 'import/no-duplicates': 'error', } } \ No newline at end of file From 59a51e4948a97301cf0547bb5ec0f6771f4ca69b Mon Sep 17 00:00:00 2001 From: spalger Date: Thu, 1 Jun 2017 17:03:56 -0700 Subject: [PATCH 28/33] 0.6.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1da22c2887fbd..782b1ec14c0fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.5.0", + "version": "0.6.0", "description": "The eslint config used by the kibana team", "main": ".eslintrc.js", "scripts": { From 07b3e3dad79df6e2bf3bc05f1c17c0a5985fa082 Mon Sep 17 00:00:00 2001 From: spalger Date: Thu, 1 Jun 2017 17:35:06 -0700 Subject: [PATCH 29/33] set environment info for import rule --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 35afedf7fcb53..2e488a745ee39 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -97,7 +97,7 @@ module.exports = { 'mocha/handle-done-callback': 'error', 'mocha/no-exclusive-tests': 'error', - 'import/no-unresolved': 'error', + 'import/no-unresolved': [ 'error', { 'amd': true, 'commonjs': true } ], 'import/named': 'error', 'import/namespace': 'error', 'import/default': 'error', From dd6461d61e1adbcb677c2ca96e320bc6760dee9c Mon Sep 17 00:00:00 2001 From: spalger Date: Thu, 1 Jun 2017 17:35:13 -0700 Subject: [PATCH 30/33] 0.6.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 782b1ec14c0fe..2348a08960288 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.6.0", + "version": "0.6.1", "description": "The eslint config used by the kibana team", "main": ".eslintrc.js", "scripts": { From 3a71917395f0395a206fd37b4c5bad739c396988 Mon Sep 17 00:00:00 2001 From: spalger Date: Sat, 24 Jun 2017 14:19:11 -0700 Subject: [PATCH 31/33] update peerDependencies --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2348a08960288..ce9235e8940cd 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,9 @@ "homepage": "https://github.com/elastic/eslint-config-kibana#readme", "peerDependencies": { "babel-eslint": "^7.2.3", - "eslint": "^3.19.0", + "eslint": "^4.1.0", "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.3.0", + "eslint-plugin-import": "^2.6.0", "eslint-plugin-mocha": "^4.9.0", "eslint-plugin-react": "^7.0.1" } From 317b3ac77a781bd4d52af3663dbc18d54f95a9ee Mon Sep 17 00:00:00 2001 From: spalger Date: Sat, 24 Jun 2017 14:19:17 -0700 Subject: [PATCH 32/33] 0.7.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ce9235e8940cd..09e2ee7db6b86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elastic/eslint-config-kibana", - "version": "0.6.1", + "version": "0.7.0", "description": "The eslint config used by the kibana team", "main": ".eslintrc.js", "scripts": { From 00a583d0f80bd40b34f77b8503b5d17fa180402b Mon Sep 17 00:00:00 2001 From: Kim Joar Bekkelund Date: Sun, 9 Jul 2017 19:22:33 +0200 Subject: [PATCH 33/33] Move eslint-config-kibana into packages directory --- .eslintrc.js => packages/eslint-config-kibana/.eslintrc.js | 0 .gitignore => packages/eslint-config-kibana/.gitignore | 0 .npmignore => packages/eslint-config-kibana/.npmignore | 0 README.md => packages/eslint-config-kibana/README.md | 0 package.json => packages/eslint-config-kibana/package.json | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename .eslintrc.js => packages/eslint-config-kibana/.eslintrc.js (100%) rename .gitignore => packages/eslint-config-kibana/.gitignore (100%) rename .npmignore => packages/eslint-config-kibana/.npmignore (100%) rename README.md => packages/eslint-config-kibana/README.md (100%) rename package.json => packages/eslint-config-kibana/package.json (100%) diff --git a/.eslintrc.js b/packages/eslint-config-kibana/.eslintrc.js similarity index 100% rename from .eslintrc.js rename to packages/eslint-config-kibana/.eslintrc.js diff --git a/.gitignore b/packages/eslint-config-kibana/.gitignore similarity index 100% rename from .gitignore rename to packages/eslint-config-kibana/.gitignore diff --git a/.npmignore b/packages/eslint-config-kibana/.npmignore similarity index 100% rename from .npmignore rename to packages/eslint-config-kibana/.npmignore diff --git a/README.md b/packages/eslint-config-kibana/README.md similarity index 100% rename from README.md rename to packages/eslint-config-kibana/README.md diff --git a/package.json b/packages/eslint-config-kibana/package.json similarity index 100% rename from package.json rename to packages/eslint-config-kibana/package.json