Skip to content

Commit

Permalink
Completely purge jQuery from the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanlesage committed Mar 18, 2021
1 parent fd4cab0 commit 22abbe6
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 88 deletions.
22 changes: 0 additions & 22 deletions .eslintrc.json
Expand Up @@ -5,7 +5,6 @@
"node": true
},
"plugins": [
"jquery",
"@typescript-eslint"
],
"extends": [
Expand Down Expand Up @@ -89,27 +88,6 @@
// function. NOTE to keep this on my mind!
"vue/no-v-html": "off",

// Disallow jquery
"jquery/no-ajax": 2,
"jquery/no-ajax-events": 2,
"jquery/no-animate": 2,
"jquery/no-bind": 2,
"jquery/no-fade": 2,
"jquery/no-load": 2,
"jquery/no-param": 2,
"jquery/no-serialize": 2,
"jquery/no-size": 2,
"jquery/no-sizzle": 2,
"jquery/no-slide": 2,
"jquery/no-submit": 2,
"jquery/no-text": 2,
"jquery/no-toggle": 2,
"jquery/no-trigger": 2,
"jquery/no-trim": 2,
"jquery/no-val": 2,
"jquery/no-when": 2,
"jquery/no-wrap": 2,

// Disable a few typescript rules as we are not yet there to easily implement them
"@typescript-eslint/no-floating-promises": [ "warn" ],
"@typescript-eslint/no-misused-promises": [ "warn" ],
Expand Down
4 changes: 1 addition & 3 deletions .tern-project
@@ -1,8 +1,6 @@
{
"ecmaVersion": 6,
"libs": [
"jquery"
],
"libs": [],
"loadEagerly": [],
"dontLoad": [
"node_modules/**"
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -48,6 +48,7 @@ Due to a change in the underlying data structure, this version of Zettlr will no
- Now tests can be run as JavaScript or as TypeScript files (use `.js` or `.spec.ts` files respectively).
- Generalised the window state management so that all windows are now able to remember their positions easily.
- The toolbar is now vue-ified and can be used on WindowChrome components.
- Zettlr is now completely jQuery-free.

# 1.8.7

Expand Down
3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -56,8 +56,6 @@
"got": "^11.8.2",
"joplin-turndown": "^4.0.30",
"joplin-turndown-plugin-gfm": "^1.0.12",
"jquery": "^3.5.1",
"jquery-ui": "^1.12.1",
"katex": "^0.12.0",
"luxon": "^1.26.0",
"md5": "^2.3.0",
Expand Down Expand Up @@ -114,7 +112,6 @@
"eslint-config-standard-with-typescript": "^20.0.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jquery": "^1.5.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-standard": "^5.0.0",
Expand Down
Expand Up @@ -870,7 +870,7 @@ module.exports = class TableEditor {
}

/**
* Calculates the position of the caret in the given jQuery element.
* Calculates the position of the caret in the given DOM element.
* @param {DOMNode} elem The element in which we should compute the caret position
*/
_getCursorPositionInElement (elem) {
Expand Down
36 changes: 0 additions & 36 deletions source/common/util/serialize-form-data.js

This file was deleted.

8 changes: 0 additions & 8 deletions webpack.renderer.config.js
@@ -1,5 +1,4 @@
const rules = require('./webpack.rules')
const webpack = require('webpack')

const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
Expand Down Expand Up @@ -36,13 +35,6 @@ module.exports = {
rules
},
plugins: [
// Load jQuery
new webpack.ProvidePlugin({
'$': 'jquery',
'jQuery': 'jquery',
'window.jQuery': 'jquery'
}),

// Enhanced typescript support (e.g. moves typescript type checking to separate process)
new ForkTsCheckerWebpackPlugin(),

Expand Down
15 changes: 0 additions & 15 deletions yarn.lock
Expand Up @@ -3642,11 +3642,6 @@ eslint-plugin-import@^2.22.1:
resolve "^1.17.0"
tsconfig-paths "^3.9.0"

eslint-plugin-jquery@^1.5.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-jquery/-/eslint-plugin-jquery-1.5.1.tgz#d6bac643acf9484ce76394e27e2b07baca06662e"
integrity sha512-L7v1eaK5t80C0lvUXPFP9MKnBOqPSKhCOYyzy4LZ0+iK+TJwN8S9gAkzzP1AOhypRIwA88HF6phQ9C7jnOpW8w==

eslint-plugin-node@^11.1.0:
version "11.1.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz#c95544416ee4ada26740a30474eefc5402dc671d"
Expand Down Expand Up @@ -5436,16 +5431,6 @@ joplin-turndown@^4.0.30:
html-entities "^1.2.1"
jsdom "^15.2.1"

jquery-ui@^1.12.1:
version "1.12.1"
resolved "https://registry.yarnpkg.com/jquery-ui/-/jquery-ui-1.12.1.tgz#bcb4045c8dd0539c134bc1488cdd3e768a7a9e51"
integrity sha1-vLQEXI3QU5wTS8FIjN0+dop6nlE=

jquery@^3.5.1:
version "3.5.1"
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.1.tgz#d7b4d08e1bfdb86ad2f1a3d039ea17304717abb5"
integrity sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg==

js-tokens@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
Expand Down

0 comments on commit 22abbe6

Please sign in to comment.