Skip to content

Commit

Permalink
[meta] better eclint command
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 11, 2022
1 parent 28c2e7a commit 16f7f53
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
43 changes: 43 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 160
quote_type = single

[test/*]
max_line_length = off

[LICENSE.md]
indent_size = off

[*.md]
max_line_length = off

[*.json]
max_line_length = off

[Makefile]
max_line_length = off

[CHANGELOG.md]
indent_style = space
indent_size = 2

[LICENSE]
indent_size = 2
max_line_length = off

[coverage/**/*]
indent_size = off
indent_style = off
indent = off
max_line_length = off

[.nycrc]
indent_style = tab
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
"test:shimmed:es6-shim": "node --es-staging test/shimmed-es6.js",
"coverage": "covert test/*.js",
"prelint": "es-shim-api --bound",
"lint": "eslint .",
"postlint": "npm run eccheck",
"eccheck": "eclint check *.js **/*.js > /dev/null",
"lint": "eslint --ext=js,mjs .",
"postlint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
Expand Down

0 comments on commit 16f7f53

Please sign in to comment.