Skip to content
This repository was archived by the owner on Oct 22, 2023. It is now read-only.

Commit 68a5f5f

Browse files
committed
Merge branch release/1.0.0
2 parents f3a05ab + 73beea6 commit 68a5f5f

File tree

6 files changed

+91
-6
lines changed

6 files changed

+91
-6
lines changed

.eslintrc.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extends: "./index.js"
2+
3+
plugins:
4+
- import
5+
6+
env:
7+
node: true
8+
es6: true
9+
10+
parserOptions:
11+
sourceType: script

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: node_js
2+
node_js:
3+
- '6'
4+
- '7'
5+
- '8'
6+
git:
7+
depth: 3
8+
script:
9+
- npm run lint
10+
deploy:
11+
provider: npm
12+
13+
api_key:
14+
secure: MhtlU5e/bZkDYU8Zb+AJToMw6pc/xFm4BR+HNZxWafPof8QRh+hyq9lKipi1GNr1M2yMrErzBtsAjdMU3g9FllAKrqb3TDTozZ6eRrorhVdufw53zpZ4ORUkIOwlNyXSiOEyoR3RmsHXYstRIwHQgwNJaK1/pPfpqoq+bUt4M3F9i2qffGi3IOXDIrh7mEayo7daFmgxvQpXVIfmUfwth8CKBHPHkZg2p7ZFlx4RRIOZwIrHFv3y5ilY1hrEtkT8AZiI3Ao1J2mAZy8d6DSJdhM34BBGOx+ejkUgrGOftwMfAAQpWTsGUvPbHcAqtWOEodQV9uJr7YTsbvzvuSQ2XK3rFcXEgk7Q7lqE5zVFPwTz0FOZLyopCbCXkR8nKGEBZiDuwjrCAEXQKRHrI1O7BjHM6VGVF3T0wmkkEVYUJ+CrLzJ0L1J0NBmdh2FDwftICeY6QcA59EmMiDFZ6rdrD4TAHeCieVmowKu/JzLj/2o8DEgwR61UIXA9+c6/5v8+kUegp9CVym7k1gn3rcLKsFs25+tTPterpW0fXRVDiPCvHJqD5znq3IptbijgnsDIez/Mjt4atqX8gx9/mV7FTwP9Xn4zh1ONEVsdQ9dOx8cW1i5/KY0vCqcZ9ULuv6uwpAAqa8zeMmnqvQzOFc5fPPNzJVi67o7suNW07tH2t0I=
15+
on:
16+
tags: true

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Release Notes Coding Style
2+
3+
Extends [Airbnb JavaScript Style Guide][airbnb-js-styleguide] for use on [release-notes][release-notes] node projects.
4+
5+
## Installation
6+
7+
`$ npm i --save-dev @release-notes/eslint-config eslint eslint-plugin-import`
8+
9+
And add an `.eslintrc.yml` file:
10+
11+
```yml
12+
extends: '@release-notes'
13+
14+
plugins:
15+
- import
16+
17+
env:
18+
es6: true
19+
node: true
20+
21+
parserOptions:
22+
sourceType: script
23+
```
24+
25+
## Usage
26+
27+
Run `npm run lint` in order to test the codebase for coding standard violations.
28+
29+
---
30+
31+
### LICENSE
32+
33+
The files in this archive are released under MIT license.
34+
You can find a copy of this license in [LICENSE](LICENSE).
35+
36+
37+
[airbnb-js-styleguide]: https://github.com/airbnb/javascript
38+
[release-notes]: https://github.com/release-notes/release-notes

index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
module.exports = {
24
extends: 'airbnb-base',
35
rules: {
@@ -14,6 +16,15 @@ module.exports = {
1416
ignoreTemplateLiterals: false,
1517
},
1618
],
17-
'no-void': 'off'
19+
'no-void': 'off',
20+
'comma-dangle': [
21+
'error', {
22+
arrays: 'always-multiline',
23+
objects: 'always-multiline',
24+
imports: 'always-multiline',
25+
exports: 'always-multiline',
26+
functions: 'never',
27+
},
28+
],
1829
},
1930
};

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@release-notes/eslint-config",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "ESLint configuration to check Coding Standards on Release Notes node.js projects.",
55
"main": "index.js",
66
"scripts": {
@@ -26,10 +26,10 @@
2626
},
2727
"homepage": "https://github.com/release-notes",
2828
"dependencies": {
29-
"eslint-config-airbnb-base": "^11.2.0"
29+
"eslint-config-airbnb-base": "^11.3.2"
3030
},
3131
"devDependencies": {
32-
"eslint": "^3.19.0",
33-
"eslint-plugin-import": "^2.6.1"
32+
"eslint": "^4.5.0",
33+
"eslint-plugin-import": "^2.7.0"
3434
}
3535
}

release-notes.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
title: Release Notes of Release Notes ESlint config
22

33
releases:
4+
- version: 1.0.0
5+
date: 2017-08-23
6+
title: Eslint 4
7+
description: Update dependencies for eslint 4 compatibilitity
8+
added:
9+
- Introduce ci/cd pipeline, setup travic ci.
10+
improved:
11+
- Definition of comma dangle rules. Function params must not use trailing commas, anymore.
12+
- Upgraded to lates dependencies ([email protected], [email protected]).
413
- version: 0.1.0
5-
date: 2017-07-08T20:51:00Z
14+
date: 2017-07-08
615
title: First Release
716
description: Base coding styles, on top of airbnb base config
817
added:

0 commit comments

Comments
 (0)