Skip to content

Commit 6a310ee

Browse files
authored
add brace style (#16)
* add brace style * update release date
1 parent 73d8bdb commit 6a310ee

4 files changed

Lines changed: 31 additions & 13 deletions

File tree

Changes.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
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

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,27 @@ In your Haraka plugin:
1414
1. Add to NPM dependencies:
1515
`npm install --save-dev eslint eslint-plugin-haraka`
1616
2. 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+
2528
3. 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+
3035
4. Add to the "script" section of .travis.yml:
31-
`npm run lint`
36+
37+
`npm run lint`
3238
3339
## Usage
3440

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

0 commit comments

Comments
 (0)