Adjust European short trip heuristic from >3 days to >1 day to correctly detect when user has returned home from European trips. This fixes the April 29-30, 2023 case where the location incorrectly showed "Sankt Georg, Hamburg" instead of "Bristol" when the user was free (no events scheduled) after the foss-north trip ended on April 27. The previous logic required more than 3 days to pass before assuming return home from European countries, but for short European trips by rail/ferry, users typically return within 1-2 days. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
38 lines
1.6 KiB
Markdown
38 lines
1.6 KiB
Markdown
# @eslint-community/eslint-utils
|
|
|
|
[](https://www.npmjs.com/package/@eslint-community/eslint-utils)
|
|
[](http://www.npmtrends.com/@eslint-community/eslint-utils)
|
|
[](https://github.com/eslint-community/eslint-utils/actions)
|
|
[](https://codecov.io/gh/eslint-community/eslint-utils)
|
|
|
|
## 🏁 Goal
|
|
|
|
This package provides utility functions and classes for make ESLint custom rules.
|
|
|
|
For examples:
|
|
|
|
- [`getStaticValue`](https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue) evaluates static value on AST.
|
|
- [`ReferenceTracker`](https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class) checks the members of modules/globals as handling assignments and destructuring.
|
|
|
|
## 📖 Usage
|
|
|
|
See [documentation](https://eslint-community.github.io/eslint-utils).
|
|
|
|
## 📰 Changelog
|
|
|
|
See [releases](https://github.com/eslint-community/eslint-utils/releases).
|
|
|
|
## ❤️ Contributing
|
|
|
|
Welcome contributing!
|
|
|
|
Please use GitHub's Issues/PRs.
|
|
|
|
### Development Tools
|
|
|
|
- `npm test` runs tests and measures coverage.
|
|
- `npm run clean` removes the coverage result of `npm test` command.
|
|
- `npm run coverage` shows the coverage result of the last `npm test` command.
|
|
- `npm run lint` runs ESLint.
|
|
- `npm run watch` runs tests on each file change.
|