This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Vec2 { | |
| x: number | |
| y: number | |
| constructor(x: number, y: number) { | |
| this.x = x | |
| this.y = y | |
| } | |
| get xx() { return new Vec2(this.x, this.x) } | |
| get xy() { return new Vec2(this.x, this.y) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import typescriptEslint from "@typescript-eslint/eslint-plugin" | |
| import tsParser from "@typescript-eslint/parser" | |
| /** @type {import("@typescript-eslint/utils").TSESLint.FlatConfig.ConfigArray} */ | |
| export default [ | |
| { | |
| ignores: [""], | |
| }, | |
| { | |
| languageOptions: { |
OlderNewer