Import additional senses #26
Annotations
10 errors and 9 warnings
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L6
[eslint] reported by reviewdog 🐶
`@living-dictionaries/functions/src/algolia/prepareDataForIndex` import should occur before import of `../config-firebase`
Raw Output:
{"ruleId":"import/order","severity":2,"message":"`@living-dictionaries/functions/src/algolia/prepareDataForIndex` import should occur before import of `../config-firebase`","line":6,"column":1,"nodeType":"ImportDeclaration","messageId":"order","endLine":6,"endColumn":91,"fix":{"range":[0,345],"text":"import * as prepare from '@living-dictionaries/functions/src/algolia/prepareDataForIndex';\nimport { db } from '../config-firebase';\nimport { updateIndex } from './algolia';\nimport { ActualDatabaseEntry } from '@living-dictionaries/types';\n\n// import { prepareDataForIndex } from '@living-dictionaries/functions/src/algolia/prepareDataForIndex';\n"}}
|
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L6
[eslint] reported by reviewdog 🐶
Extra semicolon.
Raw Output:
{"ruleId":"style/semi","severity":2,"message":"Extra semicolon.","line":6,"column":90,"nodeType":"ImportDeclaration","messageId":"extraSemi","endLine":6,"endColumn":91,"fix":{"range":[279,364],"text":"'@living-dictionaries/functions/src/algolia/prepareDataForIndex'\n// @ts-ignore\nconst"}}
|
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L7
[eslint] reported by reviewdog 🐶
Use "@ts-expect-error" to ensure an error is actually being suppressed.
Raw Output:
{"ruleId":"ts/prefer-ts-expect-error","severity":2,"message":"Use \"@ts-expect-error\" to ensure an error is actually being suppressed.","line":7,"column":1,"nodeType":"Line","messageId":"preferExpectErrorComment","endLine":7,"endColumn":14,"fix":{"range":[345,358],"text":"// @ts-expect-error"}}
|
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L9
[eslint] reported by reviewdog 🐶
Extra semicolon.
Raw Output:
{"ruleId":"style/semi","severity":2,"message":"Extra semicolon.","line":9,"column":126,"nodeType":"VariableDeclaration","messageId":"extraSemi","endLine":9,"endColumn":127,"fix":{"range":[509,595],"text":"prepareDataForIndex // b/c file is declared to be commonjs by its package.json\n\nconst"}}
|
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L11
[eslint] reported by reviewdog 🐶
Top-level functions should be declared with function keyword
Raw Output:
{"ruleId":"antfu/top-level-function","severity":2,"message":"Top-level functions should be declared with function keyword","line":11,"column":7,"nodeType":"VariableDeclaration","messageId":"topLevelFunctionDeclaration","endLine":11,"endColumn":42,"fix":{"range":[590,944],"text":"async function indexAllDictionaries () {\n const dictionariesSnapshot = await db.collection(`dictionaries`).get();\n const dictionaryIds = dictionariesSnapshot.docs.map((doc) => doc.id);\n console.log(dictionaryIds);\n process.stdout.write(dictionaryIds + '\\n');\n\n for (const dictionaryId of dictionaryIds)\n await indexDictionary(dictionaryId);\n\n}"}}
|
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L11
[eslint] reported by reviewdog 🐶
'indexAllDictionaries' is assigned a value but never used. Allowed unused vars must match /^_/u.
Raw Output:
{"ruleId":"unused-imports/no-unused-vars","severity":2,"message":"'indexAllDictionaries' is assigned a value but never used. Allowed unused vars must match /^_/u.","line":11,"column":7,"nodeType":"Identifier","messageId":"unusedVar","endLine":11,"endColumn":27}
|
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L12
[eslint] reported by reviewdog 🐶
Extra semicolon.
Raw Output:
{"ruleId":"style/semi","severity":2,"message":"Extra semicolon.","line":12,"column":73,"nodeType":"VariableDeclaration","messageId":"extraSemi","endLine":12,"endColumn":74,"fix":{"range":[704,714],"text":")\n const"}}
|
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L13
[eslint] reported by reviewdog 🐶
Unexpected parentheses around single function argument having a body with no curly braces.
Raw Output:
{"ruleId":"style/arrow-parens","severity":2,"message":"Unexpected parentheses around single function argument having a body with no curly braces.","line":13,"column":56,"nodeType":"ArrowFunctionExpression","messageId":"unexpectedParensInline","endLine":13,"endColumn":59,"fix":{"range":[761,766],"text":"doc"}}
|
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L13
[eslint] reported by reviewdog 🐶
Extra semicolon.
Raw Output:
{"ruleId":"style/semi","severity":2,"message":"Extra semicolon.","line":13,"column":71,"nodeType":"VariableDeclaration","messageId":"extraSemi","endLine":13,"endColumn":72,"fix":{"range":[776,788],"text":")\n console"}}
|
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L14
[eslint] reported by reviewdog 🐶
Extra semicolon.
Raw Output:
{"ruleId":"style/semi","severity":2,"message":"Extra semicolon.","line":14,"column":29,"nodeType":"ExpressionStatement","messageId":"extraSemi","endLine":14,"endColumn":30,"fix":{"range":[806,818],"text":")\n process"}}
|
lint:
packages/scripts/algolia/addDictionariesToIndex.ts#L28
[eslint] reported by reviewdog 🐶
Unused eslint-disable directive (no problems were reported from 'no-undef').
Raw Output:
{"ruleId":null,"message":"Unused eslint-disable directive (no problems were reported from 'no-undef').","line":28,"column":1,"severity":1,"nodeType":null,"fix":{"range":[1208,1244],"text":" "}}
|
lint:
packages/scripts/algolia/updateIndex.ts#L29
[eslint] reported by reviewdog 🐶
Unused eslint-disable directive (no problems were reported from 'no-undef').
Raw Output:
{"ruleId":null,"message":"Unused eslint-disable directive (no problems were reported from 'no-undef').","line":29,"column":1,"severity":1,"nodeType":null,"fix":{"range":[1221,1257],"text":" "}}
|
lint:
packages/scripts/config-firebase.ts#L38
[eslint] reported by reviewdog 🐶
Unexpected any. Specify a different type.
Raw Output:
{"ruleId":"ts/no-explicit-any","severity":1,"message":"Unexpected any. Specify a different type.","line":38,"column":31,"nodeType":"TSAnyKeyword","messageId":"unexpectedAny","endLine":38,"endColumn":34,"suggestions":[{"messageId":"suggestUnknown","fix":{"range":[1585,1588],"text":"unknown"},"desc":"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."},{"messageId":"suggestNever","fix":{"range":[1585,1588],"text":"never"},"desc":"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."}]}
|
lint:
packages/scripts/import/import-spreadsheet-v4.ts#L30
[eslint] reported by reviewdog 🐶
Unexpected any. Specify a different type.
Raw Output:
{"ruleId":"ts/no-explicit-any","severity":1,"message":"Unexpected any. Specify a different type.","line":30,"column":9,"nodeType":"TSAnyKeyword","messageId":"unexpectedAny","endLine":30,"endColumn":12,"suggestions":[{"messageId":"suggestUnknown","fix":{"range":[1277,1280],"text":"unknown"},"desc":"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."},{"messageId":"suggestNever","fix":{"range":[1277,1280],"text":"never"},"desc":"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."}]}
|
lint:
packages/scripts/import/old/import-spreadsheet.ts#L1
[eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to disable file ignore settings or use "--no-warn-ignored" to suppress this warning.
Raw Output:
{"ruleId":null,"fatal":false,"severity":1,"message":"File ignored because of a matching ignore pattern. Use \"--no-ignore\" to disable file ignore settings or use \"--no-warn-ignored\" to suppress this warning.","nodeType":null}
|
lint:
packages/scripts/refactor/move-firestore-document.ts#L15
[eslint] reported by reviewdog 🐶
Unexpected any. Specify a different type.
Raw Output:
{"ruleId":"ts/no-explicit-any","severity":1,"message":"Unexpected any. Specify a different type.","line":15,"column":13,"nodeType":"TSAnyKeyword","messageId":"unexpectedAny","endLine":15,"endColumn":16,"suggestions":[{"messageId":"suggestUnknown","fix":{"range":[652,655],"text":"unknown"},"desc":"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."},{"messageId":"suggestNever","fix":{"range":[652,655],"text":"never"},"desc":"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."}]}
|
lint:
packages/scripts/refactor/move-firestore-document.ts#L29
[eslint] reported by reviewdog 🐶
Unexpected any. Specify a different type.
Raw Output:
{"ruleId":"ts/no-explicit-any","severity":1,"message":"Unexpected any. Specify a different type.","line":29,"column":12,"nodeType":"TSAnyKeyword","messageId":"unexpectedAny","endLine":29,"endColumn":15,"suggestions":[{"messageId":"suggestUnknown","fix":{"range":[1028,1031],"text":"unknown"},"desc":"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."},{"messageId":"suggestNever","fix":{"range":[1028,1031],"text":"never"},"desc":"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."}]}
|
lint:
packages/scripts/refactor/upload-old-dictionaries.ts#L11
[eslint] reported by reviewdog 🐶
Capture group '(.+)' should be converted to a named or non-capturing group.
Raw Output:
{"ruleId":"prefer-named-capture-group","severity":1,"message":"Capture group '(.+)' should be converted to a named or non-capturing group.","line":11,"column":11,"nodeType":"Literal","messageId":"required","endLine":11,"endColumn":49,"suggestions":[{"fix":{"range":[435,435],"text":"?<temp1>"},"messageId":"addGroupName","desc":"Add name to capture group."},{"fix":{"range":[435,435],"text":"?:"},"messageId":"addNonCapture","desc":"Convert group to non-capturing."}]}
|
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|