Skip to content

Commit e823a60

Browse files
committed
linting
1 parent 80155d6 commit e823a60

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

eslint.config.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
import cityssmConfig, { tseslint } from 'eslint-config-cityssm';
1+
import cityssmConfig, { cspellWords, tseslint } from 'eslint-config-cityssm';
22
export const config = tseslint.config(...cityssmConfig, {
33
rules: {
4+
'@cspell/spellchecker': [
5+
'warn',
6+
{
7+
cspell: {
8+
words: [...cspellWords, 'master']
9+
}
10+
}
11+
],
412
'@typescript-eslint/no-magic-numbers': 'off'
513
}
614
});

eslint.config.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
import cityssmConfig, { tseslint } from 'eslint-config-cityssm'
1+
import cityssmConfig, { cspellWords, tseslint } from 'eslint-config-cityssm'
22

33
export const config = tseslint.config(...cityssmConfig, {
44
rules: {
5+
'@cspell/spellchecker': [
6+
'warn',
7+
{
8+
cspell: {
9+
words: [...cspellWords, 'master']
10+
}
11+
}
12+
],
513
'@typescript-eslint/no-magic-numbers': 'off'
614
}
715
})

xlsxReports/assets/w114.assetMasterList.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export function parseW114ExcelReport(pathToXlsxFile) {
2020
reportNameRowNumber: 2,
2121
exportDateTimeRowNumber: 3
2222
});
23+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
2324
if (results.reportName !== w114ReportName) {
2425
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
2526
throw new Error(`Invalid reportName: ${results.reportName}`);

xlsxReports/assets/w114.assetMasterList.ts

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export function parseW114ExcelReport(
6262
exportDateTimeRowNumber: 3
6363
}) as W114ExcelReportResults
6464

65+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
6566
if (results.reportName !== w114ReportName) {
6667
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
6768
throw new Error(`Invalid reportName: ${results.reportName}`)

0 commit comments

Comments
 (0)