diff --git a/action-sheet/.eslintignore b/action-sheet/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/action-sheet/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/action-sheet/package.json b/action-sheet/package.json index 24b946469..f0ba2255d 100644 --- a/action-sheet/package.json +++ b/action-sheet/package.json @@ -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", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/app-launcher/.eslintignore b/app-launcher/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/app-launcher/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/app-launcher/package.json b/app-launcher/package.json index bd7b6f637..48285daa9 100644 --- a/app-launcher/package.json +++ b/app-launcher/package.json @@ -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", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/app/.eslintignore b/app/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/app/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/app/package.json b/app/package.json index 90270ff46..9a68dd0d2 100644 --- a/app/package.json +++ b/app/package.json @@ -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", @@ -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", @@ -68,9 +68,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/browser/.eslintignore b/browser/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/browser/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/browser/package.json b/browser/package.json index dbd367f6b..bcf305b8f 100644 --- a/browser/package.json +++ b/browser/package.json @@ -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", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/clipboard/.eslintignore b/clipboard/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/clipboard/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/clipboard/package.json b/clipboard/package.json index 7a0e351ed..ac923688d 100644 --- a/clipboard/package.json +++ b/clipboard/package.json @@ -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", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/clipboard/src/web.ts b/clipboard/src/web.ts index 4d1cd5ef0..f92bd2476 100644 --- a/clipboard/src/web.ts +++ b/clipboard/src/web.ts @@ -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 { @@ -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 { diff --git a/device/.eslintignore b/device/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/device/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/device/package.json b/device/package.json index 5a3508de1..b91ac7ae7 100644 --- a/device/package.json +++ b/device/package.json @@ -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", @@ -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", @@ -70,9 +70,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/device/src/web.ts b/device/src/web.ts index 6b0d03582..ce3357eaf 100644 --- a/device/src/web.ts +++ b/device/src/web.ts @@ -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 } diff --git a/dialog/.eslintignore b/dialog/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/dialog/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/dialog/package.json b/dialog/package.json index 41b5cc253..132d118e6 100644 --- a/dialog/package.json +++ b/dialog/package.json @@ -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", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/eslint.config.cjs b/eslint.config.cjs new file mode 100644 index 000000000..cb5c2d12e --- /dev/null +++ b/eslint.config.cjs @@ -0,0 +1,15 @@ +const ionic = require('@ionic/eslint-config/recommended'); + +module.exports = [ + { + ignores: [ + '**/build/**', + '**/dist/**', + // lint TypeScript only + '**/*.js', + '**/*.mjs', + '**/*.cjs', + ], + }, + ...ionic, +]; diff --git a/motion/.eslintignore b/motion/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/motion/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/motion/package.json b/motion/package.json index 9228093fc..6b75cfee9 100644 --- a/motion/package.json +++ b/motion/package.json @@ -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", @@ -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", @@ -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" diff --git a/network/.eslintignore b/network/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/network/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/network/package.json b/network/package.json index a7c358d1a..6728bc9c5 100644 --- a/network/package.json +++ b/network/package.json @@ -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", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/preferences/.eslintignore b/preferences/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/preferences/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/preferences/package.json b/preferences/package.json index b74a2ddc2..42065e457 100644 --- a/preferences/package.json +++ b/preferences/package.json @@ -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", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/push-notifications/.eslintignore b/push-notifications/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/push-notifications/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/push-notifications/package.json b/push-notifications/package.json index fa57386c4..7e1c4b97a 100644 --- a/push-notifications/package.json +++ b/push-notifications/package.json @@ -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 PushNotificationsPlugin --output-readme README.md --output-json dist/docs.json", @@ -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", @@ -68,9 +68,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/screen-orientation/.eslintignore b/screen-orientation/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/screen-orientation/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/screen-orientation/package.json b/screen-orientation/package.json index 7a5dce4af..f1ab6594d 100644 --- a/screen-orientation/package.json +++ b/screen-orientation/package.json @@ -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 ScreenOrientationPlugin --output-readme README.md --output-json dist/docs.json", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/screen-reader/.eslintignore b/screen-reader/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/screen-reader/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/screen-reader/package.json b/screen-reader/package.json index 22a21058a..442fce412 100644 --- a/screen-reader/package.json +++ b/screen-reader/package.json @@ -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 ScreenReaderPlugin --output-readme README.md --output-json dist/docs.json", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/share/.eslintignore b/share/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/share/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/share/package.json b/share/package.json index 8e60b1c40..f5a620955 100644 --- a/share/package.json +++ b/share/package.json @@ -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 SharePlugin --output-readme README.md --output-json dist/docs.json", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/splash-screen/.eslintignore b/splash-screen/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/splash-screen/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/splash-screen/package.json b/splash-screen/package.json index a30feba43..86eeef3eb 100644 --- a/splash-screen/package.json +++ b/splash-screen/package.json @@ -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 SplashScreenPlugin --output-readme README.md --output-json dist/docs.json", @@ -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", @@ -68,9 +68,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/status-bar/.eslintignore b/status-bar/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/status-bar/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/status-bar/package.json b/status-bar/package.json index ffae5dfa3..2f3bc3750 100644 --- a/status-bar/package.json +++ b/status-bar/package.json @@ -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 StatusBarPlugin --output-readme README.md --output-json dist/docs.json", @@ -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", @@ -68,9 +68,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/text-zoom/.eslintignore b/text-zoom/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/text-zoom/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/text-zoom/package.json b/text-zoom/package.json index 685917f01..3cb6f49b0 100644 --- a/text-zoom/package.json +++ b/text-zoom/package.json @@ -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 TextZoomPlugin --output-readme README.md --output-json dist/docs.json", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios" diff --git a/toast/.eslintignore b/toast/.eslintignore deleted file mode 100644 index 9d0b71a3c..000000000 --- a/toast/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build -dist diff --git a/toast/package.json b/toast/package.json index d424cc905..324d8ced9 100644 --- a/toast/package.json +++ b/toast/package.json @@ -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 ToastPlugin --output-readme README.md --output-json dist/docs.json", @@ -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", @@ -67,9 +67,6 @@ }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", - "eslintConfig": { - "extends": "@ionic/eslint-config/recommended" - }, "capacitor": { "ios": { "src": "ios"