Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

16 changes: 16 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const ionic = require('@ionic/eslint-config/recommended');

module.exports = [
{
ignores: [
// eslint . --ext ts linted TypeScript only
'**/*.js',
'**/*.mjs',
'**/*.cjs',
'**/build/**',
'**/dist/**',
'**/example-app/**',
],
},
...ionic,
];
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"verify:web": "npm run build",
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
"eslint": "eslint . --ext ts",
"eslint": "eslint .",
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
"swiftlint": "node-swiftlint",
"docgen": "docgen --api FilesystemPlugin --output-readme README.md --output-json dist/docs.json",
Expand All @@ -54,7 +54,7 @@
"@capacitor/core": "next",
"@capacitor/docgen": "^0.3.0",
"@capacitor/ios": "next",
"@ionic/eslint-config": "^0.4.0",
"@ionic/eslint-config": "^0.5.0",
"@ionic/prettier-config": "^4.0.0",
"@ionic/swiftlint-config": "^2.0.0",
"@semantic-release/changelog": "^6.0.3",
Expand All @@ -63,7 +63,7 @@
"@semantic-release/github": "^12.0.2",
"@semantic-release/npm": "^13.1.2",
"@types/node": "^24.10.1",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.2",
Expand All @@ -77,9 +77,6 @@
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
Expand Down
6 changes: 3 additions & 3 deletions src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ export class FilesystemWeb extends WebPlugin implements FilesystemPlugin {
path: to,
directory: toDirectory,
});
} catch (e) {
} catch {
// To location does not exist, ensure the directory containing "to" location exists and is a directory
const toPathComponents = to.split('/');
toPathComponents.pop();
Expand Down Expand Up @@ -582,7 +582,7 @@ export class FilesystemWeb extends WebPlugin implements FilesystemPlugin {
if (doRename) {
await updateTime(to, ctime, fromObj.mtime);
}
} catch (e) {
} catch {
// ignore
}

Expand Down Expand Up @@ -686,7 +686,7 @@ export class FilesystemWeb extends WebPlugin implements FilesystemPlugin {
private isBase64String(str: string): boolean {
try {
return btoa(atob(str)) == str;
} catch (err) {
} catch {
return false;
}
}
Expand Down