Remove underscore from develop

This commit is contained in:
Paulo Gustavo Veiga 2021-12-13 14:00:47 -08:00
parent 143982f1a2
commit 695dd71921
5 changed files with 0 additions and 5 deletions

View File

@ -15,7 +15,6 @@
}, },
"plugins": ["only-warn"], "plugins": ["only-warn"],
"rules": { "rules": {
"no-underscore-dangle": "off",
"no-plusplus": "off", "no-plusplus": "off",
"class-methods-use-this": "off", "class-methods-use-this": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["!cypress/**/*.js"]}] "import/no-extraneous-dependencies": ["error", {"devDependencies": ["!cypress/**/*.js"]}]

View File

@ -34,7 +34,6 @@
"@wisemapping/web2d": "^0.0.1", "@wisemapping/web2d": "^0.0.1",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"mootools": "1.4.5", "mootools": "1.4.5",
"underscore": "^1.13.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.14.6", "@babel/core": "^7.14.6",

View File

@ -37,7 +37,6 @@ module.exports = {
exclude: [ exclude: [
/node_modules/, /node_modules/,
path.resolve(__dirname, '../../libraries/mootools-core-1.4.5'), path.resolve(__dirname, '../../libraries/mootools-core-1.4.5'),
path.resolve(__dirname, '../../libraries/underscore-min'),
/lib\/raphael/ig, /lib\/raphael/ig,
], ],
}, },

View File

@ -11,7 +11,6 @@
"Class": "readonly" "Class": "readonly"
}, },
"rules": { "rules": {
"no-underscore-dangle": "off",
"no-restricted-syntax": "off", "no-restricted-syntax": "off",
"no-plusplus": "off", "no-plusplus": "off",
"max-len": [1,250], "max-len": [1,250],

View File

@ -50,7 +50,6 @@ class TextPeer extends ElementPeer {
if (text) { if (text) {
const lines = text.split('\n'); const lines = text.split('\n');
const me = this; const me = this;
// FIXME: we could use underscorejs here
lines.forEach((line) => { lines.forEach((line) => {
const tspan = window.document.createElementNS(ElementPeer.svgNamespace, 'tspan'); const tspan = window.document.createElementNS(ElementPeer.svgNamespace, 'tspan');
tspan.setAttribute('dy', '1em'); tspan.setAttribute('dy', '1em');