eslint-config-spt
Advanced tools
Comparing version 1.0.7 to 2.0.0
@@ -0,1 +1,6 @@ | ||
# 2.0.0 | ||
Update for ESLint 2 (@nosilleg, https://github.com/schibsted/eslint-config-spt/pull/3) | ||
Change rule `strict` from option `function` to `safe` (http://eslint.org/docs/rules/strict) | ||
Change rule `no-labels` from warn to error (http://eslint.org/docs/rules/no-labels) | ||
# 1.0.7 | ||
@@ -2,0 +7,0 @@ Add missing file |
@@ -5,8 +5,12 @@ /* | ||
const _ = require('lodash'); | ||
const envEs6ModulesFalse = require('./env-es6-modules-false'); | ||
const defaults = { | ||
module.exports = { | ||
'extends': [ | ||
'spt/env-es6-modules-false' | ||
], | ||
'env': { | ||
'es6': false | ||
}, | ||
'parserOptions': { | ||
'ecmaVersion': 5 | ||
}, | ||
'rules': { | ||
@@ -22,3 +26,1 @@ 'constructor-super': 0, | ||
}; | ||
module.exports = _.merge({}, envEs6ModulesFalse, defaults); |
module.exports = { | ||
'ecmaFeatures': { | ||
'modules': false | ||
'parserOptions': { | ||
'sourceType': 'script' | ||
} | ||
}; |
/* | ||
Load ES6 settings as well as the ES6 modeule settings, since the modules are of no use otherwise. | ||
*/ | ||
const _ = require("lodash"); | ||
const envEs6 = require("./env-es6"); | ||
const defaults = { | ||
"ecmaFeatures": { | ||
"modules": true | ||
} | ||
module.exports = { | ||
'extends': [ | ||
'spt/env-es6' | ||
], | ||
'parserOptions': { | ||
'sourceType': 'module' | ||
} | ||
}; | ||
module.exports = _.merge({}, envEs6, defaults); |
@@ -5,2 +5,5 @@ module.exports = { | ||
}, | ||
'parserOptions': { | ||
'ecmaVersion': 6 | ||
}, | ||
'rules': { | ||
@@ -7,0 +10,0 @@ 'constructor-super': 2, |
@@ -5,4 +5,6 @@ module.exports = { | ||
], | ||
'ecmaFeatures': { | ||
'jsx': true | ||
'parserOptions': { | ||
'ecmaFeatures': { | ||
'jsx': true | ||
} | ||
}, | ||
@@ -9,0 +11,0 @@ 'rules': { |
19
index.js
@@ -1,5 +0,7 @@ | ||
const _ = require('lodash'); | ||
const envEs6 = require('./env-es6'); | ||
const envNodeFalse = require('./env-node-false'); | ||
const defaults = { | ||
module.exports = { | ||
'extends': [ | ||
'spt/env-es6', | ||
'spt/env-es6-modules-false', | ||
'spt/env-node-false' | ||
], | ||
'env': { | ||
@@ -20,2 +22,3 @@ 'browser': false, | ||
'guard-for-in': 2, | ||
'keyword-spacing': 2, | ||
'no-alert': 2, | ||
@@ -25,3 +28,2 @@ 'no-caller': 2, | ||
'no-else-return': 2, | ||
'no-empty-label': 2, | ||
'no-eq-null': 2, | ||
@@ -35,3 +37,3 @@ 'no-eval': 2, | ||
'no-iterator': 2, | ||
'no-labels': 1, | ||
'no-labels': 2, | ||
'no-lone-blocks': 2, | ||
@@ -96,10 +98,7 @@ 'no-loop-func': 2, | ||
'semi': [2, 'always'], | ||
'space-after-keywords': [2, 'always'], | ||
'space-before-blocks': [2, 'always'], | ||
'spaced-comment': [2, 'always', { 'exceptions': ['eslint-disable', 'global', 'eslint', 'eslint-env'] }], | ||
'global-strict': 0, | ||
'strict': [2, 'function'] | ||
'strict': [2, 'safe'] | ||
} | ||
}; | ||
module.exports = _.merge({}, envEs6, envNodeFalse, defaults); |
{ | ||
"name": "eslint-config-spt", | ||
"version": "1.0.7", | ||
"version": "2.0.0", | ||
"description": "ESLint settings for SPT", | ||
@@ -8,13 +8,16 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "eslint -c index.js ." | ||
"test": "eslint ." | ||
}, | ||
"devDependencies": { | ||
"eslint": "^2.0.0", | ||
"eslint-plugin-react": "^4.0.0" | ||
}, | ||
"peerDependencies": { | ||
"eslint-plugin-react": ">=3.5.1 <4.x" | ||
"eslint": "^2.0.0", | ||
"eslint-plugin-react": "^4.0.0" | ||
}, | ||
"dependencies": { | ||
"lodash": "3.10.1" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^1.8.0" | ||
"author": { | ||
"name": "Jason Ellison", | ||
"email": "code@nosilleg.com" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# eslint-config-spt | ||
# eslint-config-spt [![Build Status](https://travis-ci.org/schibsted/eslint-config-spt.svg?branch=master)](https://travis-ci.org/schibsted/eslint-config-spt) | ||
@@ -3,0 +3,0 @@ A module to contain the SPT JavaScript linting rules for [ESLint](http://eslint.org/). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
12113
16
238
2
2
+ Addedacorn@3.3.05.7.4(transitive)
+ Addedacorn-jsx@3.0.1(transitive)
+ Addedajv@4.11.8(transitive)
+ Addedajv-keywords@1.5.1(transitive)
+ Addedansi-escapes@1.4.0(transitive)
+ Addedansi-regex@2.1.13.0.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcaller-path@0.1.0(transitive)
+ Addedcallsites@0.2.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcircular-json@0.3.3(transitive)
+ Addedcli-cursor@1.0.2(transitive)
+ Addedcli-width@2.2.1(transitive)
+ Addedco@4.6.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedd@1.0.2(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addeddeep-is@0.1.4(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddoctrine@1.5.0(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@2.0.3(transitive)
+ Addedes6-map@0.1.5(transitive)
+ Addedes6-set@0.1.6(transitive)
+ Addedes6-symbol@3.1.4(transitive)
+ Addedes6-weak-map@2.0.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedescope@3.6.0(transitive)
+ Addedeslint@2.13.1(transitive)
+ Addedeslint-plugin-react@4.3.0(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedespree@3.5.4(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedesrecurse@4.3.0(transitive)
+ Addedestraverse@4.3.05.3.0(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedexit-hook@1.1.1(transitive)
+ Addedext@1.7.0(transitive)
+ Addedfast-levenshtein@2.0.6(transitive)
+ Addedfigures@1.7.0(transitive)
+ Addedfile-entry-cache@1.3.1(transitive)
+ Addedflat-cache@1.3.4(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedgenerate-function@2.3.1(transitive)
+ Addedgenerate-object-property@1.2.0(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobals@9.18.0(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedignore@3.3.10(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedinquirer@0.12.0(transitive)
+ Addedis-fullwidth-code-point@1.0.02.0.0(transitive)
+ Addedis-my-ip-valid@1.0.1(transitive)
+ Addedis-my-json-valid@2.20.6(transitive)
+ Addedis-property@1.0.2(transitive)
+ Addedis-resolvable@1.1.0(transitive)
+ Addedisarray@1.0.02.0.5(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedjson-stable-stringify@1.1.1(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedjsonpointer@5.0.1(transitive)
+ Addedlevn@0.3.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedms@2.0.0(transitive)
+ Addedmute-stream@0.0.5(transitive)
+ Addednext-tick@1.1.0(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedonetime@1.1.0(transitive)
+ Addedoptionator@0.8.3(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-is-inside@1.0.2(transitive)
+ Addedpluralize@1.2.1(transitive)
+ Addedprelude-ls@1.1.2(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedprogress@1.1.8(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedreadline2@1.0.1(transitive)
+ Addedrequire-uncached@1.0.3(transitive)
+ Addedresolve-from@1.0.1(transitive)
+ Addedrestore-cursor@1.0.1(transitive)
+ Addedrimraf@2.6.3(transitive)
+ Addedrun-async@0.1.0(transitive)
+ Addedrx-lite@3.1.2(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedshelljs@0.6.1(transitive)
+ Addedslice-ansi@0.0.4(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedstring-width@1.0.22.1.1(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@3.0.14.0.0(transitive)
+ Addedstrip-json-comments@1.0.4(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedtable@3.8.3(transitive)
+ Addedtext-table@0.2.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtype@2.7.3(transitive)
+ Addedtype-check@0.3.2(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addeduser-home@2.0.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedword-wrap@1.2.5(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedwrite@0.2.1(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedlodash@3.10.1
- Removedeslint-plugin-react@3.16.1(transitive)
- Removedlodash@3.10.1(transitive)