mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 02:35:23 -04:00
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:
parent
c437366c33
commit
03a7b0d3ef
16 changed files with 4 additions and 19 deletions
|
@ -17,7 +17,10 @@ export default [{
|
||||||
}, ...compat.extends('standard'), {
|
}, ...compat.extends('standard'), {
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
...globals.node
|
...globals.node,
|
||||||
|
...globals.mocha,
|
||||||
|
...globals.jquery,
|
||||||
|
...globals.browser
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
/* global moment, serverurl */
|
/* global moment, serverurl */
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
|
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
|
||||||
/* global moment, serverurl */
|
/* global moment, serverurl */
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
/* eslint no-console: ["error", { allow: ["warn", "error", "debug"] }] */
|
/* eslint no-console: ["error", { allow: ["warn", "error", "debug"] }] */
|
||||||
/* global serverurl, moment */
|
/* global serverurl, moment */
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
/* eslint no-console: ["error", { allow: ["warn", "error", "debug"] }] */
|
/* eslint no-console: ["error", { allow: ["warn", "error", "debug"] }] */
|
||||||
/* global Cookies, moment, serverurl,
|
/* global Cookies, moment, serverurl,
|
||||||
key, Dropbox, Visibility */
|
key, Dropbox, Visibility */
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
/* global Cookies */
|
/* global Cookies */
|
||||||
|
|
||||||
import { serverurl } from '../config'
|
import { serverurl } from '../config'
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
/* global _ */
|
/* global _ */
|
||||||
// Inject line numbers for sync scroll.
|
// Inject line numbers for sync scroll.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
/* global Cookies */
|
/* global Cookies */
|
||||||
const supportedLanguages = require('../../locales/_supported.json')
|
const supportedLanguages = require('../../locales/_supported.json')
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
/* global refreshView */
|
/* global refreshView */
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
// allow some attributes
|
// allow some attributes
|
||||||
|
|
||||||
const filterXSS = require('xss')
|
const filterXSS = require('xss')
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
|
|
||||||
import { preventXSS, escapeAttrValue } from './render'
|
import { preventXSS, escapeAttrValue } from './render'
|
||||||
import { md } from './extra'
|
import { md } from './extra'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
/* global serverurl, Reveal, RevealMarkdown */
|
/* global serverurl, Reveal, RevealMarkdown */
|
||||||
|
|
||||||
import { preventXSS } from './render'
|
import { preventXSS } from './render'
|
||||||
|
|
1
public/vendor/md-toc.js
vendored
1
public/vendor/md-toc.js
vendored
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env browser, jquery */
|
|
||||||
/**
|
/**
|
||||||
* md-toc.js v1.0.2
|
* md-toc.js v1.0.2
|
||||||
* https://github.com/yijian166/md-toc.js
|
* https://github.com/yijian166/md-toc.js
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-env node, mocha */
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-env node, mocha */
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-env node, mocha */
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue