Tweak where jQuery is defined in ESLint
parent
4b4a842dfa
commit
30e000c32f
|
@ -1,7 +1,6 @@
|
|||
env:
|
||||
browser: true
|
||||
es6: true
|
||||
jquery: true
|
||||
webextensions: true
|
||||
extends: 'eslint:recommended'
|
||||
parserOptions:
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
env:
|
||||
jquery: false
|
||||
rules:
|
||||
indent:
|
||||
- error
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* along with Privacy Badger. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* eslint-env browser */
|
||||
/* eslint-env browser, jquery */
|
||||
|
||||
import { isIPv4, isIPv6, getBaseDomain } from "../lib/basedomain.js";
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with Privacy Badger. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* eslint-env browser */
|
||||
/* eslint-env browser, jquery */
|
||||
|
||||
import { getBaseDomain } from "../lib/basedomain.js";
|
||||
import { getOriginsArray } from "../lib/options.js";
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with Privacy Badger. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* eslint-env browser */
|
||||
/* eslint-env browser, jquery */
|
||||
|
||||
window.POPUP_INITIALIZED = false;
|
||||
window.SLIDERS_DONE = false;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with Privacy Badger. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* eslint-env browser */
|
||||
/* eslint-env browser, jquery */
|
||||
|
||||
const LOCALE = chrome.i18n.getMessage('@@ui_locale'),
|
||||
ON_POPUP = (document.location.pathname == "/skin/popup.html");
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
env:
|
||||
jquery: true
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-env browser */
|
||||
|
||||
$(function () {
|
||||
let already_set = false;
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
env:
|
||||
jquery: true
|
||||
globals:
|
||||
# false to disallow overwriting
|
||||
badger: false
|
||||
|
|
Loading…
Reference in New Issue