ente/desktop/.eslintrc.js

38 lines
1 KiB
JavaScript
Raw Normal View History

/* eslint-env node */
module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
2024-04-30 10:33:52 +00:00
"plugin:@typescript-eslint/strict-type-checked",
2024-04-30 13:16:13 +00:00
/* What we really want eventually */
// "plugin:@typescript-eslint/stylistic-type-checked",
],
plugins: ["@typescript-eslint"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
ignorePatterns: [".eslintrc.js", "app", "out", "dist"],
env: {
es2022: true,
node: true,
},
rules: {
2024-04-30 13:16:13 +00:00
/* Allow numbers to be used in template literals */
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowNumber: true,
},
],
2024-04-30 13:16:13 +00:00
/* Allow void expressions as the entire body of an arrow function */
"@typescript-eslint/no-confusing-void-expression": [
"error",
{
ignoreArrowShorthand: true,
},
],
},
};