Date: Thu, 2 Dec 2021 12:18:22 -0500
Subject: [PATCH 30/33] Finish Merge with Master
---
shared/naturalcrit/codeEditor/codeEditor.jsx | 126 ++++++++++++++++---
1 file changed, 108 insertions(+), 18 deletions(-)
diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx
index ee318ee1d..423e46468 100644
--- a/shared/naturalcrit/codeEditor/codeEditor.jsx
+++ b/shared/naturalcrit/codeEditor/codeEditor.jsx
@@ -13,6 +13,13 @@ if(typeof navigator !== 'undefined'){
require('codemirror/mode/gfm/gfm.js'); //Github flavoured markdown
require('codemirror/mode/css/css.js');
require('codemirror/mode/javascript/javascript.js');
+
+ //Addons
+ require('codemirror/addon/fold/foldcode.js');
+ require('codemirror/addon/fold/foldgutter.js');
+
+ const foldCode = require('./fold-code');
+ foldCode.registerHomebreweryHelper(CodeMirror);
}
const CodeEditor = createClass({
@@ -25,28 +32,48 @@ const CodeEditor = createClass({
};
},
+ getInitialState : function() {
+ return {
+ docs : {}
+ };
+ },
+
componentDidMount : function() {
this.buildEditor();
+ const newDoc = CodeMirror.Doc(this.props.value, this.props.language);
+ this.codeMirror.swapDoc(newDoc);
},
componentDidUpdate : function(prevProps) {
- if(prevProps.language !== this.props.language){ //rebuild editor when switching tabs
- this.buildEditor();
- }
- if(this.codeMirror && this.codeMirror.getValue() != this.props.value) { //update editor contents if brew.text is changed from outside
+ if(prevProps.view !== this.props.view){ //view changed; swap documents
+ let newDoc;
+
+ if(!this.state.docs[this.props.view]) {
+ newDoc = CodeMirror.Doc(this.props.value, this.props.language);
+ } else {
+ newDoc = this.state.docs[this.props.view];
+ }
+
+ const oldDoc = { [prevProps.view]: this.codeMirror.swapDoc(newDoc) };
+
+ this.setState((prevState)=>({
+ docs : _.merge({}, prevState.docs, oldDoc)
+ }));
+
+ this.props.rerenderParent();
+ } else if(this.codeMirror?.getValue() != this.props.value) { //update editor contents if brew.text is changed from outside
this.codeMirror.setValue(this.props.value);
}
},
buildEditor : function() {
this.codeMirror = CodeMirror(this.refs.editor, {
- value : this.props.value,
- lineNumbers : true,
- lineWrapping : this.props.wrap,
- mode : this.props.language, //TODO: CSS MODE DOESN'T SEEM TO LOAD PROPERLY
- indentWithTabs : true,
- tabSize : 2,
- extraKeys : {
+ lineNumbers : true,
+ lineWrapping : this.props.wrap,
+ indentWithTabs : true,
+ tabSize : 2,
+ historyEventDelay : 250,
+ extraKeys : {
'Ctrl-B' : this.makeBold,
'Cmd-B' : this.makeBold,
'Ctrl-I' : this.makeItalic,
@@ -59,17 +86,46 @@ const CodeEditor = createClass({
'Shift-Cmd-.' : this.makeSpace,
'Shift-Ctrl-,' : this.removeSpace,
'Shift-Cmd-,' : this.removeSpace,
- 'Shift-Ctrl-Enter' : this.newColumn,
- 'Shift-Cmd-Enter' : this.newColumn,
- 'Ctrl-Enter' : this.newPage,
- 'Cmd-Enter' : this.newPage,
'Ctrl-M' : this.makeSpan,
'Cmd-M' : this.makeSpan,
'Shift-Ctrl-M' : this.makeDiv,
'Shift-Cmd-M' : this.makeDiv,
'Ctrl-/' : this.makeComment,
- 'Cmd-/' : this.makeComment
- }
+ 'Cmd-/' : this.makeComment,
+ 'Ctrl-K' : this.makeLink,
+ 'Cmd-K' : this.makeLink,
+ 'Shift-Ctrl-Enter' : this.newColumn,
+ 'Shift-Cmd-Enter' : this.newColumn,
+ 'Ctrl-Enter' : this.newPage,
+ 'Cmd-Enter' : this.newPage,
+ 'Ctrl-[' : this.foldAllCode,
+ 'Cmd-[' : this.foldAllCode,
+ 'Ctrl-]' : this.unfoldAllCode,
+ 'Cmd-]' : this.unfoldAllCode
+ },
+ foldGutter : true,
+ foldOptions : {
+ scanUp : true,
+ rangeFinder : CodeMirror.fold.homebrewery,
+ widget : (from, to)=>{
+ let text = '';
+ let currentLine = from.line;
+ const maxLength = 50;
+ while (currentLine <= to.line && text.length <= maxLength) {
+ text += this.codeMirror.getLine(currentLine);
+ if(currentLine < to.line)
+ text += ' ';
+ currentLine += 1;
+ }
+
+ text = text.trim();
+ if(text.length > maxLength)
+ text = `${text.substr(0, maxLength)}...`;
+
+ return `\u21A4 ${text} \u21A6`;
+ }
+ },
+ gutters : ['CodeMirror-linenumbers', 'CodeMirror-foldgutter']
});
// Note: codeMirror passes a copy of itself in this callback. cm === this.codeMirror. Either one works.
@@ -175,6 +231,31 @@ const CodeEditor = createClass({
};
},
+ makeLink : function() {
+ const isLink = /^\[(.*)\]\((.*)\)$/;
+ const selection = this.codeMirror.getSelection().trim();
+ let match;
+ if(match = isLink.exec(selection)){
+ const altText = match[1];
+ const url = match[2];
+ this.codeMirror.replaceSelection(`${altText} ${url}`);
+ const cursor = this.codeMirror.getCursor();
+ this.codeMirror.setSelection({ line: cursor.line, ch: cursor.ch - url.length }, { line: cursor.line, ch: cursor.ch });
+ } else {
+ this.codeMirror.replaceSelection(`[${selection || 'alt text'}](url)`);
+ const cursor = this.codeMirror.getCursor();
+ this.codeMirror.setSelection({ line: cursor.line, ch: cursor.ch - 4 }, { line: cursor.line, ch: cursor.ch - 1 });
+ }
+ },
+
+ foldAllCode : function() {
+ this.codeMirror.execCommand('foldAll');
+ },
+
+ unfoldAllCode : function() {
+ this.codeMirror.execCommand('unfoldAll');
+ },
+
//=-- Externally used -==//
setCursorPosition : function(line, char){
setTimeout(()=>{
@@ -188,10 +269,19 @@ const CodeEditor = createClass({
updateSize : function(){
this.codeMirror.refresh();
},
+ redo : function(){
+ return this.codeMirror.redo();
+ },
+ undo : function(){
+ return this.codeMirror.undo();
+ },
+ historySize : function(){
+ return this.codeMirror.doc.historySize();
+ },
//----------------------//
render : function(){
- return ;
+ return ;
}
});
From a30e150ade2df8d6564585f186c0a1295b4a9481 Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Thu, 2 Dec 2021 15:47:18 -0500
Subject: [PATCH 31/33] Disable max lines to satisfy lint
Eventually we should move the hotkey scripts into a separate file. They are becoming a beast of their own.
---
shared/naturalcrit/codeEditor/codeEditor.jsx | 1 +
1 file changed, 1 insertion(+)
diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx
index 423e46468..57e306bd3 100644
--- a/shared/naturalcrit/codeEditor/codeEditor.jsx
+++ b/shared/naturalcrit/codeEditor/codeEditor.jsx
@@ -1,3 +1,4 @@
+/* eslint-disable max-lines */
require('./codeEditor.less');
const React = require('react');
const createClass = require('create-react-class');
From 1865e56b04ee49cbd330de8fe72e2602d005d1fb Mon Sep 17 00:00:00 2001
From: Trevor Buckner
Date: Thu, 2 Dec 2021 23:44:48 -0500
Subject: [PATCH 32/33] lint
---
shared/naturalcrit/codeEditor/codeEditor.jsx | 24 ++++++++++----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx
index d21a3c256..95302b10d 100644
--- a/shared/naturalcrit/codeEditor/codeEditor.jsx
+++ b/shared/naturalcrit/codeEditor/codeEditor.jsx
@@ -95,18 +95,18 @@ const CodeEditor = createClass({
'Cmd-/' : this.makeComment,
'Ctrl-K' : this.makeLink,
'Cmd-K' : this.makeLink,
- 'Shift-Ctrl-1' : ()=>this.makeHeader(1),
- 'Shift-Ctrl-2' : ()=>this.makeHeader(2),
- 'Shift-Ctrl-3' : ()=>this.makeHeader(3),
- 'Shift-Ctrl-4' : ()=>this.makeHeader(4),
- 'Shift-Ctrl-5' : ()=>this.makeHeader(5),
- 'Shift-Ctrl-6' : ()=>this.makeHeader(6),
- 'Shift-Cmd-1' : ()=>this.makeHeader(1),
- 'Shift-Cmd-2' : ()=>this.makeHeader(2),
- 'Shift-Cmd-3' : ()=>this.makeHeader(3),
- 'Shift-Cmd-4' : ()=>this.makeHeader(4),
- 'Shift-Cmd-5' : ()=>this.makeHeader(5),
- 'Shift-Cmd-6' : ()=>this.makeHeader(6),
+ 'Shift-Ctrl-1' : ()=>this.makeHeader(1),
+ 'Shift-Ctrl-2' : ()=>this.makeHeader(2),
+ 'Shift-Ctrl-3' : ()=>this.makeHeader(3),
+ 'Shift-Ctrl-4' : ()=>this.makeHeader(4),
+ 'Shift-Ctrl-5' : ()=>this.makeHeader(5),
+ 'Shift-Ctrl-6' : ()=>this.makeHeader(6),
+ 'Shift-Cmd-1' : ()=>this.makeHeader(1),
+ 'Shift-Cmd-2' : ()=>this.makeHeader(2),
+ 'Shift-Cmd-3' : ()=>this.makeHeader(3),
+ 'Shift-Cmd-4' : ()=>this.makeHeader(4),
+ 'Shift-Cmd-5' : ()=>this.makeHeader(5),
+ 'Shift-Cmd-6' : ()=>this.makeHeader(6),
'Shift-Ctrl-Enter' : this.newColumn,
'Shift-Cmd-Enter' : this.newColumn,
'Ctrl-Enter' : this.newPage,
From 00491379328c8966a35848d621d56655e0f49d12 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 6 Dec 2021 03:00:58 +0000
Subject: [PATCH 33/33] Bump eslint from 8.3.0 to 8.4.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.3.0 to 8.4.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.3.0...v8.4.0)
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
---
package-lock.json | 106 +++++++++++++++++++++++-----------------------
package.json | 2 +-
2 files changed, 54 insertions(+), 54 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index bbf92c64c..65b2524e2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -45,7 +45,7 @@
"vitreum": "git+https://git@github.com/calculuschild/vitreum.git"
},
"devDependencies": {
- "eslint": "^8.3.0",
+ "eslint": "^8.4.0",
"eslint-plugin-react": "^7.27.1",
"pico-check": "^2.1.3"
},
@@ -1776,14 +1776,14 @@
}
},
"node_modules/@eslint/eslintrc": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.0.4.tgz",
- "integrity": "sha512-h8Vx6MdxwWI2WM8/zREHMoqdgLNXEL4QX3MWSVMdyNJGvXVOs+6lp+m2hc3FnuMHDc4poxFNI20vCk0OmI4G0Q==",
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.0.5.tgz",
+ "integrity": "sha512-BLxsnmK3KyPunz5wmCCpqy0YelEoxxGmH73Is+Z74oOTMtExcjkr3dDR6quwrjh1YspA8DH9gnX1o069KiS9AQ==",
"dev": true,
"dependencies": {
"ajv": "^6.12.4",
"debug": "^4.3.2",
- "espree": "^9.0.0",
+ "espree": "^9.2.0",
"globals": "^13.9.0",
"ignore": "^4.0.6",
"import-fresh": "^3.2.1",
@@ -1796,9 +1796,9 @@
}
},
"node_modules/@eslint/eslintrc/node_modules/debug": {
- "version": "4.3.2",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
- "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
+ "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
"dev": true,
"dependencies": {
"ms": "2.1.2"
@@ -1831,12 +1831,12 @@
}
},
"node_modules/@humanwhocodes/config-array": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.6.0.tgz",
- "integrity": "sha512-JQlEKbcgEUjBFhLIF4iqM7u/9lwgHRBcpHrmUNCALK0Q3amXN6lxdoXLnF0sm11E9VqTmBALR87IlUg1bZ8A9A==",
+ "version": "0.9.2",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.2.tgz",
+ "integrity": "sha512-UXOuFCGcwciWckOpmfKDq/GyhlTf9pN/BzG//x8p8zTOFEcGuA68ANXheFS0AGvy3qgZqLBUkMs7hqzqCKOVwA==",
"dev": true,
"dependencies": {
- "@humanwhocodes/object-schema": "^1.2.0",
+ "@humanwhocodes/object-schema": "^1.2.1",
"debug": "^4.1.1",
"minimatch": "^3.0.4"
},
@@ -1845,9 +1845,9 @@
}
},
"node_modules/@humanwhocodes/config-array/node_modules/debug": {
- "version": "4.3.2",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
- "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
+ "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
"dev": true,
"dependencies": {
"ms": "2.1.2"
@@ -1868,9 +1868,9 @@
"dev": true
},
"node_modules/@humanwhocodes/object-schema": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz",
- "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==",
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
+ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
"dev": true
},
"node_modules/@sindresorhus/is": {
@@ -3850,13 +3850,13 @@
}
},
"node_modules/eslint": {
- "version": "8.3.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.3.0.tgz",
- "integrity": "sha512-aIay56Ph6RxOTC7xyr59Kt3ewX185SaGnAr8eWukoPLeriCrvGjvAubxuvaXOfsxhtwV5g0uBOsyhAom4qJdww==",
+ "version": "8.4.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.4.0.tgz",
+ "integrity": "sha512-kv0XQcAQJL/VD9THQKhTQZVqkJKA+tIj/v2ZKNaIHRAADcJWFb+B/BAewUYuF6UVg1s2xC5qXVoDk0G8sKGeTA==",
"dev": true,
"dependencies": {
- "@eslint/eslintrc": "^1.0.4",
- "@humanwhocodes/config-array": "^0.6.0",
+ "@eslint/eslintrc": "^1.0.5",
+ "@humanwhocodes/config-array": "^0.9.2",
"ajv": "^6.10.0",
"chalk": "^4.0.0",
"cross-spawn": "^7.0.2",
@@ -3867,7 +3867,7 @@
"eslint-scope": "^7.1.0",
"eslint-utils": "^3.0.0",
"eslint-visitor-keys": "^3.1.0",
- "espree": "^9.1.0",
+ "espree": "^9.2.0",
"esquery": "^1.4.0",
"esutils": "^2.0.2",
"fast-deep-equal": "^3.1.3",
@@ -4115,9 +4115,9 @@
}
},
"node_modules/espree": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/espree/-/espree-9.1.0.tgz",
- "integrity": "sha512-ZgYLvCS1wxOczBYGcQT9DDWgicXwJ4dbocr9uYN+/eresBAUuBu+O4WzB21ufQ/JqQT8gyp7hJ3z8SHii32mTQ==",
+ "version": "9.2.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.2.0.tgz",
+ "integrity": "sha512-oP3utRkynpZWF/F2x/HZJ+AGtnIclaR7z1pYPxy7NYM2fSO6LgK/Rkny8anRSPK/VwEA1eqm2squui0T7ZMOBg==",
"dev": true,
"dependencies": {
"acorn": "^8.6.0",
@@ -10771,14 +10771,14 @@
}
},
"@eslint/eslintrc": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.0.4.tgz",
- "integrity": "sha512-h8Vx6MdxwWI2WM8/zREHMoqdgLNXEL4QX3MWSVMdyNJGvXVOs+6lp+m2hc3FnuMHDc4poxFNI20vCk0OmI4G0Q==",
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.0.5.tgz",
+ "integrity": "sha512-BLxsnmK3KyPunz5wmCCpqy0YelEoxxGmH73Is+Z74oOTMtExcjkr3dDR6quwrjh1YspA8DH9gnX1o069KiS9AQ==",
"dev": true,
"requires": {
"ajv": "^6.12.4",
"debug": "^4.3.2",
- "espree": "^9.0.0",
+ "espree": "^9.2.0",
"globals": "^13.9.0",
"ignore": "^4.0.6",
"import-fresh": "^3.2.1",
@@ -10788,9 +10788,9 @@
},
"dependencies": {
"debug": {
- "version": "4.3.2",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
- "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
+ "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
"dev": true,
"requires": {
"ms": "2.1.2"
@@ -10811,20 +10811,20 @@
}
},
"@humanwhocodes/config-array": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.6.0.tgz",
- "integrity": "sha512-JQlEKbcgEUjBFhLIF4iqM7u/9lwgHRBcpHrmUNCALK0Q3amXN6lxdoXLnF0sm11E9VqTmBALR87IlUg1bZ8A9A==",
+ "version": "0.9.2",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.2.tgz",
+ "integrity": "sha512-UXOuFCGcwciWckOpmfKDq/GyhlTf9pN/BzG//x8p8zTOFEcGuA68ANXheFS0AGvy3qgZqLBUkMs7hqzqCKOVwA==",
"dev": true,
"requires": {
- "@humanwhocodes/object-schema": "^1.2.0",
+ "@humanwhocodes/object-schema": "^1.2.1",
"debug": "^4.1.1",
"minimatch": "^3.0.4"
},
"dependencies": {
"debug": {
- "version": "4.3.2",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
- "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
+ "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
"dev": true,
"requires": {
"ms": "2.1.2"
@@ -10839,9 +10839,9 @@
}
},
"@humanwhocodes/object-schema": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz",
- "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==",
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
+ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
"dev": true
},
"@sindresorhus/is": {
@@ -12466,13 +12466,13 @@
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
},
"eslint": {
- "version": "8.3.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.3.0.tgz",
- "integrity": "sha512-aIay56Ph6RxOTC7xyr59Kt3ewX185SaGnAr8eWukoPLeriCrvGjvAubxuvaXOfsxhtwV5g0uBOsyhAom4qJdww==",
+ "version": "8.4.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.4.0.tgz",
+ "integrity": "sha512-kv0XQcAQJL/VD9THQKhTQZVqkJKA+tIj/v2ZKNaIHRAADcJWFb+B/BAewUYuF6UVg1s2xC5qXVoDk0G8sKGeTA==",
"dev": true,
"requires": {
- "@eslint/eslintrc": "^1.0.4",
- "@humanwhocodes/config-array": "^0.6.0",
+ "@eslint/eslintrc": "^1.0.5",
+ "@humanwhocodes/config-array": "^0.9.2",
"ajv": "^6.10.0",
"chalk": "^4.0.0",
"cross-spawn": "^7.0.2",
@@ -12483,7 +12483,7 @@
"eslint-scope": "^7.1.0",
"eslint-utils": "^3.0.0",
"eslint-visitor-keys": "^3.1.0",
- "espree": "^9.1.0",
+ "espree": "^9.2.0",
"esquery": "^1.4.0",
"esutils": "^2.0.2",
"fast-deep-equal": "^3.1.3",
@@ -12666,9 +12666,9 @@
"dev": true
},
"espree": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/espree/-/espree-9.1.0.tgz",
- "integrity": "sha512-ZgYLvCS1wxOczBYGcQT9DDWgicXwJ4dbocr9uYN+/eresBAUuBu+O4WzB21ufQ/JqQT8gyp7hJ3z8SHii32mTQ==",
+ "version": "9.2.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.2.0.tgz",
+ "integrity": "sha512-oP3utRkynpZWF/F2x/HZJ+AGtnIclaR7z1pYPxy7NYM2fSO6LgK/Rkny8anRSPK/VwEA1eqm2squui0T7ZMOBg==",
"dev": true,
"requires": {
"acorn": "^8.6.0",
diff --git a/package.json b/package.json
index fb152d6d5..75aca3d11 100644
--- a/package.json
+++ b/package.json
@@ -75,7 +75,7 @@
"vitreum": "git+https://git@github.com/calculuschild/vitreum.git"
},
"devDependencies": {
- "eslint": "^8.3.0",
+ "eslint": "^8.4.0",
"eslint-plugin-react": "^7.27.1",
"pico-check": "^2.1.3"
}