Adding file standard validation in repository

This commit is contained in:
Will Mendes 2016-08-07 22:56:43 +10:00
parent 34e3f00a16
commit c3c8b55dfa
2 changed files with 17 additions and 4 deletions

View File

@ -1,5 +1,16 @@
root = true root = true
[*.js] [*]
indent_style=tab indent_style = tab
trim_trailing_whitespace=true indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 212
[lib/dependencies/AMDDefineDependency.js]
max_line_length = 483
[*.md]
trim_trailing_whitespace = false

View File

@ -34,6 +34,7 @@
"coveralls": "^2.11.2", "coveralls": "^2.11.2",
"css-loader": "~0.23.1", "css-loader": "~0.23.1",
"diff": "^2.0.2", "diff": "^2.0.2",
"eclint": "^1.1.5",
"es6-promise-polyfill": "^1.1.1", "es6-promise-polyfill": "^1.1.1",
"eslint": "^1.1.0", "eslint": "^1.1.0",
"express": "~4.13.1", "express": "~4.13.1",
@ -81,7 +82,8 @@
"web_modules/" "web_modules/"
], ],
"scripts": { "scripts": {
"pretest": "npm run lint && npm run beautify-lint", "lint-file-standard": "eclint check lib/**/*.js hot/*.js bin/*.js benchmark/*.js test/*.js",
"pretest": "npm run lint && npm run beautify-lint && npm run lint-file-standard",
"test": "mocha --harmony --full-trace --check-leaks", "test": "mocha --harmony --full-trace --check-leaks",
"travis": "npm run cover -- --report lcovonly", "travis": "npm run cover -- --report lcovonly",
"appveyor": "mocha --harmony --full-trace", "appveyor": "mocha --harmony --full-trace",