mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-04 16:05:31 +00:00
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
14 lines
281 B
JavaScript
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",
|
|
},
|
|
};
|