Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Require Node.js 10 and upgrade XO
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 17, 2020
1 parent ea77871 commit 17cdd8f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ language: node_js
node_js:
- '12'
- '10'
- '8'
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
"description": "Validate files with XO",
"license": "MIT",
"repository": "xojs/gulp-xo",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "[email protected]",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=8"
"node": ">=10"
},
"scripts": {
"test": "ava"
Expand Down Expand Up @@ -47,11 +48,11 @@
"simple"
],
"dependencies": {
"eslint-formatter-pretty": "^2.0.0",
"eslint-formatter-pretty": "^3.0.1",
"gulp-eslint": "^6.0.0",
"plugin-error": "^1.0.1",
"through2": "^3.0.0",
"xo": "^0.25.3"
"xo": "^0.26.1"
},
"devDependencies": {
"ava": "^2.4.0",
Expand Down
12 changes: 2 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@

*Issues regarding rules should be reported on the ESLint [issue tracker](https://github.com/eslint/eslint/issues) as it's the actual linter.*


## Install

```
$ npm install --save-dev gulp-xo
```


## Usage

```js
Expand All @@ -28,7 +26,6 @@ exports.default = () => (
);
```


## API

### xo(options?)
Expand All @@ -37,11 +34,7 @@ exports.default = () => (

Type: `object`

Any additional options to the below are passed directly to XO.

Note that you should normally set your XO options in the `package.json` file. Only pass them through `gulp-xo` if you want to use options different from those of your current project. You might want to do this if your gulp task lints or builds files that are or will be part of a separate project.

See https://github.com/xojs/xo/blob/master/readme.md#config
Any additional options to the below are [passed directly to XO](https://github.com/xojs/xo/blob/master/readme.md#config). However, you should prefer setting your XO config in `package.json` so editors and other tools can also read it. Only pass them here if you want to use options different from those of your current project. You might want to do this if your Gulp task lints or builds files that are/will be part of a separate project.

##### fix

Expand All @@ -53,7 +46,7 @@ When fixes are applied, a "fixed" property is set to `true` on the fixed file's

##### quiet

Type: `boolean`<br>
Type: `boolean`\
Default: `false`

Report errors only.
Expand All @@ -70,7 +63,6 @@ Report errors only.

### [xo.results(action)](https://github.com/adametry/gulp-eslint/#eslintresultsaction)


## Related

- [gulp-eslint](https://github.com/adametry/gulp-eslint) - Gulp plugin for ESLint
Expand Down

0 comments on commit 17cdd8f

Please sign in to comment.