chore(eslint): remove deprecated eslint-env

These comments did not work anymore and were replaced by relevant
sections in eslint.config.mjs

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2025-02-01 22:05:27 +01:00 committed by Erik Michelson
parent c437366c33
commit 03a7b0d3ef
16 changed files with 4 additions and 19 deletions

View file

@ -17,7 +17,10 @@ export default [{
}, ...compat.extends('standard'), {
languageOptions: {
globals: {
...globals.node
...globals.node,
...globals.mocha,
...globals.jquery,
...globals.browser
}
},

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
/* global moment, serverurl */
import {

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
/* global moment, serverurl */

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
/* eslint no-console: ["error", { allow: ["warn", "error", "debug"] }] */
/* global serverurl, moment */

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
/* eslint no-console: ["error", { allow: ["warn", "error", "debug"] }] */
/* global Cookies, moment, serverurl,
key, Dropbox, Visibility */

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
/* global Cookies */
import { serverurl } from '../config'

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
/* global _ */
// Inject line numbers for sync scroll.

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
/* global Cookies */
const supportedLanguages = require('../../locales/_supported.json')

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
/* global refreshView */
import {

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
// allow some attributes
const filterXSS = require('xss')

View file

@ -1,5 +1,3 @@
/* eslint-env browser, jquery */
import { preventXSS, escapeAttrValue } from './render'
import { md } from './extra'

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
/* global serverurl, Reveal, RevealMarkdown */
import { preventXSS } from './render'

View file

@ -1,4 +1,3 @@
/* eslint-env browser, jquery */
/**
* md-toc.js v1.0.2
* https://github.com/yijian166/md-toc.js

View file

@ -1,4 +1,3 @@
/* eslint-env node, mocha */
'use strict'
const assert = require('assert')

View file

@ -1,5 +1,3 @@
/* eslint-env node, mocha */
'use strict'
const assert = require('assert')

View file

@ -1,5 +1,3 @@
/* eslint-env node, mocha */
'use strict'
const assert = require('assert')