Skip to content

Commit

Permalink
Whitespace rules (#441)
Browse files Browse the repository at this point in the history
* Update whitespace rules

* Typescript rules
  • Loading branch information
toasted-nutbread authored Dec 25, 2023
1 parent 83ebc13 commit c22425b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
"no-case-declarations": "error",
"no-const-assign": "error",
"no-constant-condition": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 2
}
],
"no-global-assign": "error",
"no-new": "error",
"no-param-reassign": "off",
Expand Down Expand Up @@ -211,6 +217,10 @@
"after": true
}
],
"space-before-blocks": [
"error",
"always"
],
"space-before-function-paren": [
"error",
{
Expand Down Expand Up @@ -392,6 +402,12 @@
"*.ts"
],
"rules": {
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-undef": "off",
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/no-unused-vars": [
Expand Down
1 change: 0 additions & 1 deletion test/database.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ function countKanjiWithCharacter(kanji, character) {
}



/** */
async function testDatabase1() {
test('Database1', async () => {
Expand Down
1 change: 0 additions & 1 deletion types/ext/dictionary-importer-media-loader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export type GetImageDetailsFunction = (
transfer?: Transferable[]
) => Promise<{content: ArrayBuffer, width: number, height: number}>;


export type GenericMediaLoader = {
getImageDetails: GetImageDetailsFunction;
};
1 change: 0 additions & 1 deletion types/ext/offscreen.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export type FindKanjiOptionsOffscreen = Omit<Translation.FindKanjiOptions, 'enab
][];
};


export type FindTermsOptionsOffscreen = Omit<Translation.FindTermsOptions, 'enabledDictionaryMap' | 'excludeDictionaryDefinitions' | 'textReplacements'> & {
enabledDictionaryMap: [
key: string,
Expand Down

0 comments on commit c22425b

Please sign in to comment.