mirror of
https://github.com/holidayapi/holidayapi-node.git
synced 2025-06-21 04:26:33 +00:00
Added support for our latest endpoint, which calculates the workday a given number of business days into the future from the given date for the given country. Also: * perf: updated dependencies * ci: pinned eslint to 7.2.x due to airbnb incompatibility with 7.3.x. * ci: tweaked / improved eslint rules a bit. * refactor: updated types to use `;` and include weekday response. * docs: added example for new endpoint.
58 lines
1 KiB
JSON
58 lines
1 KiB
JSON
{
|
|
"env": {
|
|
"es6": true,
|
|
"jest/globals": true,
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"airbnb-base",
|
|
"plugin:import/typescript"
|
|
],
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint",
|
|
"jest"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
"vars": "all",
|
|
"args": "after-used",
|
|
"ignoreRestSiblings": false
|
|
}
|
|
],
|
|
"import/extensions": [
|
|
"error",
|
|
"ignorePackages",
|
|
{
|
|
"ts": "never"
|
|
}
|
|
],
|
|
"import/no-extraneous-dependencies": [
|
|
"error",
|
|
{
|
|
"devDependencies": [
|
|
"**/*.test.ts"
|
|
]
|
|
}
|
|
],
|
|
"import/prefer-default-export": "off",
|
|
"lines-between-class-members": [
|
|
"error",
|
|
"always",
|
|
{
|
|
"exceptAfterSingleLine": true
|
|
}
|
|
],
|
|
"no-unused-vars": "off"
|
|
}
|
|
}
|