File tree Expand file tree Collapse file tree 9 files changed +64
-5
lines changed
Expand file tree Collapse file tree 9 files changed +64
-5
lines changed Original file line number Diff line number Diff line change 2525 steps :
2626 - init
2727 - run : npm test
28- - run : npm run lint
28+ # - run: npm run lint
2929
3030 release :
3131 executor :
Original file line number Diff line number Diff line change @@ -37,5 +37,8 @@ yarn-error.log*
3737package-lock.json
3838yarn.lock
3939
40+ # tarball generated by npm pack
41+ * .tgz
42+
4043# Other tools
4144.eslintcache
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Or you can extend `plugin:editorconfig/all` instead of adding rules.
5151
5252## Conflicting ESLint rules
5353
54- Following rules may conflicts ` editorconfig ` rule.
54+ Following rules may conflict ` editorconfig/* ` rule.
5555It is recommended to disable them.
5656
5757- eol-last
Original file line number Diff line number Diff line change 22
33module . exports = {
44 rules : {
5- editorconfig : require ( "./lib/rules/editorconfig" ) ,
5+ charset : require ( "./lib/rules/charset" ) ,
6+ "eol-last" : require ( "./lib/rules/eol-last" ) ,
7+ indent : require ( "./lib/rules/indent" ) ,
8+ "linebreak-style" : require ( "./lib/rules/linebreak-style" ) ,
9+ "no-trailing-spaces" : require ( "./lib/rules/no-trailing-spaces" ) ,
610 } ,
711 configs : {
812 noconflict : {
Original file line number Diff line number Diff line change 11{
22 "name" : " eslint-plugin-editorconfig" ,
3- "version" : " 3.0.0 " ,
3+ "version" : " 3.0.1 " ,
44 "description" : " An ESLint plugin to enforce EditorConfig rules" ,
55 "main" : " main.js" ,
66 "scripts" : {
7- "test" : " mocha --reporter dot tests/**/*" ,
7+ "test" : " ./tests/package/test.sh && mocha --reporter dot tests/**/*.js " ,
88 "lint" : " eslint ." ,
99 "release" : " npm publish . --access public"
1010 },
Original file line number Diff line number Diff line change 1+ "use strict" ;
2+
3+ module . exports = {
4+ root : true ,
5+
6+ env : {
7+ es6 : true ,
8+ node : true ,
9+ } ,
10+ plugins : [ "editorconfig" ] ,
11+ rules : {
12+ "editorconfig/charset" : "error" ,
13+ "editorconfig/eol-last" : "error" ,
14+ "editorconfig/indent" : "error" ,
15+ "editorconfig/linebreak-style" : "error" ,
16+ "editorconfig/no-trailing-spaces" : "error" ,
17+ } ,
18+ } ;
Original file line number Diff line number Diff line change 1+ "use strict" ;
2+
3+ const foo = 0 ;
4+
5+ console . log ( foo ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " @phanect/test-package" ,
3+ "version" : " 1.0.0" ,
4+ "description" : " a test package" ,
5+ "author" : " Jumpei Ogawa <phanective@gmail.com>" ,
6+ "license" : " UNLICENSED" ,
7+ "private" : true ,
8+ "main" : " main.js" ,
9+ "scripts" : {
10+ "lint" : " eslint ." ,
11+ "test" : " npm run lint"
12+ },
13+ "dependencies" : {
14+ "eslint-plugin-editorconfig" : " file:../../eslint-plugin-editorconfig-3.0.0.tgz"
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -eu
4+
5+ DIRNAME=" $( dirname " ${BASH_SOURCE[0]} " ) "
6+
7+ cd " ${DIRNAME} /../../"
8+ PACKAGE=" $( npm pack .) "
9+
10+ cd " ${DIRNAME} "
11+ npm install " ../../${PACKAGE} "
12+
13+ npm run lint
You can’t perform that action at this time.
0 commit comments