|
36 | 36 | "deprecations": "npm run docs:deprecated",
|
37 | 37 | "docs:deprecated": "./build/scons deprecations",
|
38 | 38 | "docs:removed": "./build/scons removals 7.0.0",
|
39 |
| - "format": "npm-run-all --parallel format:**", |
| 39 | + "format": "npm-run-all --parallel format:!\\(ios\\|android\\)", |
40 | 40 | "format:android": "echo Formatting Android code is not supported.",
|
41 |
| - "format:ios": "npm run lint:ios -- --fix", |
| 41 | + "format:ios": "npm-run-all --parallel format:objc format:swift", |
| 42 | + "format:objc": "npm run lint:objc -- --fix", |
| 43 | + "format:swift": "npm run lint:swift -- autocorrect", |
42 | 44 | "format:js": "npm run lint:js -- --fix",
|
43 | 45 | "ios": "./build/scons cleanbuild ios",
|
44 | 46 | "ios-sanity-check": "./build/scons check-ios-toplevel",
|
45 | 47 | "link": "npm run deploy -- --symlink",
|
46 |
| - "lint": "npm-run-all --parallel lint:**", |
| 48 | + "lint": "npm-run-all --parallel lint:!\\(ios\\)", |
47 | 49 | "lint:android": "./android/gradlew checkJavaStyle -p ./android --console plain",
|
48 | 50 | "lint:docs": "tdoc-validate ./apidoc",
|
49 |
| - "lint:ios": "clang-format-lint $npm_package_config_format_ios", |
| 51 | + "lint:ios": "npm-run-all --parallel lint:objc lint:swift", |
| 52 | + "lint:objc": "clang-format-lint $npm_package_config_format_objc", |
| 53 | + "lint:swift": "swiftlint", |
50 | 54 | "lint:js": "eslint .",
|
51 | 55 | "lint:lockfile": "./build/scons check-lockfile",
|
52 | 56 | "package": "./build/scons package",
|
|
76 | 80 | "path": "./node_modules/cz-conventional-changelog"
|
77 | 81 | },
|
78 | 82 | "format": {
|
79 |
| - "android": "android/!(app|templates)/**/*.java", |
80 |
| - "ios": "iphone/Classes/*.{m,h} iphone/Classes/Layout/*.{m,h} iphone/TitaniumKit/TitaniumKit/*.h iphone/TitaniumKit/TitaniumKit/Sources/**/*.{m,h}" |
| 83 | + "objc": "iphone/Classes/*.{m,h} iphone/Classes/Layout/*.{m,h} iphone/TitaniumKit/TitaniumKit/*.h iphone/TitaniumKit/TitaniumKit/Sources/**/*.{m,h}" |
81 | 84 | }
|
82 | 85 | },
|
83 | 86 | "dependencies": {
|
|
0 commit comments