Adding package lock, and eslint

This commit is contained in:
Brenda Wallace
2018-01-03 11:26:08 +13:00
committed by Shiny
parent 0feed2d359
commit 8d3d8f3c91
4 changed files with 400 additions and 428 deletions

3
.eslintrc.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = {
"extends": "google"
};

View File

@@ -46,7 +46,9 @@ PreCommit:
required_executable: 'npm'
HamlLint:
enabled: true
command: ['bundle', 'exec', 'haml-lint', 'app/views']
include:
- 'app/views/**'
command: ['bundle', 'exec', 'haml-lint']
JsonSyntax:
enabled: true
BundleOutdated:
@@ -55,13 +57,13 @@ PreCommit:
BundleAudit:
enabled: true
on_warn: warn
JsHint:
EsLint:
enabled: true
exclude:
- 'app/assets/**'
- 'spec/javascripts/support/vendor/**'
- '**/bootstrap*'
command: ['npm', 'run', 'jshint']
command: ['./node_modules/.bin/eslint']
required_executable: 'npm'
ScssLint:
enabled: true

814
package-lock.json generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -7,7 +7,8 @@
"devDependencies": {
"coffeelint": "^2.0.7",
"csslint": "^1.0.5",
"eslint": "^3.17.1",
"eslint": "^4.14.0",
"eslint-config-google": "^0.9.1",
"jshint": "^2.9.4"
},
"repository": {