eslint-config-spt
Advanced tools
Comparing version 2.0.0 to 3.0.0-beta-1
@@ -0,1 +1,4 @@ | ||
# Unreleased | ||
Extract all react rules into its own `react` package | ||
# 2.0.0 | ||
@@ -7,5 +10,8 @@ Update for ESLint 2 (@nosilleg, https://github.com/schibsted/eslint-config-spt/pull/3) | ||
# 1.0.7 | ||
Add missing file | ||
Add missing file `env-es6-modules.js` | ||
# 1.0.6 | ||
Publish to public Github. | ||
Publish to public Github. | ||
# 0.0.1 | ||
Add placeholder project |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
/* | ||
@@ -7,4 +9,4 @@ Turn off all ES6 features, including sub-settings such as modules. | ||
'extends': [ | ||
'spt/env-es6-modules-false' | ||
], | ||
'./env-es6-modules-false' | ||
].map(require.resolve), | ||
'env': { | ||
@@ -17,10 +19,10 @@ 'es6': false | ||
'rules': { | ||
'constructor-super': 0, | ||
'generator-star-spacing': 0, | ||
'generator-star': 0, | ||
'no-this-before-super': 0, | ||
'no-var': 0, | ||
'object-shorthand': 0, | ||
'prefer-const': 0 | ||
'constructor-super': 'off', | ||
'generator-star-spacing': 'off', | ||
'generator-star': 'off', | ||
'no-this-before-super': 'off', | ||
'no-var': 'off', | ||
'object-shorthand': 'off', | ||
'prefer-const': 'off' | ||
} | ||
}; |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = { | ||
@@ -2,0 +4,0 @@ 'parserOptions': { |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
/* | ||
@@ -6,4 +8,4 @@ Load ES6 settings as well as the ES6 modeule settings, since the modules are of no use otherwise. | ||
'extends': [ | ||
'spt/env-es6' | ||
], | ||
'./env-es6.js' | ||
].map(require.resolve), | ||
'parserOptions': { | ||
@@ -10,0 +12,0 @@ 'sourceType': 'module' |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = { | ||
@@ -9,12 +11,10 @@ 'env': { | ||
'rules': { | ||
'constructor-super': 2, | ||
'generator-star-spacing': 0, | ||
'generator-star': 0, | ||
'no-this-before-super': 2, | ||
'no-var': 2, | ||
// TODO: bring back to 2 when object-shorthand rule supports ES7 object spread. | ||
// cf. https://github.com/eslint/eslint/issues/2486 | ||
'object-shorthand': 1, | ||
'prefer-const': 0 | ||
'constructor-super': 'error', | ||
'generator-star-spacing': 'off', | ||
'generator-star': 'off', | ||
'no-this-before-super': 'error', | ||
'no-var': 'error', | ||
'object-shorthand': 'error', | ||
'prefer-const': 'off' | ||
} | ||
}; |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = { | ||
@@ -6,11 +8,11 @@ 'env': { | ||
'rules': { | ||
'strict': [2, 'function'], | ||
'handle-callback-err': 0, | ||
'no-mixed-requires': 0, | ||
'no-new-require': 0, | ||
'no-path-concat': 0, | ||
'no-process-exit': 0, | ||
'no-restricted-modules': 0, | ||
'no-sync': 0 | ||
'strict': ['error', 'function'], | ||
'handle-callback-err': 'off', | ||
'no-mixed-requires': 'off', | ||
'no-new-require': 'off', | ||
'no-path-concat': 'off', | ||
'no-process-exit': 'off', | ||
'no-restricted-modules': 'off', | ||
'no-sync': 'off' | ||
} | ||
}; |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = { | ||
@@ -6,11 +8,11 @@ 'env': { | ||
'rules': { | ||
'strict': [2, 'global'], | ||
'handle-callback-err': 0, | ||
'no-mixed-requires': 0, | ||
'no-new-require': 0, | ||
'no-path-concat': 0, | ||
'no-process-exit': 0, | ||
'no-restricted-modules': 0, | ||
'no-sync': 0 | ||
'strict': ['error', 'global'], | ||
'handle-callback-err': 'off', | ||
'no-mixed-requires': 'off', | ||
'no-new-require': 'off', | ||
'no-path-concat': 'off', | ||
'no-process-exit': 'off', | ||
'no-restricted-modules': 'off', | ||
'no-sync': 'off' | ||
} | ||
}; |
170
index.js
@@ -0,7 +1,9 @@ | ||
'use strict'; | ||
module.exports = { | ||
'extends': [ | ||
'spt/env-es6', | ||
'spt/env-es6-modules-false', | ||
'spt/env-node-false' | ||
], | ||
'./env-es6.js', | ||
'./env-es6-modules-false.js', | ||
'./env-node-false.js' | ||
].map(require.resolve), | ||
'env': { | ||
@@ -13,89 +15,89 @@ 'browser': false, | ||
'rules': { | ||
'no-underscore-dangle': 0, | ||
'no-unexpected-multiline': 1, | ||
'no-underscore-dangle': 'off', | ||
'no-unexpected-multiline': 'warn', | ||
'accessor-pairs': 2, | ||
'block-scoped-var': 2, | ||
'curly': 2, | ||
'dot-notation': 2, | ||
'eqeqeq': 2, | ||
'guard-for-in': 2, | ||
'keyword-spacing': 2, | ||
'no-alert': 2, | ||
'no-caller': 2, | ||
'no-div-regex': 2, | ||
'no-else-return': 2, | ||
'no-eq-null': 2, | ||
'no-eval': 2, | ||
'no-extend-native': 0, | ||
'no-extra-bind': 2, | ||
'no-fallthrough': 2, | ||
'no-floating-decimal': 2, | ||
'no-implied-eval': 2, | ||
'no-iterator': 2, | ||
'no-labels': 2, | ||
'no-lone-blocks': 2, | ||
'no-loop-func': 2, | ||
'no-multi-spaces': 0, | ||
'no-multi-str': 2, | ||
'no-native-reassign': 2, | ||
'no-new-func': 2, | ||
'no-new-wrappers': 2, | ||
'no-new': 2, | ||
'no-octal-escape': 2, | ||
'no-octal': 2, | ||
'no-param-reassign': 0, | ||
'no-process-env': 0, | ||
'no-proto': 2, | ||
'no-redeclare': 2, | ||
'no-return-assign': 2, | ||
'no-script-url': 2, | ||
'no-self-compare': 2, | ||
'no-sequences': 2, | ||
'no-throw-literal': 2, | ||
'no-unused-expressions': 2, | ||
'no-void': 2, | ||
'vars-on-top': 2, | ||
'wrap-iife': [2, 'inside'], | ||
'accessor-pairs': 'error', | ||
'block-scoped-var': 'error', | ||
'curly': 'error', | ||
'dot-notation': 'error', | ||
'eqeqeq': 'error', | ||
'guard-for-in': 'error', | ||
'keyword-spacing': 'error', | ||
'no-alert': 'error', | ||
'no-caller': 'error', | ||
'no-div-regex': 'error', | ||
'no-else-return': 'error', | ||
'no-eq-null': 'error', | ||
'no-eval': 'error', | ||
'no-extend-native': 'off', | ||
'no-extra-bind': 'error', | ||
'no-fallthrough': 'error', | ||
'no-floating-decimal': 'error', | ||
'no-implied-eval': 'error', | ||
'no-iterator': 'error', | ||
'no-labels': 'error', | ||
'no-lone-blocks': 'error', | ||
'no-loop-func': 'error', | ||
'no-multi-spaces': 'off', | ||
'no-multi-str': 'error', | ||
'no-native-reassign': 'error', | ||
'no-new-func': 'error', | ||
'no-new-wrappers': 'error', | ||
'no-new': 'error', | ||
'no-octal-escape': 'error', | ||
'no-octal': 'error', | ||
'no-param-reassign': 'off', | ||
'no-process-env': 'off', | ||
'no-proto': 'error', | ||
'no-redeclare': 'error', | ||
'no-return-assign': 'error', | ||
'no-script-url': 'error', | ||
'no-self-compare': 'error', | ||
'no-sequences': 'error', | ||
'no-throw-literal': 'error', | ||
'no-unused-expressions': 'error', | ||
'no-void': 'error', | ||
'vars-on-top': 'error', | ||
'wrap-iife': ['error', 'inside'], | ||
'no-catch-shadow': 0, | ||
'no-delete-var': 2, | ||
'no-shadow': 2, | ||
'no-undef-init': 2, | ||
'no-undef': 2, | ||
'no-undefined': 2, | ||
'no-unused-vars': 2, | ||
'no-use-before-define': 2, | ||
'no-catch-shadow': 'off', | ||
'no-delete-var': 'error', | ||
'no-shadow': 'error', | ||
'no-undef-init': 'error', | ||
'no-undef': 'error', | ||
'no-undefined': 'error', | ||
'no-unused-vars': 'error', | ||
'no-use-before-define': 'error', | ||
'brace-style': 2, | ||
'camelcase': [2, { 'properties': 'always' }], | ||
'comma-spacing': [2, { 'before': false, 'after': true }], | ||
'comma-style': [2, 'last'], | ||
'consistent-this': [2, 'self'], | ||
'eol-last': 2, | ||
'func-style': [0, 'declaration'], | ||
'indent': [2, 4, { 'SwitchCase': 1 }], | ||
'key-spacing': [2, { | ||
'brace-style': 'error', | ||
'camelcase': ['error', { 'properties': 'always' }], | ||
'comma-spacing': ['error', { 'before': false, 'after': true }], | ||
'comma-style': ['error', 'last'], | ||
'consistent-this': ['error', 'self'], | ||
'eol-last': 'error', | ||
'func-style': ['off', 'declaration'], | ||
'indent': ['error', 4, { 'SwitchCase': 1 }], | ||
'key-spacing': ['error', { | ||
'beforeColon': false, | ||
'afterColon': true | ||
}], | ||
'max-nested-callbacks': [2, 3], | ||
'new-cap': 2, | ||
'new-parens': 2, | ||
'no-array-constructor': 2, | ||
'no-lonely-if': 2, | ||
'no-multiple-empty-lines': [1, { 'max': 2 }], | ||
'no-nested-ternary': 2, | ||
'object-curly-spacing': [2, 'always'], | ||
'no-unneeded-ternary': 2, | ||
'operator-assignment': [2, 'always'], | ||
'operator-linebreak': [2, 'after'], | ||
'padded-blocks': [2, 'never'], | ||
'quotes': [2, 'single'], | ||
'semi': [2, 'always'], | ||
'space-before-blocks': [2, 'always'], | ||
'spaced-comment': [2, 'always', { 'exceptions': ['eslint-disable', 'global', 'eslint', 'eslint-env'] }], | ||
'global-strict': 0, | ||
'strict': [2, 'safe'] | ||
'max-nested-callbacks': ['error', 3], | ||
'new-cap': 'error', | ||
'new-parens': 'error', | ||
'no-array-constructor': 'error', | ||
'no-lonely-if': 'error', | ||
'no-multiple-empty-lines': ['warn', { 'max': 2 }], | ||
'no-nested-ternary': 'error', | ||
'object-curly-spacing': ['error', 'always'], | ||
'no-unneeded-ternary': 'error', | ||
'operator-assignment': ['error', 'always'], | ||
'operator-linebreak': ['error', 'after'], | ||
'padded-blocks': ['error', 'never'], | ||
'quotes': ['error', 'single'], | ||
'semi': ['error', 'always'], | ||
'space-before-blocks': ['error', 'always'], | ||
'spaced-comment': ['error', 'always', { 'exceptions': ['eslint-disable', 'global', 'eslint', 'eslint-env'] }], | ||
'global-strict': 'off', | ||
'strict': ['error', 'safe'] | ||
} | ||
}; |
{ | ||
"name": "eslint-config-spt", | ||
"version": "2.0.0", | ||
"version": "3.0.0-beta-1", | ||
"description": "ESLint settings for SPT", | ||
@@ -11,8 +11,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"eslint": "^2.0.0", | ||
"eslint-plugin-react": "^4.0.0" | ||
"eslint": "^3.1.1" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^2.0.0", | ||
"eslint-plugin-react": "^4.0.0" | ||
"eslint": "^3.1.1" | ||
}, | ||
@@ -19,0 +17,0 @@ "author": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
1
1
0
6338
9
190
2
2
0
2