Skip to content

Commit

Permalink
chore(ci): Update swiftlint config/commands for latest version (#4376)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Mar 19, 2021
1 parent a9f30a8 commit 4def0a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"lerna:publish:next": "lerna publish from-git --force-publish --dist-tag next --yes",
"lerna:publish:latest": "lerna publish from-git --force-publish --dist-tag latest --yes",
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- autocorrect --format",
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
"prettier": "prettier \"**/*.{css,html,java,js,mjs,ts}\"",
"eslint": "eslint . --ext ts",
"swiftlint": "node-swiftlint",
Expand Down
7 changes: 5 additions & 2 deletions swiftlint.config.js
@@ -1,5 +1,8 @@
module.exports = {
...require('@ionic/swiftlint-config'),
included: ['ios', 'ios-template'],
excluded: ['ios/Capacitor/CapacitorTests', 'ios/Capacitor/TestsHostApp'],
included: ['${PWD}/ios', '${PWD}/ios-template'],
excluded: [
'${PWD}/ios/Capacitor/CapacitorTests',
'${PWD}/ios/Capacitor/TestsHostApp',
],
};

0 comments on commit 4def0a8

Please sign in to comment.