Skip to content

Commit 6b39408

Browse files
committed
[meta] better eccheck command
1 parent be7bf6a commit 6b39408

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.editorconfig

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
max_line_length = 150
11+
12+
[CHANGELOG.md]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.json]
17+
max_line_length = off
18+
19+
[Makefile]
20+
max_line_length = off
21+
22+
[CHANGELOG.md]
23+
max_line_length = off

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"test:harmony": "nyc node --harmony --es-staging test",
1818
"test:corejs": "nyc tape test-corejs.js",
1919
"posttest": "npx aud --production",
20+
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
2021
"lint": "eslint .",
21-
"eccheck": "eclint check *.js **/*.js > /dev/null",
2222
"version": "auto-changelog && git add CHANGELOG.md",
2323
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
2424
},

0 commit comments

Comments
 (0)