-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to ESLint 9 and fix linting issues
- Loading branch information
1 parent
04b8789
commit 5600b6c
Showing
5 changed files
with
61 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
|
||
export default [js.configs.recommended, { ignores: ['vendor'] }, { | ||
languageOptions: { | ||
globals: globals.browser, | ||
}, | ||
linterOptions: { | ||
reportUnusedDisableDirectives: true, | ||
}, | ||
rules: { | ||
semi: ['error', 'never'], | ||
indent: ['warn', 4, { flatTernaryExpressions: true, SwitchCase: 1 }], | ||
quotes: ['warn', 'single', { avoidEscape: true }], | ||
'comma-dangle': ['warn', 'always-multiline'], | ||
'no-trailing-spaces': 'warn', | ||
'no-unused-vars': 'warn', | ||
'no-console': ['warn', { allow: ['debug', 'warn', 'error', 'assert'] }], | ||
'no-constant-condition': ['error', { checkLoops: false }], | ||
'no-empty': ['error', { allowEmptyCatch: true }], | ||
}, | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "foliate", | ||
"version": "0.0.0", | ||
"description": "Render e-books in the browser", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/johnfactotum/foliate-js.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/johnfactotum/foliate-js/issues" | ||
}, | ||
"homepage": "https://github.com/johnfactotum/foliate-js#readme", | ||
"author": "John Factotum", | ||
"license": "MIT", | ||
"type": "module", | ||
"exports": { | ||
"./*.js": "./*.js" | ||
}, | ||
"devDependencies": { | ||
"@eslint/js": "^9.1.0", | ||
"globals": "^15.0.0" | ||
}, | ||
"keywords": [ | ||
"ebook", | ||
"reader", | ||
"epub", | ||
"cfi", | ||
"mobi", | ||
"azw", | ||
"azw3", | ||
"fb2", | ||
"cbz", | ||
"dictd", | ||
"stardict", | ||
"opds" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters