Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootlint.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2018-07-10 02:52:45 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-07-10 03:18:23 +0300
commit8f95633ff80b24e0f5c42122bc96861220ca36ea (patch)
tree226bc807f1465d056fc601074f4ffb7e2c903fcb
parent2153371979931140fda376e4d01e6266f421dfc3 (diff)
Move ESLint options to config files.
-rw-r--r--build/.eslintrc.json7
-rw-r--r--build/phantom.js2
-rw-r--r--dist/browser/bootlint.js4
-rw-r--r--src/.eslintrc.json6
-rw-r--r--src/bootlint.js2
-rwxr-xr-xsrc/cli-main.js2
-rw-r--r--src/cli.js2
-rw-r--r--src/location.js1
-rw-r--r--src/url.js2
-rw-r--r--test/.eslintrc.json (renamed from test/.eslintrc)0
10 files changed, 17 insertions, 11 deletions
diff --git a/build/.eslintrc.json b/build/.eslintrc.json
new file mode 100644
index 0000000..b3980ee
--- /dev/null
+++ b/build/.eslintrc.json
@@ -0,0 +1,7 @@
+{
+ "extends": "../.eslintrc.json",
+ "env": {
+ "es6": true,
+ "node": true
+ }
+}
diff --git a/build/phantom.js b/build/phantom.js
index 469e866..121b117 100644
--- a/build/phantom.js
+++ b/build/phantom.js
@@ -1,5 +1,3 @@
-/* eslint-env node, es6 */
-
'use strict';
const os = require('os');
diff --git a/dist/browser/bootlint.js b/dist/browser/bootlint.js
index 0f2dbfe..3e214d1 100644
--- a/dist/browser/bootlint.js
+++ b/dist/browser/bootlint.js
@@ -11918,8 +11918,6 @@ module.exports = {
* Licensed under the MIT License.
*/
-/* eslint-env node */
-
var cheerio = require('cheerio');
var parseUrl = require('url').parse;
var semver = require('semver');
@@ -13164,7 +13162,7 @@ var LocationIndex = _location.LocationIndex;
})(typeof exports === 'object' && exports || this);
},{"./location":1,"cheerio":2,"semver":4,"url":7,"void-elements":5}],7:[function(require,module,exports){
-/* eslint-env node, browser */
+/* eslint-env browser */
/**
* Simple lightweight shim of Node.js's `url.parse()`
diff --git a/src/.eslintrc.json b/src/.eslintrc.json
new file mode 100644
index 0000000..73bbee6
--- /dev/null
+++ b/src/.eslintrc.json
@@ -0,0 +1,6 @@
+{
+ "extends": "../.eslintrc.json",
+ "env": {
+ "node": true
+ }
+}
diff --git a/src/bootlint.js b/src/bootlint.js
index f4f0425..3711e62 100644
--- a/src/bootlint.js
+++ b/src/bootlint.js
@@ -5,8 +5,6 @@
* Licensed under the MIT License.
*/
-/* eslint-env node */
-
var cheerio = require('cheerio');
var parseUrl = require('url').parse;
var semver = require('semver');
diff --git a/src/cli-main.js b/src/cli-main.js
index 8e77f66..8e71728 100755
--- a/src/cli-main.js
+++ b/src/cli-main.js
@@ -1,3 +1,3 @@
#!/usr/bin/env node
-/* eslint-env node */
+
require('./cli')();
diff --git a/src/cli.js b/src/cli.js
index 2d9af4b..74afee1 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -1,5 +1,5 @@
-/* eslint-env node */
/* eslint no-process-exit: 0 */
+
'use strict';
var Deferred = require('bluebird');
diff --git a/src/location.js b/src/location.js
index ae81d49..64eef6a 100644
--- a/src/location.js
+++ b/src/location.js
@@ -1,4 +1,3 @@
-/* eslint-env node */
var binarySearch = require('binary-search');
(function () {
diff --git a/src/url.js b/src/url.js
index a2b1de0..dd49ed6 100644
--- a/src/url.js
+++ b/src/url.js
@@ -1,4 +1,4 @@
-/* eslint-env node, browser */
+/* eslint-env browser */
/**
* Simple lightweight shim of Node.js's `url.parse()`
diff --git a/test/.eslintrc b/test/.eslintrc.json
index 528754f..528754f 100644
--- a/test/.eslintrc
+++ b/test/.eslintrc.json