@beemo/driver-eslint
Advanced tools
Comparing version 0.10.1 to 0.11.0
@@ -60,3 +60,7 @@ 'use strict'; | ||
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = ESLintDriver.__proto__ || Object.getPrototypeOf(ESLintDriver)).call.apply(_ref, [this].concat(args))), _this), _this.handleCreateIgnoreFile = function (event, configPath, config) { | ||
if (Array.isArray(config.ignore)) { | ||
if (config.ignore) { | ||
if (!Array.isArray(config.ignore)) { | ||
throw new TypeError('Ignore configuration must be an array of strings.'); | ||
} | ||
var ignorePath = _path2.default.join(_path2.default.dirname(configPath), '.eslintignore'); | ||
@@ -81,3 +85,5 @@ | ||
title: 'ESLint' | ||
}).on('eslint.create-config-file', this.handleCreateIgnoreFile); | ||
}); | ||
this.on('eslint.create-config-file', this.handleCreateIgnoreFile); | ||
} | ||
@@ -84,0 +90,0 @@ }, { |
{ | ||
"name": "@beemo/driver-eslint", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "ESLint driver for Beemo.", | ||
@@ -14,5 +14,2 @@ "keywords": [ | ||
"main": "./lib/index.js", | ||
"scripts": { | ||
"build": "build-lib" | ||
}, | ||
"engines": { | ||
@@ -27,9 +24,8 @@ "node": ">=6.5.0" | ||
"devDependencies": { | ||
"@milesj/build-tool-config": "0.50.0", | ||
"eslint": "^4.17.0" | ||
}, | ||
"peerDependencies": { | ||
"@beemo/core": "^0.10.1", | ||
"@beemo/core": "^0.11.0", | ||
"eslint": "^4.10.0" | ||
} | ||
} |
@@ -6,3 +6,2 @@ # ESLint Driver | ||
## Installation | ||
@@ -18,4 +17,4 @@ | ||
In your configuration module, install the driver, ESLint, and any plugins. Create a | ||
file at `configs/eslint.js` in which to house your ESLint configuration. | ||
In your configuration module, install the driver, ESLint, and any plugins. Create a file at | ||
`configs/eslint.js` in which to house your ESLint configuration. | ||
@@ -45,7 +44,3 @@ In your consuming project, enable the driver by adding `eslint` to your `drivers` config. | ||
// ... | ||
ignore: [ | ||
'lib/', | ||
'*.min.js', | ||
'*.map', | ||
], | ||
ignore: ['lib/', '*.min.js', '*.map'], | ||
}; | ||
@@ -52,0 +47,0 @@ ``` |
1
2
5156
5
76
48