Update TypeScript ESLint dependencies
This commit is contained in:
parent
e60773cdf3
commit
465b387a13
5 changed files with 623 additions and 198 deletions
|
@ -23,6 +23,7 @@ const rules = {
|
||||||
|
|
||||||
// it helps readability to put public API at top,
|
// it helps readability to put public API at top,
|
||||||
'no-use-before-define': 'off',
|
'no-use-before-define': 'off',
|
||||||
|
'@typescript-eslint/no-use-before-define': 'off',
|
||||||
|
|
||||||
// useful for unused or internal fields
|
// useful for unused or internal fields
|
||||||
'no-underscore-dangle': 'off',
|
'no-underscore-dangle': 'off',
|
||||||
|
|
|
@ -240,8 +240,8 @@
|
||||||
"@types/webpack-dev-server": "3.11.3",
|
"@types/webpack-dev-server": "3.11.3",
|
||||||
"@types/websocket": "1.0.0",
|
"@types/websocket": "1.0.0",
|
||||||
"@types/yargs": "17.0.7",
|
"@types/yargs": "17.0.7",
|
||||||
"@typescript-eslint/eslint-plugin": "4.30.0",
|
"@typescript-eslint/eslint-plugin": "5.6.0",
|
||||||
"@typescript-eslint/parser": "4.30.0",
|
"@typescript-eslint/parser": "5.6.0",
|
||||||
"arraybuffer-loader": "1.0.3",
|
"arraybuffer-loader": "1.0.3",
|
||||||
"asar": "3.1.0",
|
"asar": "3.1.0",
|
||||||
"babel-core": "7.0.0-bridge.0",
|
"babel-core": "7.0.0-bridge.0",
|
||||||
|
@ -257,7 +257,7 @@
|
||||||
"electron-mocha": "11.0.2",
|
"electron-mocha": "11.0.2",
|
||||||
"electron-notarize": "0.1.1",
|
"electron-notarize": "0.1.1",
|
||||||
"eslint": "7.7.0",
|
"eslint": "7.7.0",
|
||||||
"eslint-config-airbnb-typescript-prettier": "3.1.0",
|
"eslint-config-airbnb-typescript-prettier": "4.2.0",
|
||||||
"eslint-config-prettier": "6.11.0",
|
"eslint-config-prettier": "6.11.0",
|
||||||
"eslint-plugin-import": "2.22.0",
|
"eslint-plugin-import": "2.22.0",
|
||||||
"eslint-plugin-mocha": "9.0.0",
|
"eslint-plugin-mocha": "9.0.0",
|
||||||
|
|
|
@ -28,7 +28,7 @@ export type PropsType<T> = {
|
||||||
readonly value: T;
|
readonly value: T;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const ContextMenu = <T extends unknown>({
|
export function ContextMenu<T>({
|
||||||
buttonClassName,
|
buttonClassName,
|
||||||
i18n,
|
i18n,
|
||||||
menuOptions,
|
menuOptions,
|
||||||
|
@ -36,7 +36,7 @@ export const ContextMenu = <T extends unknown>({
|
||||||
theme,
|
theme,
|
||||||
title,
|
title,
|
||||||
value,
|
value,
|
||||||
}: PropsType<T>): JSX.Element => {
|
}: PropsType<T>): JSX.Element {
|
||||||
const [menuShowing, setMenuShowing] = useState<boolean>(false);
|
const [menuShowing, setMenuShowing] = useState<boolean>(false);
|
||||||
const [focusedIndex, setFocusedIndex] = useState<number | undefined>(
|
const [focusedIndex, setFocusedIndex] = useState<number | undefined>(
|
||||||
undefined
|
undefined
|
||||||
|
@ -183,4 +183,4 @@ export const ContextMenu = <T extends unknown>({
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
|
@ -1497,6 +1497,55 @@
|
||||||
"reasonCategory": "exampleCode",
|
"reasonCategory": "exampleCode",
|
||||||
"updated": "2021-11-13T01:24:25.496Z"
|
"updated": "2021-11-13T01:24:25.496Z"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"rule": "jQuery-append(",
|
||||||
|
"path": "node_modules/globby/node_modules/braces/lib/expand.js",
|
||||||
|
"line": " result.push(append(value, stash, enclose));",
|
||||||
|
"reasonCategory": "falseMatch",
|
||||||
|
"updated": "2021-12-11T01:13:16.250Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "jQuery-append(",
|
||||||
|
"path": "node_modules/globby/node_modules/braces/lib/expand.js",
|
||||||
|
"line": " result.push(Array.isArray(ele) ? append(item, ele, enclose) : (item + ele));",
|
||||||
|
"reasonCategory": "falseMatch",
|
||||||
|
"updated": "2021-12-11T01:13:16.250Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "jQuery-append(",
|
||||||
|
"path": "node_modules/globby/node_modules/braces/lib/expand.js",
|
||||||
|
"line": " q.push(append(q.pop(), stringify(node, options)));",
|
||||||
|
"reasonCategory": "falseMatch",
|
||||||
|
"updated": "2021-12-11T01:13:16.250Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "jQuery-append(",
|
||||||
|
"path": "node_modules/globby/node_modules/braces/lib/expand.js",
|
||||||
|
"line": " q.push(append(q.pop(), ['{}']));",
|
||||||
|
"reasonCategory": "falseMatch",
|
||||||
|
"updated": "2021-12-11T01:13:16.250Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "jQuery-append(",
|
||||||
|
"path": "node_modules/globby/node_modules/braces/lib/expand.js",
|
||||||
|
"line": " q.push(append(q.pop(), range));",
|
||||||
|
"reasonCategory": "falseMatch",
|
||||||
|
"updated": "2021-12-11T01:13:16.250Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "jQuery-append(",
|
||||||
|
"path": "node_modules/globby/node_modules/braces/lib/expand.js",
|
||||||
|
"line": " q.push(append(q.pop(), queue, enclose));",
|
||||||
|
"reasonCategory": "falseMatch",
|
||||||
|
"updated": "2021-12-11T01:13:16.250Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "jQuery-append(",
|
||||||
|
"path": "node_modules/globby/node_modules/braces/lib/expand.js",
|
||||||
|
"line": " queue.push(append(queue.pop(), child.value));",
|
||||||
|
"reasonCategory": "falseMatch",
|
||||||
|
"updated": "2021-12-11T01:13:16.250Z"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"rule": "DOM-innerHTML",
|
"rule": "DOM-innerHTML",
|
||||||
"path": "node_modules/google-libphonenumber/dist/libphonenumber.js",
|
"path": "node_modules/google-libphonenumber/dist/libphonenumber.js",
|
||||||
|
@ -6555,13 +6604,6 @@
|
||||||
"reasonCategory": "falseMatch",
|
"reasonCategory": "falseMatch",
|
||||||
"updated": "2021-12-07T23:11:11.870Z"
|
"updated": "2021-12-07T23:11:11.870Z"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"rule": "jQuery-wrap(",
|
|
||||||
"path": "node_modules/tsutils/util/convert-ast.js",
|
|
||||||
"line": " ts.forEachChild(sourceFile, function wrap(node) {",
|
|
||||||
"reasonCategory": "falseMatch",
|
|
||||||
"updated": "2018-09-19T18:13:29.628Z"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"rule": "jQuery-$(",
|
"rule": "jQuery-$(",
|
||||||
"path": "node_modules/type-check/lib/parse-type.js",
|
"path": "node_modules/type-check/lib/parse-type.js",
|
||||||
|
|
Loading…
Reference in a new issue