Update eslint to 8.27.0
This commit is contained in:
parent
c8fb43a846
commit
98ef4c627a
499 changed files with 8995 additions and 8494 deletions
|
@ -410,34 +410,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/@mdx-js/mdx/node_modules/resolve/lib/async.js",
|
||||
"line": " load(exts, x, loadAsFilePackage);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/@mdx-js/mdx/node_modules/resolve/lib/async.js",
|
||||
"line": " function load(exts, x, loadPackage) {",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/@mdx-js/mdx/node_modules/resolve/lib/async.js",
|
||||
"line": " if (r) return load(",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/@mdx-js/mdx/node_modules/resolve/lib/async.js",
|
||||
"line": " load(exts.slice(1), x, pkg);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-prepend(",
|
||||
"path": "node_modules/@mdx-js/mdx/node_modules/source-map/dist/source-map.debug.js",
|
||||
|
@ -465,20 +437,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-wrap(",
|
||||
"path": "node_modules/@mixer/parallel-prettier/node_modules/commander/index.js",
|
||||
"line": " return helper.wrap(fullText, helpWidth - itemIndentWidth, termWidth + itemSeparatorWidth);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-03-22T19:29:46.099Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-wrap(",
|
||||
"path": "node_modules/@mixer/parallel-prettier/node_modules/commander/index.js",
|
||||
"line": " wrap(str, width, indent, minColumnWidth = 40) {",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-03-22T19:29:46.099Z"
|
||||
},
|
||||
{
|
||||
"rule": "eval",
|
||||
"path": "node_modules/@protobufjs/inquire/index.js",
|
||||
|
@ -1801,34 +1759,6 @@
|
|||
"reasonCategory": "falseMatch|",
|
||||
"updated": "2020-04-30T22:35:27.860Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/del/node_modules/picomatch/lib/parse.js",
|
||||
"line": " if (tok.value || tok.output) append(tok);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-02-14T16:45:31.703Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/del/node_modules/picomatch/lib/parse.js",
|
||||
"line": " append({ value });",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-02-14T16:45:31.703Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/del/node_modules/picomatch/lib/parse.js",
|
||||
"line": " append({ value });",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-02-14T16:45:31.703Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/del/node_modules/picomatch/lib/parse.js",
|
||||
"line": " append({ value });",
|
||||
"reasonCategory": "falseMatch|exampleCode|otherUtilityCode|regexMatchedSafeCode|notExercisedByOurApp|ruleNeeded|usageTrusted",
|
||||
"updated": "2022-02-14T16:45:31.703Z"
|
||||
},
|
||||
{
|
||||
"rule": "eval",
|
||||
"path": "node_modules/depd/index.js",
|
||||
|
@ -2010,163 +1940,12 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-01T22:57:44.591Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/autocomplete.js",
|
||||
"line": " return this.append(ch);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/autocomplete.js",
|
||||
"line": " return this.options.multiple ? super.space(ch) : this.append(ch);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/autocomplete.js",
|
||||
"line": " append(ch) {",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/autocomplete.js",
|
||||
"line": " return this.append(ch);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/editable.js",
|
||||
"line": " append(char, key) {",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/editable.js",
|
||||
"line": " return this.focused.editable ? this.append(char) : super.space();",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/editable.js",
|
||||
"line": " return this.focused.editable ? this.append(char) : super.number(char);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/form.js",
|
||||
"line": " return !!char && this.append(char);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/form.js",
|
||||
"line": " append(char) {",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/snippet.js",
|
||||
"line": " this.append(ch, key);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/prompts/snippet.js",
|
||||
"line": " append(ch, key) {",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/types/number.js",
|
||||
"line": " append(ch) {",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/types/number.js",
|
||||
"line": " return super.append(ch);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/types/number.js",
|
||||
"line": " return super.append(ch);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/types/string.js",
|
||||
"line": " return this.append('\\n', key);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/types/string.js",
|
||||
"line": " this.append(ch);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/types/string.js",
|
||||
"line": " append(ch) {",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/enquirer/lib/types/string.js",
|
||||
"line": " this.append(str);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/envinfo/dist/envinfo.js",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-04-05T20:48:36.065Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/espree/node_modules/acorn/dist/acorn.js",
|
||||
"line": " // $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "React-ref",
|
||||
"path": "node_modules/esquery/dist/esquery.esm.min.js",
|
||||
|
@ -2229,13 +2008,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-12-01T01:13:59.892Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/file-entry-cache/cache.js",
|
||||
"line": " var cache = flatCache.load( cacheId, _path );",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2018-09-15T00:38:04.183Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-wrap(",
|
||||
"path": "node_modules/filelist/index.js",
|
||||
|
@ -2250,20 +2022,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-25T00:30:50.619Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/flat-cache/cache.js",
|
||||
"line": " me.load( fName, dir );",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2018-09-15T00:38:04.183Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/flat-cache/cache.js",
|
||||
"line": " obj.load( docId, cacheDir );",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2018-09-15T00:38:04.183Z"
|
||||
},
|
||||
{
|
||||
"rule": "React-findDOMNode",
|
||||
"path": "node_modules/focus-trap-react/dist/focus-trap-react.js",
|
||||
|
@ -8062,34 +7820,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/remark-mdx/node_modules/resolve/lib/async.js",
|
||||
"line": " load(exts, x, loadAsFilePackage);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/remark-mdx/node_modules/resolve/lib/async.js",
|
||||
"line": " function load(exts, x, loadPackage) {",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/remark-mdx/node_modules/resolve/lib/async.js",
|
||||
"line": " if (r) return load(",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/remark-mdx/node_modules/resolve/lib/async.js",
|
||||
"line": " load(exts.slice(1), x, pkg);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-06-04T00:50:49.405Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-prepend(",
|
||||
"path": "node_modules/remark-mdx/node_modules/source-map/dist/source-map.debug.js",
|
||||
|
@ -8255,14 +7985,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2022-02-11T21:58:24.827Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/table/dist/createStream.js",
|
||||
"line": " return append(row, columnWidthIndex, config);",
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/tar-stream/extract.js",
|
||||
|
@ -9043,13 +8765,6 @@
|
|||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2022-08-19T17:09:38.534Z"
|
||||
},
|
||||
{
|
||||
"rule": "React-useRef",
|
||||
"path": "ts/components/ListView.tsx",
|
||||
"line": " const listRef = useRef<null | List>(null);",
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2022-11-11T17:11:07.659Z"
|
||||
},
|
||||
{
|
||||
"rule": "React-useRef",
|
||||
"path": "ts/components/DirectCallRemoteParticipant.tsx",
|
||||
|
@ -9133,7 +8848,7 @@
|
|||
{
|
||||
"rule": "React-useRef",
|
||||
"path": "ts/components/Input.tsx",
|
||||
"line": " const innerRef = useRef<HTMLInputElement | HTMLTextAreaElement | null>(",
|
||||
"line": " const innerRef = useRef<HTMLInputElement | HTMLTextAreaElement | null>(null);",
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2021-07-30T16:57:33.618Z"
|
||||
},
|
||||
|
@ -9200,6 +8915,13 @@
|
|||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2021-10-11T21:21:08.188Z"
|
||||
},
|
||||
{
|
||||
"rule": "React-useRef",
|
||||
"path": "ts/components/ListView.tsx",
|
||||
"line": " const listRef = useRef<null | List>(null);",
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2022-11-11T17:11:07.659Z"
|
||||
},
|
||||
{
|
||||
"rule": "React-createRef",
|
||||
"path": "ts/components/MainHeader.tsx",
|
||||
|
|
|
@ -110,6 +110,9 @@ const excludedFilesRegexp = RegExp(
|
|||
// Modules used only in test/development scenarios
|
||||
'^node_modules/@babel/.+',
|
||||
'^node_modules/@chanzuckerberg/axe-storybook-testing/.+',
|
||||
'^node_modules/@humanwhocodes/config-array/.+',
|
||||
'^node_modules/@mixer/parallel-prettier/.+',
|
||||
'^node_modules/@eslint/.+',
|
||||
'^node_modules/@signalapp/mock-server/.+',
|
||||
'^node_modules/@svgr/.+',
|
||||
'^node_modules/@types/.+',
|
||||
|
@ -165,17 +168,21 @@ const excludedFilesRegexp = RegExp(
|
|||
'^node_modules/esbuild/.+',
|
||||
'^node_modules/escodegen/.+',
|
||||
'^node_modules/eslint.+',
|
||||
'^node_modules/espree.+',
|
||||
'^node_modules/@typescript-eslint.+',
|
||||
'^node_modules/esprima/.+',
|
||||
'^node_modules/express/.+',
|
||||
'^node_modules/fast-glob/.+',
|
||||
'^node_modules/file-entry-cache/.+',
|
||||
'^node_modules/file-loader/.+',
|
||||
'^node_modules/file-system-cache/.+', // Currently only used in storybook
|
||||
'^node_modules/finalhandler/.+',
|
||||
'^node_modules/flat-cache/.+',
|
||||
'^node_modules/foreground-chat/.+',
|
||||
'^node_modules/fsevents/.+',
|
||||
'^node_modules/gauge/.+',
|
||||
'^node_modules/global-agent/.+',
|
||||
'^node_modules/globby/.+',
|
||||
'^node_modules/globule/.+',
|
||||
'^node_modules/handle-thing/.+',
|
||||
'^node_modules/handlebars/.+', // Used by nyc#istanbul-reports
|
||||
|
@ -189,6 +196,7 @@ const excludedFilesRegexp = RegExp(
|
|||
'^node_modules/jimp/.+',
|
||||
'^node_modules/jquery/.+',
|
||||
'^node_modules/jake/.+',
|
||||
'^node_modules/js-sdsl/.+',
|
||||
'^node_modules/jss-global/.+',
|
||||
'^node_modules/jss/.+',
|
||||
'^node_modules/liftup/.+',
|
||||
|
@ -203,6 +211,7 @@ const excludedFilesRegexp = RegExp(
|
|||
'^node_modules/needle/.+',
|
||||
'^node_modules/nise/.+',
|
||||
'^node_modules/node-gyp/.+',
|
||||
'^node_modules/normalize-package-data/.+',
|
||||
'^node_modules/npm-run-all/.+',
|
||||
'^node_modules/nsp/.+',
|
||||
'^node_modules/nyc/.+',
|
||||
|
@ -217,12 +226,14 @@ const excludedFilesRegexp = RegExp(
|
|||
'^node_modules/prop-types/.+',
|
||||
'^node_modules/protobufjs/cli/.+',
|
||||
'^node_modules/ramda/.+',
|
||||
'^node_modules/rambda/.+',
|
||||
'^node_modules/react-dev-utils/.+',
|
||||
'^node_modules/react-docgen/.+',
|
||||
'^node_modules/react-error-overlay/.+',
|
||||
'^node_modules/read-config-file/.+', // Used by electron-builder
|
||||
'^node_modules/read-pkg/.+', // Used by npm-run-all
|
||||
'^node_modules/recast/.+',
|
||||
'^node_modules/rechoir/.+',
|
||||
'^node_modules/reduce-css-calc/.+',
|
||||
'^node_modules/requizzle/.+',
|
||||
'^node_modules/resolve/.+',
|
||||
|
@ -395,7 +406,7 @@ async function main(argv: ReadonlyArray<string>): Promise<void> {
|
|||
exception.rule === rule.name &&
|
||||
exception.path === relativePath &&
|
||||
(line.length < 300
|
||||
? exception.line === line
|
||||
? exception.line?.trim() === line.trim()
|
||||
: exception.line === undefined)
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue