Implement lint
This commit is contained in:
@@ -52,6 +52,13 @@ COMPOSER=composer.dev.json composer update
|
||||
|
||||
This makes Composer link `vendor/franzz/objects` to `../objects` and autoload that namespace directly from the local source path. Production continues to use `composer.json`, which installs `franzz/objects` from its Git repository. Commit and publish `objects` changes before updating/deploying a Livetrail version that relies on them.
|
||||
|
||||
## Before Committing
|
||||
|
||||
Run manually before pushing:
|
||||
|
||||
* `composer lint` - checks PHP style (php-cs-fixer, dry-run); `composer lint-fix` applies it. Requires the dev dependencies (`COMPOSER=composer.dev.json composer update`, see Local Development above).
|
||||
* `npm run lint` - checks JS/Vue style (ESLint) on demand. It also already runs automatically as part of `npm run dev` (reports issues but never blocks the watcher) and `npm run prod` (aborts the build if any lint error is found).
|
||||
|
||||
## To Do List
|
||||
|
||||
* Add mail frequency slider
|
||||
|
||||
Reference in New Issue
Block a user