generated from foxglove/template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Depends on foxglove/eslint-plugin#52
- Loading branch information
Showing
6 changed files
with
668 additions
and
758 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// @ts-check | ||
|
||
const foxglove = require("@foxglove/eslint-plugin"); | ||
const globals = require("globals"); | ||
const tseslint = require("typescript-eslint"); | ||
|
||
module.exports = tseslint.config( | ||
{ | ||
ignores: ["**/dist/"], | ||
}, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
parserOptions: { | ||
project: "tsconfig.eslint.json", | ||
}, | ||
}, | ||
rules: { | ||
"no-restricted-syntax": [ | ||
"error", | ||
{ | ||
selector: 'BinaryExpression[operator=">>"]', | ||
message: | ||
"When working with unsigned numbers, use the unsigned right shift operator `>>>`.", | ||
}, | ||
], | ||
}, | ||
}, | ||
...foxglove.configs.base, | ||
...foxglove.configs.jest, | ||
...foxglove.configs.typescript.map((config) => ({ | ||
...config, | ||
files: ["**/*.@(ts|tsx)"], | ||
})), | ||
); |
This file contains 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
Oops, something went wrong.