File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # 1.0.9 - 2017-09-16
1+ ## 1.0.10 - 2019-07-09
2+
3+ * add brace-style rule
4+ * remove node 6 testing
5+
6+
7+ ## 1.0.9 - 2017-09-16
28
39* remove no-useless-escape rule
410
5- # 1.0.8 - 2017-09-13
11+
12+ ## 1.0.8 - 2017-09-13
613
714* import rules from haraka/Haraka
815
9- # 1.0.7 - 2017-06-16
16+
17+ ## 1.0.7 - 2017-06-16
1018
1119* Fixes the format of an eslint plugin. The "rules" section is for custom
1220 rules (i.e. the code for defining the rules), not for enforced rules.
1321
14- # 1.0.6 - 2017-06-15
22+
23+ ## 1.0.6 - 2017-06-15
1524
1625* eslint 4 enables no-useless-escape. Reduces error to warning until that rule
1726 is less brain damaged.
1827
19- # 1.0.5 - 2017-02-01
28+
29+ ## 1.0.5 - 2017-02-01
2030
2131* fixed missing comma at end of no-empty rule
2232* added "no-undef": 1 (warnings only)
2333
24- # 1.0.3 - 2017-01-27
34+
35+ ## 1.0.3 - 2017-01-27
2536
2637* Updated rules from Haraka main repo
2738* renamed .eslintrc to .eslintrc.json
Original file line number Diff line number Diff line change @@ -14,21 +14,27 @@ In your Haraka plugin:
14141 . Add to NPM dependencies:
1515 ` npm install --save-dev eslint eslint-plugin-haraka `
16162 . Install an eslint config file:
17- `tee .eslintrc.json <<EOLINT
17+
18+ ``` sh
19+ tee .eslintrc.json << EOLINT
1820{
1921 "plugins": [
2022 "haraka"
2123 ],
2224 "extends": ["eslint:recommended", "plugin:haraka/recommended"],
2325}
24- `
26+ ` ` `
27+
25283. Add within the " scripts" section of ` package.json` :
26- `
29+
30+ ` ` ` json
2731"lint": "./node_modules/.bin/eslint *.js test/**/*.js"
2832"lintfix": "./node_modules/.bin/eslint --fix *.js test/**/*.js"
29- `
33+ ` ` `
34+
30354. Add to the " script" section of .travis.yml:
31- ` npm run lint `
36+
37+ ` npm run lint`
3238
3339# # Usage
3440
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ const recommendedRules = {
2323 "no-constant-condition" : [ "error" , { "checkLoops" : false } ] ,
2424 "prefer-const" : [ "error" , { "ignoreReadBeforeAssign" : true } ] ,
2525 "no-var" : "error" ,
26- "object-shorthand" : [ "warn" , "always" ]
26+ "object-shorthand" : [ "warn" , "always" ] ,
27+ "brace-style" : [ "error" , "stroustrup" , { "allowSingleLine" : true } ]
2728} ;
2829
2930// This is really here so we know how this "rules" section is used in the future
Original file line number Diff line number Diff line change 11{
22 "name" : " eslint-plugin-haraka" ,
3- "version" : " 1.0.9 " ,
3+ "version" : " 1.0.10 " ,
44 "description" : " eslint rules for Haraka projects" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments