Update dependencies and appease the linting gods.
This commit is contained in:
parent
47e306dcdb
commit
18dd962767
|
@ -0,0 +1 @@
|
||||||
|
_
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
yarn test
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
yarn test
|
32
package.json
32
package.json
|
@ -15,7 +15,8 @@
|
||||||
"clean": "trash .cache build/ web-ext-artifacts/",
|
"clean": "trash .cache build/ web-ext-artifacts/",
|
||||||
"build": "yarn clean && parcel build 'source/manifest.json' -d 'build/' && web-ext build --source-dir 'build/' && yarn zip-source",
|
"build": "yarn clean && parcel build 'source/manifest.json' -d 'build/' && web-ext build --source-dir 'build/' && yarn zip-source",
|
||||||
"zip-source": "zip -r web-ext-artifacts/tildes_reextended-source.zip README.md yarn.lock tsconfig.json package.json .gitignore LICENSE source/",
|
"zip-source": "zip -r web-ext-artifacts/tildes_reextended-source.zip README.md yarn.lock tsconfig.json package.json .gitignore LICENSE source/",
|
||||||
"test": "xo && stylelint 'source/scss/**/*.scss' && tsc --noEmit"
|
"test": "xo && stylelint 'source/scss/**/*.scss' && tsc --noEmit",
|
||||||
|
"postinstall": "husky install"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"caret-pos": "^2.0.0",
|
"caret-pos": "^2.0.0",
|
||||||
|
@ -23,25 +24,25 @@
|
||||||
"htm": "^3.0.4",
|
"htm": "^3.0.4",
|
||||||
"modern-normalize": "^1.0.0",
|
"modern-normalize": "^1.0.0",
|
||||||
"platform": "^1.3.6",
|
"platform": "^1.3.6",
|
||||||
"preact": "^10.5.7",
|
"preact": "^10.5.12",
|
||||||
"webextension-polyfill-ts": "^0.22.0"
|
"webextension-polyfill-ts": "^0.25.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/debounce": "^1.2.0",
|
"@types/debounce": "^1.2.0",
|
||||||
"@types/platform": "^1.3.3",
|
"@types/platform": "^1.3.3",
|
||||||
"eslint-config-xo-typescript": "^0.37.0",
|
"eslint-config-xo-typescript": "^0.38.0",
|
||||||
"husky": "^4.3.6",
|
"husky": "5",
|
||||||
"parcel-bundler": "^1.12.4",
|
"parcel-bundler": "^1.12.4",
|
||||||
"parcel-plugin-web-extension": "^1.6.1",
|
"parcel-plugin-web-extension": "^1.6.1",
|
||||||
"sass": "^1.30.0",
|
"sass": "^1.32.8",
|
||||||
"stylelint": "^13.8.0",
|
"stylelint": "^13.11.0",
|
||||||
"stylelint-config-xo-scss": "^0.14.0",
|
"stylelint-config-xo-scss": "^0.14.0",
|
||||||
"stylelint-config-xo-space": "^0.15.1",
|
"stylelint-config-xo-space": "^0.15.1",
|
||||||
"trash-cli": "^4.0.0",
|
"trash-cli": "^4.0.0",
|
||||||
"typescript": "^4.1.3",
|
"typescript": "^4.1.5",
|
||||||
"web-ext": "^5.4.1",
|
"web-ext": "^5.5.0",
|
||||||
"web-ext-types": "^3.2.1",
|
"web-ext-types": "^3.2.1",
|
||||||
"xo": "^0.36.1"
|
"xo": "^0.38.1"
|
||||||
},
|
},
|
||||||
"stylelint": {
|
"stylelint": {
|
||||||
"extends": [
|
"extends": [
|
||||||
|
@ -68,17 +69,12 @@
|
||||||
"prettier": true,
|
"prettier": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
"@typescript-eslint/no-implicit-any-catch": "off",
|
"@typescript-eslint/no-implicit-any-catch": "off",
|
||||||
"@typescript-eslint/no-loop-func": "off"
|
"@typescript-eslint/no-loop-func": "off",
|
||||||
|
"node/file-extension-in-import": "off"
|
||||||
},
|
},
|
||||||
"space": true
|
"space": true
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 2 Chrome versions"
|
"last 2 Chrome versions"
|
||||||
],
|
]
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "yarn test",
|
|
||||||
"pre-push": "yarn test"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,7 +113,7 @@ export class AutocompleteFeature extends Component<Props, State> {
|
||||||
|
|
||||||
// If there is any whitespace in the input or there is no input at all,
|
// If there is any whitespace in the input or there is no input at all,
|
||||||
// return early. Usernames cannot have whitespace in them.
|
// return early. Usernames cannot have whitespace in them.
|
||||||
if (/\s/.exec(input) || input === '') {
|
if (/\s/.test(input) || input === '') {
|
||||||
this.hide(target);
|
this.hide(target);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -313,9 +313,9 @@ export class UserLabelsFeature extends Component<Props, State> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
querySelectorAll(`[data-trx-label-id="${id}"]`).forEach((value) => {
|
for (const value of querySelectorAll(`[data-trx-label-id="${id}"]`)) {
|
||||||
value.remove();
|
value.remove();
|
||||||
});
|
}
|
||||||
|
|
||||||
settings.data.userLabels.splice(index, 1);
|
settings.data.userLabels.splice(index, 1);
|
||||||
void setSettings(settings);
|
void setSettings(settings);
|
||||||
|
|
Loading…
Reference in New Issue