Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
feat: Update packages, fix lint errors, rename signature
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

* rename exported "set" to "setup"
* rename "queryStringifyFn" to "stringifyQueryParams"

```js
// old
import { stringify } from "qs"
import { set } from "@asd14/fetch-browser"

set({
  queryStringifyFn: source => qs.stringify(source),
})

// new
import { stringify } from "qs"
import { setup } from "@asd14/fetch-browser"

setup({
  stringifyQueryParams: source => qs.stringify(source),
})
```
  • Loading branch information
andreidmt committed Feb 24, 2021
1 parent ff88510 commit a1ea4c5
Show file tree
Hide file tree
Showing 10 changed files with 33,145 additions and 4,476 deletions.
23 changes: 10 additions & 13 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
{
"presets": [
// Use the latest JavaScript without needing to micromanage which syntax
// transforms (and optionally, browser polyfills) are needed by your
// target environment.
//
// Uses .browserslistrc to determine what plugins to use.
//
// https://babeljs.io/docs/en/babel-preset-env
"@babel/preset-env",
["@babel/preset-env", {
"useBuiltIns": "entry",
"corejs": 3,
}]
],

"plugins": [
// Enables the re-use of Babel's injected helper code to save on codesize
"@babel/plugin-transform-runtime",
],
// Babel uses very small helpers for common functions such as _extend. By
// default this will be added to every file that requires it. This
// duplication is sometimes unnecessary, especially when your application
// is spread out over multiple files.
["@babel/plugin-transform-runtime", { corejs: 3 }]
]
}


20 changes: 5 additions & 15 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"parser": "babel-eslint",

"root": true,

"extends": [
"@asd14/eslint-config/targets/html",
],
Expand All @@ -13,26 +11,18 @@
test: true
},

// app specific rules
"rules": {
// disable until upstream issues fixed
"jsdoc/check-line-alignment": "off",

"unicorn/filename-case": "off",
"new-cap": "off"
},

"settings": {
// Recommended if you use eslint_d
"import/cache": {
"lifetime": 5,
},

// Can add a path segment here that will act like a source root, for
// in-project aliasing (i.e. `import MyStore from 'stores/my-store'`)
"import/resolver": {
"node": {
"extensions": [".js"],

// Can add a path segment here that will act like a source root, for
// in-project aliasing (i.e. `import MyStore from 'stores/my-store'`)
"moduleDirectory": ["node_modules", "src"]
}
}
}
}
Loading

0 comments on commit a1ea4c5

Please sign in to comment.