Skip to content

Commit f62921c

Browse files
committed
run update, verb
1 parent e96b5b3 commit f62921c

File tree

9 files changed

+209
-122
lines changed

9 files changed

+209
-122
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ insert_final_newline = true
1313
trim_trailing_whitespace = false
1414
insert_final_newline = false
1515

16-
[{,test/}{actual,fixtures}/**]
16+
[**/{actual,fixtures,expected}/**]
1717
trim_trailing_whitespace = false
1818
insert_final_newline = false
1919

20-
[templates/**]
20+
[**/templates/**]
2121
trim_trailing_whitespace = false
2222
insert_final_newline = false

.eslintrc.json

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"ecmaFeatures": {
3+
"modules": true,
4+
"experimentalObjectRestSpread": true
5+
},
6+
7+
"env": {
8+
"browser": false,
9+
"es6": true,
10+
"node": true,
11+
"mocha": true
12+
},
13+
14+
"globals": {
15+
"document": false,
16+
"navigator": false,
17+
"window": false
18+
},
19+
20+
"rules": {
21+
"accessor-pairs": 2,
22+
"arrow-spacing": [2, { "before": true, "after": true }],
23+
"block-spacing": [2, "always"],
24+
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
25+
"comma-dangle": [2, "never"],
26+
"comma-spacing": [2, { "before": false, "after": true }],
27+
"comma-style": [2, "last"],
28+
"constructor-super": 2,
29+
"curly": [2, "multi-line"],
30+
"dot-location": [2, "property"],
31+
"eol-last": 2,
32+
"eqeqeq": [2, "allow-null"],
33+
"generator-star-spacing": [2, { "before": true, "after": true }],
34+
"handle-callback-err": [2, "^(err|error)$" ],
35+
"indent": [2, 2, { "SwitchCase": 1 }],
36+
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
37+
"keyword-spacing": [2, { "before": true, "after": true }],
38+
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
39+
"new-parens": 2,
40+
"no-array-constructor": 2,
41+
"no-caller": 2,
42+
"no-class-assign": 2,
43+
"no-cond-assign": 2,
44+
"no-const-assign": 2,
45+
"no-control-regex": 2,
46+
"no-debugger": 2,
47+
"no-delete-var": 2,
48+
"no-dupe-args": 2,
49+
"no-dupe-class-members": 2,
50+
"no-dupe-keys": 2,
51+
"no-duplicate-case": 2,
52+
"no-empty-character-class": 2,
53+
"no-eval": 2,
54+
"no-ex-assign": 2,
55+
"no-extend-native": 2,
56+
"no-extra-bind": 2,
57+
"no-extra-boolean-cast": 2,
58+
"no-extra-parens": [2, "functions"],
59+
"no-fallthrough": 2,
60+
"no-floating-decimal": 2,
61+
"no-func-assign": 2,
62+
"no-implied-eval": 2,
63+
"no-inner-declarations": [2, "functions"],
64+
"no-invalid-regexp": 2,
65+
"no-irregular-whitespace": 2,
66+
"no-iterator": 2,
67+
"no-label-var": 2,
68+
"no-labels": 2,
69+
"no-lone-blocks": 2,
70+
"no-mixed-spaces-and-tabs": 2,
71+
"no-multi-spaces": 2,
72+
"no-multi-str": 2,
73+
"no-multiple-empty-lines": [2, { "max": 1 }],
74+
"no-native-reassign": 0,
75+
"no-negated-in-lhs": 2,
76+
"no-new": 2,
77+
"no-new-func": 2,
78+
"no-new-object": 2,
79+
"no-new-require": 2,
80+
"no-new-wrappers": 2,
81+
"no-obj-calls": 2,
82+
"no-octal": 2,
83+
"no-octal-escape": 2,
84+
"no-proto": 0,
85+
"no-redeclare": 2,
86+
"no-regex-spaces": 2,
87+
"no-return-assign": 2,
88+
"no-self-compare": 2,
89+
"no-sequences": 2,
90+
"no-shadow-restricted-names": 2,
91+
"no-spaced-func": 2,
92+
"no-sparse-arrays": 2,
93+
"no-this-before-super": 2,
94+
"no-throw-literal": 2,
95+
"no-trailing-spaces": 0,
96+
"no-undef": 2,
97+
"no-undef-init": 2,
98+
"no-unexpected-multiline": 2,
99+
"no-unneeded-ternary": [2, { "defaultAssignment": false }],
100+
"no-unreachable": 2,
101+
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
102+
"no-useless-call": 0,
103+
"no-with": 2,
104+
"one-var": [0, { "initialized": "never" }],
105+
"operator-linebreak": [0, "after", { "overrides": { "?": "before", ":": "before" } }],
106+
"padded-blocks": [0, "never"],
107+
"quotes": [2, "single", "avoid-escape"],
108+
"radix": 2,
109+
"semi": [2, "always"],
110+
"semi-spacing": [2, { "before": false, "after": true }],
111+
"space-before-blocks": [2, "always"],
112+
"space-before-function-paren": [2, "never"],
113+
"space-in-parens": [2, "never"],
114+
"space-infix-ops": 2,
115+
"space-unary-ops": [2, { "words": true, "nonwords": false }],
116+
"spaced-comment": [0, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }],
117+
"use-isnan": 2,
118+
"valid-typeof": 2,
119+
"wrap-iife": [2, "any"],
120+
"yoda": [2, "never"]
121+
}
122+
}

.jshintrc

Lines changed: 0 additions & 18 deletions
This file was deleted.

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "0.10"
5-
- "0.12"
6-
- "0.13"
7-
- "iojs"
4+
- '5'
5+
- '4'
6+
- '0.12'
7+
- '0.10'
88
matrix:
99
fast_finish: true
1010
allow_failures:
11-
- node_js: "0.13"
11+
- node_js: '0.10'
12+
- node_js: '0.12'

.verb.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
# {%= name %} {%= badge("fury") %}
2-
3-
> {%= description %}
4-
5-
## Install
6-
{%= include("install-npm", {save: true}) %}
7-
81
## Usage
92

103
Sort an array by the given object property:
@@ -23,10 +16,6 @@ arraySort([{foo: 'y'}, {foo: 'z'}, {foo: 'x'}], 'foo', {reverse: true});
2316
//=> [{foo: 'z'}, {foo: 'y'}, {foo: 'x'}]
2417
```
2518

26-
## Table of contents
27-
28-
<!-- toc -->
29-
3019
## Params
3120

3221
```js
@@ -139,26 +128,4 @@ console.log(result);
139128
// { foo: 'x', bar: 'y', baz: 'z' } ]
140129
```
141130

142-
## Related projects
143-
{%= related(verb.related.list, {remove: name}) %}
144-
145-
## Running tests
146-
{%= include("tests") %}
147-
148-
## Contributing
149-
{%= include("contributing") %}
150-
151-
## Author
152-
{%= include("author") %}
153-
154-
## License
155-
{%= copyright() %}
156-
{%= license() %}
157-
158-
***
159-
160-
{%= include("footer") %}
161-
162131
[mozilla]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
163-
164-
{%= reflinks(['verb']) %}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015, Jon Schlinkert.
3+
Copyright (c) 2015-2016, Jon Schlinkert.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# array-sort [![NPM version](https://badge.fury.io/js/array-sort.svg)](http://badge.fury.io/js/array-sort)
1+
# array-sort [![NPM version](https://img.shields.io/npm/v/array-sort.svg?style=flat)](https://www.npmjs.com/package/array-sort) [![NPM downloads](https://img.shields.io/npm/dm/array-sort.svg?style=flat)](https://npmjs.org/package/array-sort) [![Build Status](https://img.shields.io/travis/jonschlinkert/array-sort.svg?style=flat)](https://travis-ci.org/jonschlinkert/array-sort)
22

33
> Fast and powerful array sorting. Sort an array of objects by one or more properties. Any number of nested properties or custom comparison functions may be used.
44
55
## Install
66

7-
Install with [npm](https://www.npmjs.com/)
7+
Install with [npm](https://www.npmjs.com/):
88

99
```sh
10-
$ npm i array-sort --save
10+
$ npm install array-sort --save
1111
```
1212

1313
## Usage
@@ -28,22 +28,6 @@ arraySort([{foo: 'y'}, {foo: 'z'}, {foo: 'x'}], 'foo', {reverse: true});
2828
//=> [{foo: 'z'}, {foo: 'y'}, {foo: 'x'}]
2929
```
3030

31-
## Table of contents
32-
33-
<!-- toc -->
34-
35-
* [Params](#params)
36-
* [Examples](#examples)
37-
* [Related projects](#related-projects)
38-
* [Running tests](#running-tests)
39-
* [Contributing](#contributing)
40-
* [Author](#author)
41-
* [License](#license)
42-
43-
_(Table of contents generated by [verb](https://github.com/assemble/verb))_
44-
45-
<!-- tocstop -->
46-
4731
## Params
4832

4933
```js
@@ -157,36 +141,52 @@ console.log(result);
157141

158142
## Related projects
159143

160-
* [get-value](https://github.com/jonschlinkert/get-value): Use property paths (` a.b.c`) to get a nested value from an object.
161-
* [sort-asc](https://github.com/jonschlinkert/sort-asc): Sort array elements in ascending order.
162-
* [sort-desc](https://github.com/jonschlinkert/sort-desc): Sort array elements in descending order.
163-
* [set-value](https://github.com/jonschlinkert/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.
164-
* [sort-object](https://github.com/doowb/sort-object): Sort the keys in an object.
144+
You might also be interested in these projects:
165145

166-
## Running tests
146+
* [get-value](https://www.npmjs.com/package/get-value): Use property paths (`a.b.c`) to get a nested value from an object. | [homepage](https://github.com/jonschlinkert/get-value)
147+
* [set-value](https://www.npmjs.com/package/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/jonschlinkert/set-value)
148+
* [sort-asc](https://www.npmjs.com/package/sort-asc): Sort array elements in ascending order. | [homepage](https://github.com/jonschlinkert/sort-asc)
149+
* [sort-desc](https://www.npmjs.com/package/sort-desc): Sort array elements in descending order. | [homepage](https://github.com/jonschlinkert/sort-desc)
150+
* [sort-object](https://www.npmjs.com/package/sort-object): Sort the keys in an object. | [homepage](https://github.com/doowb/sort-object)
167151

168-
Install dev dependencies:
152+
## Contributing
153+
154+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/array-sort/issues/new).
155+
156+
## Building docs
157+
158+
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
169159

170160
```sh
171-
$ npm i -d && npm test
161+
$ npm install verb && npm run docs
172162
```
173163

174-
## Contributing
164+
Or, if [verb](https://github.com/verbose/verb) is installed globally:
165+
166+
```sh
167+
$ verb
168+
```
169+
170+
## Running tests
171+
172+
Install dev dependencies:
175173

176-
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/array-sort/issues/new)
174+
```sh
175+
$ npm install -d && npm test
176+
```
177177

178178
## Author
179179

180180
**Jon Schlinkert**
181181

182-
+ [github/jonschlinkert](https://github.com/jonschlinkert)
183-
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
182+
* [github/jonschlinkert](https://github.com/jonschlinkert)
183+
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
184184

185185
## License
186186

187-
Copyright © 2015 Jon Schlinkert
188-
Released under the MIT license.
187+
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
188+
Released under the [MIT license](https://github.com/jonschlinkert/array-sort/blob/master/LICENSE).
189189

190190
***
191191

192-
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 18, 2015._
192+
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 21, 2016._

package.json

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525
},
2626
"devDependencies": {
2727
"ansi-bold": "^0.1.1",
28-
"benchmarked": "^0.1.4",
29-
"glob": "^5.0.14",
28+
"benchmarked": "^0.1.5",
29+
"glob": "^7.0.3",
30+
"gulp-format-md": "^0.1.8",
3031
"lodash.sortbyorder": "^3.4.4",
31-
"mocha": "*",
32-
"should": "*"
32+
"mocha": "^2.4.5",
33+
"should": "^8.3.1"
3334
},
3435
"keywords": [
3536
"arr",
@@ -59,14 +60,28 @@
5960
"sorting"
6061
],
6162
"verb": {
63+
"reflinks": [
64+
"verb"
65+
],
6266
"related": {
6367
"list": [
64-
"sort-asc",
65-
"sort-desc",
6668
"get-value",
6769
"set-value",
70+
"sort-asc",
71+
"sort-desc",
6872
"sort-object"
6973
]
74+
},
75+
"toc": false,
76+
"layout": "default",
77+
"tasks": [
78+
"readme"
79+
],
80+
"plugins": [
81+
"gulp-format-md"
82+
],
83+
"lint": {
84+
"reflinks": true
7085
}
7186
}
7287
}

0 commit comments

Comments
 (0)