spiegel-keyman/.eslintrc.cjs
Joshua Horton f9a01ff3aa maint: patchup eslint configuration
In #13788, I aimed to address a TODO about adding `eslint:recommended` as a lint setting, but missed that the following line would override it instantly.

After some testing, I realized _why_ we hadn't done it before - the `eslint:recommended` setting is designed for raw JS, not TS.  For example, it doesn't like TS type definition for function parameters or function type definitions.  We should probably just drop `eslint:recommended` against TS files.

Test-bot: skip
2025-05-02 14:06:33 +07:00

14 lines
281 B
JavaScript

module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
},
extends: [ "plugin:@typescript-eslint/eslint-recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
};