Skip to content

Commit c3c8b55

Browse files
Adding file standard validation in repository
1 parent 34e3f00 commit c3c8b55

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

‎.editorconfig‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
root = true
22

3-
[*.js]
4-
indent_style=tab
5-
trim_trailing_whitespace=true
3+
[*]
4+
indent_style = tab
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
max_line_length = 212
11+
12+
[lib/dependencies/AMDDefineDependency.js]
13+
max_line_length = 483
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

‎package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"coveralls": "^2.11.2",
3535
"css-loader": "~0.23.1",
3636
"diff": "^2.0.2",
37+
"eclint": "^1.1.5",
3738
"es6-promise-polyfill": "^1.1.1",
3839
"eslint": "^1.1.0",
3940
"express": "~4.13.1",
@@ -81,7 +82,8 @@
8182
"web_modules/"
8283
],
8384
"scripts": {
84-
"pretest": "npm run lint && npm run beautify-lint",
85+
"lint-file-standard": "eclint check lib/**/*.js hot/*.js bin/*.js benchmark/*.js test/*.js",
86+
"pretest": "npm run lint && npm run beautify-lint && npm run lint-file-standard",
8587
"test": "mocha --harmony --full-trace --check-leaks",
8688
"travis": "npm run cover -- --report lcovonly",
8789
"appveyor": "mocha --harmony --full-trace",

0 commit comments

Comments
 (0)