mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-04 10:23:04 -05:00
Similar to how PEP8 enforces Python style, there are tools for front end code: - jshint[1] for Javascript - sass-lint[2] for SASS This commit adds the Gulp plugins for both, and sets up some sensible rules (which can be iterated on). It also adds a command to `./scripts/run_tests.sh`, so that any errors in the front end code will fail the build before it has a chance to be deployed. 1. http://jshint.com/ 2. https://www.npmjs.com/package/sass-lint
30 lines
471 B
YAML
30 lines
471 B
YAML
options:
|
|
merge-default-rules: true
|
|
|
|
rules:
|
|
extends-before-mixins: 2
|
|
extends-before-declarations: 2
|
|
placeholder-in-extend: 2
|
|
mixins-before-declarations:
|
|
- 2
|
|
-
|
|
exclude:
|
|
- media
|
|
no-warn: 1
|
|
no-debug: 1
|
|
no-ids: 1
|
|
no-important: 2
|
|
hex-notation:
|
|
- 2
|
|
-
|
|
style: uppercase
|
|
indentation:
|
|
- 2
|
|
-
|
|
size: 2
|
|
leading-zero: 0
|
|
nesting-depth: 0
|
|
property-sort-order: 0
|
|
shorthand-values: 0
|
|
variable-for-property: 0
|