Skip to content

Commit cb51e4e

Browse files
committed
chore(readify) lint
1 parent 939c535 commit cb51e4e

File tree

4 files changed

+47
-56
lines changed

4 files changed

+47
-56
lines changed

.eslintrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"parserOptions": {
2+
"parserOptions": {
33
"ecmaVersion": 2021
44
},
55
"rules": {
66
"node/no-unsupported-features/node-builtins": "off"
77
},
88
"extends": [
9-
"plugin:putout/recommended",
10-
"plugin:node/recommended"
9+
"plugin:node/recommended",
10+
"plugin:putout/recommended"
1111
],
1212
"plugins": [
1313
"putout",

.madrun.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const {run} = require('madrun');
44

55
module.exports = {
6-
'lint': () => 'putout lib test .madrun.js',
6+
'lint': () => 'putout .',
77
'fix:lint': () => run('lint', '--fix'),
88
'report': () => 'nyc report --reporter=text-lcov | coveralls',
99
'coverage': () => 'nyc npm test',

.travis.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
language: node_js
22
node_js:
3-
- 15
4-
- 14
5-
- 12
6-
3+
- 15
4+
- 14
75
script:
86
- npm run lint
97
- npm run coverage && npm run report
10-
118
notifications:
12-
email:
13-
on_success: never
14-
on_failure: change
15-
9+
email:
10+
on_success: never
11+
on_failure: change
1612
sudo: false
17-
13+
cache: false

README.md

Lines changed: 37 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Readify [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
22

3-
[NPMIMGURL]: https://img.shields.io/npm/v/readify.svg?style=flat
4-
[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/readify/master.svg?style=flat
5-
[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/readify.svg?style=flat
6-
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
7-
[NPMURL]: https://npmjs.org/package/readify "npm"
8-
[BuildStatusURL]: https://travis-ci.org/coderaiser/readify "Build Status"
9-
[DependencyStatusURL]: https://david-dm.org/coderaiser/readify "Dependency Status"
10-
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
3+
[NPMIMGURL]: https://img.shields.io/npm/v/readify.svg?style=flat
4+
[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/readify/master.svg?style=flat
5+
[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/readify.svg?style=flat
6+
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
7+
[NPMURL]: https://npmjs.org/package/readify "npm"
8+
[BuildStatusURL]: https://travis-ci.org/coderaiser/readify "Build Status"
9+
[DependencyStatusURL]: https://david-dm.org/coderaiser/readify "Dependency Status"
10+
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
1111

1212
Read directory content with file attributes: size, date, owner, mode and type.
1313

@@ -38,7 +38,7 @@ const tryToCatch = require('try-to-catch');
3838
const [error, data] = await tryToCatch(readify, '/');
3939
console.log(data);
4040
// output
41-
{
41+
({
4242
path: '/',
4343
files: [{
4444
name: 'readify.js',
@@ -47,46 +47,41 @@ console.log(data);
4747
owner: 'coderaiser',
4848
mode: 'rw- rw- r--',
4949
type: 'file',
50-
}]
51-
}
50+
}],
5251
});
5352

54-
readify('/', {type: 'raw'})
55-
.then(console.log);
56-
// output
57-
{
58-
path: '/',
59-
files: [{
60-
name: 'readify.js',
61-
size: 4735,
62-
date: 2016-11-21T13:37:55.275Z,
63-
owner: 1000,
64-
mode: 33204,
65-
type: 'file',
66-
}]
67-
}
53+
readify('/', {type: 'raw'}).then(console.log);
54+
// output
55+
({
56+
path: '/',
57+
files: [{
58+
name: 'readify.js',
59+
size: 4735,
60+
date: '2016-11-21T13:37:55.275Z',
61+
owner: 1000,
62+
mode: 33_204,
63+
type: 'file',
64+
}],
6865
});
6966

70-
readify('/', {type: 'raw', sort: 'size', order: 'desc'})
71-
.then(console.log);
72-
// output
73-
{
74-
path: '/',
75-
files: [{
76-
name: 'readify.js',
77-
size: 4735,
78-
date: 2016-11-21T13:37:55.275Z,
79-
owner: 1000,
80-
mode: 33204,
81-
type: 'file',
82-
}]
83-
}
67+
readify('/', {type: 'raw', sort: 'size', order: 'desc'}).then(console.log);
68+
// output
69+
({
70+
path: '/',
71+
files: [{
72+
name: 'readify.js',
73+
size: 4735,
74+
date: '2016-11-21T13:37:55.275Z',
75+
owner: 1000,
76+
mode: 33_204,
77+
type: 'file',
78+
}],
8479
});
8580
```
81+
8682
## License
8783

8884
MIT
8985

90-
[CoverageURL]: https://coveralls.io/github/coderaiser/readify?branch=master
91-
[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/readify/badge.svg?branch=master&service=github
92-
86+
[CoverageURL]: https://coveralls.io/github/coderaiser/readify?branch=master
87+
[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/readify/badge.svg?branch=master&service=github

0 commit comments

Comments
 (0)