chore(): move lint-staged config to config file
this allows us more granular control over what happens on pre-commit.
Configures schema changes to trigger builds
ADD
.lintstagedrc.js
+module.exports = {
+ '*.js': ['eslint --fix', 'prettier --write'],
+ '*.ts*': ['prettier --write'],
+ 'appium-config-schema.js': () => [
+ 'npm run --workspace=./packages/schema build',
+ 'git add -A packages/schema/lib/appium-config.schema.json',
+ 'npm run --workspace=./packages/types build',
+ 'git add -A packages/types/lib/appium-config.ts',
+ ],
+};

MODIFY
package.json
package.json
"precommit-msg",
"precommit-lint"
],
- "lint-staged": {
- "*.js": [
- "eslint --fix",
- "prettier --write"
- ],
- "*.ts*": [
- "prettier --write"
- ]
- },
"prettier": {
"bracketSpacing": false,
"printWidth": 100,

chore(): move lint-staged config to config file

this allows us more granular control over what happens on pre-commit.

Configures schema changes to trigger builds