Socket
Socket
Sign inDemoInstall

eslint-config-spt

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-spt - npm Package Compare versions

Comparing version 1.0.7 to 2.0.0

.npmignore

5

CHANGELOG.md

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

12

env-es6-false.js

@@ -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': {

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc