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
path: root/src
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 /src
parent2153371979931140fda376e4d01e6266f421dfc3 (diff)
Move ESLint options to config files.
Diffstat (limited to 'src')
-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
6 files changed, 9 insertions, 6 deletions
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()`