7056e04c02
Copy overrides from desktop
30 lines
864 B
JavaScript
30 lines
864 B
JavaScript
/* eslint-env node */
|
|
module.exports = {
|
|
root: true,
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/strict-type-checked",
|
|
"plugin:@typescript-eslint/stylistic-type-checked",
|
|
],
|
|
plugins: ["@typescript-eslint"],
|
|
parserOptions: { project: true },
|
|
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,
|
|
},
|
|
],
|
|
},
|
|
};
|