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
2 changes: 0 additions & 2 deletions action-sheet/.eslintignore

This file was deleted.

9 changes: 3 additions & 6 deletions action-sheet/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 ActionSheetPlugin --output-readme README.md --output-json dist/docs.json",
Expand All @@ -51,10 +51,10 @@
"@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",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
Expand All @@ -67,9 +67,6 @@
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
Expand Down
2 changes: 0 additions & 2 deletions app-launcher/.eslintignore

This file was deleted.

9 changes: 3 additions & 6 deletions app-launcher/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 AppLauncherPlugin --output-readme README.md --output-json dist/docs.json",
Expand All @@ -51,10 +51,10 @@
"@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",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
Expand All @@ -67,9 +67,6 @@
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
Expand Down
2 changes: 0 additions & 2 deletions app/.eslintignore

This file was deleted.

9 changes: 3 additions & 6 deletions app/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 AppPlugin --output-readme README.md",
Expand All @@ -52,10 +52,10 @@
"@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",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
Expand All @@ -68,9 +68,6 @@
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
Expand Down
2 changes: 0 additions & 2 deletions browser/.eslintignore

This file was deleted.

9 changes: 3 additions & 6 deletions browser/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 BrowserPlugin --output-readme README.md --output-json dist/docs.json",
Expand All @@ -51,10 +51,10 @@
"@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",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
Expand All @@ -67,9 +67,6 @@
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
Expand Down
2 changes: 0 additions & 2 deletions clipboard/.eslintignore

This file was deleted.

9 changes: 3 additions & 6 deletions clipboard/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 ClipboardPlugin --output-readme README.md --output-json dist/docs.json",
Expand All @@ -51,10 +51,10 @@
"@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",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
Expand All @@ -67,9 +67,6 @@
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
Expand Down
4 changes: 2 additions & 2 deletions clipboard/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class ClipboardWeb extends WebPlugin implements ClipboardPlugin {
const blob = await (await fetch(options.image)).blob();
const clipboardItemInput = new ClipboardItem({ [blob.type]: blob });
await navigator.clipboard.write([clipboardItemInput]);
} catch (err) {
} catch {
throw new Error('Failed to write image');
}
} else {
Expand All @@ -50,7 +50,7 @@ export class ClipboardWeb extends WebPlugin implements ClipboardPlugin {
const clipboardBlob = await clipboardItems[0].getType(type);
const data = await this._getBlobData(clipboardBlob, type);
return { value: data, type };
} catch (err) {
} catch {
return this.readText();
}
} else {
Expand Down
2 changes: 0 additions & 2 deletions device/.eslintignore

This file was deleted.

9 changes: 3 additions & 6 deletions device/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"verify:web": "npm run build && npm test",
"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 DevicePlugin --output-readme README.md --output-json dist/docs.json",
Expand All @@ -52,10 +52,10 @@
"@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",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
Expand All @@ -70,9 +70,6 @@
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
Expand Down
2 changes: 1 addition & 1 deletion device/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class DeviceWeb extends WebPlugin implements DevicePlugin {

try {
battery = await navigator.getBattery();
} catch (e) {
} catch {
// Let it fail, we don't care
}

Expand Down
2 changes: 0 additions & 2 deletions dialog/.eslintignore

This file was deleted.

9 changes: 3 additions & 6 deletions dialog/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 DialogPlugin --output-readme README.md --output-json dist/docs.json",
Expand All @@ -51,10 +51,10 @@
"@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",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
Expand All @@ -67,9 +67,6 @@
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
Expand Down
15 changes: 15 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const ionic = require('@ionic/eslint-config/recommended');

module.exports = [
{
ignores: [
'**/build/**',
'**/dist/**',
// lint TypeScript only
'**/*.js',
'**/*.mjs',
'**/*.cjs',
],
},
...ionic,
];
2 changes: 0 additions & 2 deletions motion/.eslintignore

This file was deleted.

9 changes: 3 additions & 6 deletions motion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"verify:web": "npm run build",
"lint": "npm run eslint && npm run prettier -- --check",
"fmt": "npm run eslint -- --fix && npm run prettier -- --write",
"eslint": "eslint . --ext ts",
"eslint": "eslint .",
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
"docgen": "docgen --api MotionPlugin --output-readme README.md --output-json dist/docs.json",
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
Expand All @@ -43,9 +43,9 @@
"@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",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
Expand All @@ -56,9 +56,6 @@
"@capacitor/core": ">=9.0.0-alpha.0"
},
"prettier": "@ionic/prettier-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 0 additions & 2 deletions network/.eslintignore

This file was deleted.

9 changes: 3 additions & 6 deletions network/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 NetworkPlugin --output-readme README.md --output-json dist/docs.json",
Expand All @@ -51,10 +51,10 @@
"@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",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
Expand All @@ -67,9 +67,6 @@
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
Expand Down
2 changes: 0 additions & 2 deletions preferences/.eslintignore

This file was deleted.

9 changes: 3 additions & 6 deletions preferences/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 PreferencesPlugin --output-readme README.md --output-json dist/docs.json",
Expand All @@ -51,10 +51,10 @@
"@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",
"eslint": "^8.57.1",
"eslint": "^10.0.0",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
Expand All @@ -67,9 +67,6 @@
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
Expand Down
2 changes: 0 additions & 2 deletions push-notifications/.eslintignore

This file was deleted.

Loading
Loading