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>
58 lines
1.4 KiB
Markdown
58 lines
1.4 KiB
Markdown
[](https://www.npmjs.com/package/@eslint/js)
|
|
|
|
# ESLint JavaScript Plugin
|
|
|
|
[Website](https://eslint.org) | [Configure ESLint](https://eslint.org/docs/latest/use/configure) | [Rules](https://eslint.org/docs/rules/) | [Contributing](https://eslint.org/docs/latest/contribute) | [Twitter](https://twitter.com/geteslint) | [Chatroom](https://eslint.org/chat)
|
|
|
|
The beginnings of separating out JavaScript-specific functionality from ESLint.
|
|
|
|
Right now, this plugin contains two configurations:
|
|
|
|
* `recommended` - enables the rules recommended by the ESLint team (the replacement for `"eslint:recommended"`)
|
|
* `all` - enables all ESLint rules (the replacement for `"eslint:all"`)
|
|
|
|
## Installation
|
|
|
|
```shell
|
|
npm install @eslint/js -D
|
|
```
|
|
|
|
## Usage
|
|
|
|
Use in your `eslint.config.js` file anytime you want to extend one of the configs:
|
|
|
|
```js
|
|
import js from "@eslint/js";
|
|
|
|
export default [
|
|
|
|
// apply recommended rules to JS files
|
|
{
|
|
files: ["**/*.js"],
|
|
rules: js.configs.recommended.rules
|
|
},
|
|
|
|
// apply recommended rules to JS files with an override
|
|
{
|
|
files: ["**/*.js"],
|
|
rules: {
|
|
...js.configs.recommended.rules,
|
|
"no-unused-vars": "warn"
|
|
}
|
|
},
|
|
|
|
// apply all rules to JS files
|
|
{
|
|
files: ["**/*.js"],
|
|
rules: {
|
|
...js.configs.all.rules,
|
|
"no-unused-vars": "warn"
|
|
}
|
|
}
|
|
]
|
|
```
|
|
|
|
## License
|
|
|
|
MIT
|