Skip to content

Commit

Permalink
support open-ended datetime intervals, fix camelcase violations (#180)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc <[email protected]>
Co-authored-by: Marc Huffnagle <[email protected]>
  • Loading branch information
Phil Varner and Marc committed Feb 28, 2022
1 parent ff2feff commit 71b63bc
Show file tree
Hide file tree
Showing 15 changed files with 159 additions and 108 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"mocha": true
},
"rules": {
"no-restricted-syntax": ["off", "BinaryExpression[operator='of']"],
"object-curly-newline": 0,
"semi": [
2,
"never"
],
"quote-props": 0,
"camelcase": 0,
"func-names": 0,
"no-param-reassign": "off",
"no-prototype-builtins": "off",
Expand Down
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug AVA test file",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
"runtimeArgs": [
"${file}"
],
"outputCapture": "std",
"skipFiles": [
"<node_internals>/**/*.js"
]
}
]
}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Fixed

- open-ended datetime intervals using either empty string or '..' now work

### Changed

- Upgrade to Node 14
Expand Down
4 changes: 2 additions & 2 deletions fixtures/collections.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const common = require('./common')

module.exports = () => ({
module.exports = {
mappings: {
dynamic_templates: common.dynamic_templates,
properties: {
Expand All @@ -11,4 +11,4 @@ module.exports = () => ({
'item_assets': { type: 'object', enabled: false }
}
}
})
}
1 change: 1 addition & 0 deletions fixtures/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const properties = {
}
}

// eslint-disable-next-line camelcase
const dynamic_templates = [
// Common https://github.com/radiantearth/stac-spec/blob/master/item-spec/common-metadata.md
{
Expand Down
4 changes: 2 additions & 2 deletions fixtures/items.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const common = require('./common')

module.exports = () => ({
module.exports = {
mappings: {
dynamic_templates: common.dynamic_templates,
properties: {
Expand All @@ -10,4 +10,4 @@ module.exports = () => ({
links: { type: 'object', enabled: false }
}
}
})
}
Loading

0 comments on commit 71b63bc

Please sign in to comment.