diff options
author | XhmikosR <xhmikosr@gmail.com> | 2018-07-10 02:52:45 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-07-10 03:18:23 +0300 |
commit | 8f95633ff80b24e0f5c42122bc96861220ca36ea (patch) | |
tree | 226bc807f1465d056fc601074f4ffb7e2c903fcb | |
parent | 2153371979931140fda376e4d01e6266f421dfc3 (diff) |
Move ESLint options to config files.
-rw-r--r-- | build/.eslintrc.json | 7 | ||||
-rw-r--r-- | build/phantom.js | 2 | ||||
-rw-r--r-- | dist/browser/bootlint.js | 4 | ||||
-rw-r--r-- | src/.eslintrc.json | 6 | ||||
-rw-r--r-- | src/bootlint.js | 2 | ||||
-rwxr-xr-x | src/cli-main.js | 2 | ||||
-rw-r--r-- | src/cli.js | 2 | ||||
-rw-r--r-- | src/location.js | 1 | ||||
-rw-r--r-- | src/url.js | 2 | ||||
-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')(); @@ -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 () { @@ -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 |