Update documentation for lint and format scripts
This commit is contained in:
1 parent
3be27cc632
commit
841495d453
2 files changed
+7
-2
No files matched your search
@@ -39,14 +39,19 @@ List of available project commands. `yarn run <command-name>`
|
||||
|
||||
| Command | Description |
|
||||
| ------- | ----------- |
|
||||
| build:development | Builds the UI in development mode. |
|
||||
| build | Builds the UI for production. |
|
||||
| build:development | Builds the UI in development mode. |
|
||||
| build:desktop:debianOnMacOS | Builds debian based linux artifacts on MacOS. |
|
||||
| lint | Runs all lint commands. |
|
||||
| lint:fix | Runs all automatic linting fixes. |
|
||||
| lint:hbs | Lints `hbs` template files. |
|
||||
| lint:hbs:fix | Runs the automatic linting fix for `hbs` template files. |
|
||||
| lint:js | Lints `js` files. |
|
||||
| lint:js:fix | Runs the automatic linting fix for `js` files. |
|
||||
| lint:sass | Lints `scss` files. |
|
||||
| lint:electron | Runs a linter tool to identify misconfigurations and security anti-patterns in Electron. |
|
||||
| format | Runs all auto-formatters. |
|
||||
| format:hbs | Auto-formats `hbs` files using Prettier. |
|
||||
| format:js | Auto-formats `js` files using Prettier. |
|
||||
| format:sass | Auto-formats `scss` files using Prettier. |
|
||||
| start | Runs the dummy app local server. |
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
"lint:hbs": "ember-template-lint .",
|
||||
"lint:hbs:fix": "ember-template-lint . --fix",
|
||||
"lint:js": "eslint .",
|
||||
"lint:js:fix": "eslint . --fix",
|
||||
"lint:sass": "stylelint '**/*.scss'",
|
||||
"lint:electron": "electronegativity -r -i ./electron-app",
|
||||
"format": "npm-run-all format:*",
|
||||
"format:hbs": "prettier --write 'app/**/*.hbs'",
|
||||
"format:js": "prettier --write '{app,config,stories,tests,electron-app/src}/**/*.js' *.js",
|
||||
"format:sass": "prettier --write app/**/*.scss",
|
||||
"lint:js:fix": "eslint . --fix",
|
||||
"start": "ember serve",
|
||||
"prestart:desktop": "cd electron-app && yarn premake",
|
||||
"start:desktop": "ember electron",
|
||||
|
||||
Reference in new issue
Block a user