forked from cloudflare/node-cloudflare
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace XO with eslint and prettier
Remove the XO tool with eslint and prettier, along with updating the linter rules.
- Loading branch information
1 parent
04440cb
commit 6b8177a
Showing
18 changed files
with
1,698 additions
and
2,340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
extends: | ||
- es/2015/server | ||
- plugin:prettier/recommended | ||
- plugin:eslint-comments/recommended | ||
- plugin:node/recommended | ||
- plugin:security/recommended | ||
- plugin:promise/recommended | ||
plugins: | ||
- eslint-comments | ||
- node | ||
- security | ||
- promise | ||
- notice | ||
rules: | ||
prefer-reflect: off | ||
no-underscore-dangle: | ||
- error | ||
- allowAfterThis: true | ||
prefer-rest-params: off | ||
node/exports-style: | ||
- error | ||
- module.exports | ||
notice/notice: | ||
- error | ||
- template: "/*\n * Copyright (C) 2014-present Cloudflare, Inc.\n\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file for details.\n */" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
printWidth: 80 | ||
tabWidth: 2 | ||
useTabs: false | ||
semi: true | ||
singleQuote: true | ||
trailingComma: es5 | ||
bracketSpacing: false | ||
parser: babylon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
/* | ||
* Copyright (C) 2014-present Cloudflare, Inc. | ||
* This software may be modified and distributed under the terms | ||
* of the MIT license. See the LICENSE file for details. | ||
*/ | ||
|
||
'use strict'; | ||
var prototypal = require('es-class'); | ||
var assign = require('object-assign'); | ||
var got = require('got'); | ||
|
||
const prototypal = require('es-class'); | ||
const assign = require('object-assign'); | ||
const got = require('got'); | ||
|
||
module.exports = prototypal({ | ||
got: function (uri, options) { | ||
got(uri, options) { | ||
options = assign({}, options); | ||
|
||
return got(uri, options); | ||
} | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.