ente/web/packages/build-config/eslintrc-base.js

30 lines
864 B
JavaScript
Raw Permalink Normal View History

2024-02-24 09:55:31 +00:00
/* eslint-env node */
module.exports = {
2024-04-03 08:02:05 +00:00
root: true,
2024-02-24 09:55:31 +00:00
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
],
2024-04-02 14:34:23 +00:00
plugins: ["@typescript-eslint"],
2024-04-03 08:02:05 +00:00
parserOptions: { project: true },
2024-02-24 09:55:31 +00:00
parser: "@typescript-eslint/parser",
ignorePatterns: [".eslintrc.js"],
rules: {
/* Allow numbers to be used in template literals */
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowNumber: true,
},
],
/* Allow void expressions as the entire body of an arrow function */
"@typescript-eslint/no-confusing-void-expression": [
"error",
{
ignoreArrowShorthand: true,
},
],
},
2024-02-24 09:55:31 +00:00
};