Skip to content

Commit

Permalink
[Tests] add editorconfig-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jun 16, 2017
1 parent 739e547 commit 8cc40c7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .editorconfig
@@ -0,0 +1,23 @@
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 = 120

[CHANGELOG.md]
indent_style = space
indent_size = 2

[*.md]
max_line_length = off

[*.json]
max_line_length = off

[Makefile]
max_line_length = off
4 changes: 3 additions & 1 deletion bin/safe-publish-latest
Expand Up @@ -3,7 +3,9 @@
'use strict';

var options = require('yargs')
.boolean('force-in-publish').default('force-in-publish', false).describe('force-in-publish', 'force "in publish" check to pass')
.boolean('force-in-publish')
.default('force-in-publish', false)
.describe('force-in-publish', 'force "in publish" check to pass')
.help().alias('help', 'h')
.version(require('../package.json').version).alias('version', 'v')
.strict()
Expand Down
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -19,6 +19,7 @@
"test": "npm run --silent tests-only",
"posttest": "npm run --silent security",
"tests-only": "tape 'test/*'",
"prelint": "editorconfig-tools check * bin/* test/*",
"lint": "npm run --silent eslint",
"eslint": "eslint *.js test/*.js",
"security": "nsp check"
Expand Down Expand Up @@ -46,6 +47,7 @@
},
"devDependencies": {
"@ljharb/eslint-config": "^11.0.0",
"editorconfig-tools": "^0.1.1",
"eslint": "^3.19.0",
"mock-env": "^0.2.0",
"nsp": "^2.6.3",
Expand Down

0 comments on commit 8cc40c7

Please sign in to comment.