eslint-config
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -8,2 +8,3 @@ 'use strict'; | ||
exports.default = function (opts) { | ||
var generate = opts.generate; | ||
var react = opts.react; | ||
@@ -17,2 +18,6 @@ | ||
if (generate) { | ||
(0, _generateEslintrc2.default)(opts); | ||
} | ||
return { | ||
@@ -41,2 +46,6 @@ rules: rules, | ||
var _generateEslintrc = require('./generate-eslintrc'); | ||
var _generateEslintrc2 = _interopRequireDefault(_generateEslintrc); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -43,0 +52,0 @@ |
@@ -21,3 +21,4 @@ import gulp from 'gulp'; | ||
isDev: isWatch, | ||
lintEnv: 'build' | ||
lintEnv: 'build', | ||
generate: true | ||
}); | ||
@@ -24,0 +25,0 @@ |
@@ -5,2 +5,3 @@ import path from 'path'; | ||
import reactRules from './react-rules'; | ||
import generateEslint from './generate-eslintrc'; | ||
@@ -15,3 +16,3 @@ /** | ||
export default function(opts) { | ||
const {react} = opts; | ||
const {generate, react} = opts; | ||
const rules = baseRules(opts); | ||
@@ -23,2 +24,6 @@ | ||
if (generate) { | ||
generateEslint(opts); | ||
} | ||
return { | ||
@@ -25,0 +30,0 @@ rules, |
{ | ||
"name": "eslint-config", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Linting Config", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"prepublish": "gulp release" | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
@@ -21,3 +20,5 @@ "repository": { | ||
"dependencies": { | ||
"app-root-path": "^1.0.0", | ||
"eslint": "^2.1.0", | ||
"gulp-util": "^3.0.7", | ||
"object-assign": "^4.0.1" | ||
@@ -45,5 +46,5 @@ }, | ||
"gulp-babel": "^6.1.2", | ||
"gulp-eslint": "^2.0.0-rc-3", | ||
"gulp-eslint": "^2.0.0", | ||
"gulp-rename": "^1.2.2" | ||
} | ||
} |
@@ -71,1 +71,7 @@ # eslint-config | ||
Add rules for React/JSX | ||
#### options.generate | ||
Type: `Boolean` | ||
Generate a `.eslintrc` in your project root |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42681
17
957
77
4
2
+ Addedapp-root-path@^1.0.0
+ Addedgulp-util@^3.0.7
+ Addedansi-gray@0.1.1(transitive)
+ Addedansi-wrap@0.1.0(transitive)
+ Addedapp-root-path@1.4.0(transitive)
+ Addedarray-differ@1.0.0(transitive)
+ Addedarray-uniq@1.0.3(transitive)
+ Addedbeeper@1.1.1(transitive)
+ Addedclone@1.0.4(transitive)
+ Addedclone-stats@0.0.1(transitive)
+ Addedcolor-support@1.1.3(transitive)
+ Addeddateformat@2.2.0(transitive)
+ Addedduplexer2@0.0.2(transitive)
+ Addedfancy-log@1.3.3(transitive)
+ Addedget-intrinsic@1.2.6(transitive)
+ Addedglogg@1.0.2(transitive)
+ Addedgulp-util@3.0.8(transitive)
+ Addedgulplog@1.0.0(transitive)
+ Addedhas-gulplog@0.1.0(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedlodash._basecopy@3.0.1(transitive)
+ Addedlodash._basetostring@3.0.1(transitive)
+ Addedlodash._basevalues@3.0.0(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash._isiterateecall@3.0.9(transitive)
+ Addedlodash._reescape@3.0.0(transitive)
+ Addedlodash._reevaluate@3.0.0(transitive)
+ Addedlodash._reinterpolate@3.0.0(transitive)
+ Addedlodash._root@3.0.1(transitive)
+ Addedlodash.escape@3.2.0(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedlodash.restparam@3.6.1(transitive)
+ Addedlodash.template@3.6.2(transitive)
+ Addedlodash.templatesettings@3.1.1(transitive)
+ Addedmultipipe@0.1.2(transitive)
+ Addedobject-assign@3.0.0(transitive)
+ Addedparse-node-version@1.0.1(transitive)
+ Addedreadable-stream@1.1.14(transitive)
+ Addedreplace-ext@0.0.1(transitive)
+ Addedsparkles@1.0.1(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedthrough2@2.0.5(transitive)
+ Addedtime-stamp@1.1.0(transitive)
+ Addedvinyl@0.5.3(transitive)
- Removedget-intrinsic@1.2.7(transitive)
- Removedget-proto@1.0.1(transitive)