anki/ts/.eslintrc.js

20 lines
571 B
JavaScript
Raw Normal View History

module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
rules: {
"prefer-const": "warn",
"no-nested-ternary": "warn",
2021-04-22 19:19:39 +02:00
"@typescript-eslint/ban-ts-comment": "warn",
2020-06-24 01:41:07 +02:00
"@typescript-eslint/no-unused-vars": [
2020-06-26 06:05:58 +02:00
"warn",
2020-06-24 01:41:07 +02:00
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
},
env: { browser: true },
};