taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

.eslintrc.js (1267B)


      1 module.exports = {
      2   root: true,
      3   parser: "@typescript-eslint/parser",
      4   plugins: ["import", "@typescript-eslint",
      5     "react",
      6     "react-hooks",
      7   ],
      8   extends: [
      9     "eslint:recommended",
     10     "plugin:@typescript-eslint/eslint-recommended",
     11     "plugin:@typescript-eslint/recommended",
     12     "plugin:react/recommended",
     13     "plugin:react-hooks/recommended",
     14   ],
     15   settings: {
     16     react: {
     17       pragma: 'h',
     18       version: '16.0'
     19     }
     20   },
     21   rules: {
     22     "no-constant-condition": ["error", { "checkLoops": false }],
     23     "prefer-const": ["warn", { destructuring: "all" }],
     24     "no-prototype-builtins": "off",
     25     "@typescript-eslint/camelcase": "off",
     26     "@typescript-eslint/no-namespace": "off",
     27     "@typescript-eslint/ban-ts-ignore": "off",
     28     "@typescript-eslint/no-explicit-any": "off",
     29     "@typescript-eslint/ban-ts-comment": "off",
     30     "@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
     31     "@typescript-eslint/explicit-function-return-type": [
     32       "warn",
     33       { allowExpressions: true },
     34     ],
     35     "@typescript-eslint/no-use-before-define": [
     36       "error",
     37       { functions: false, classes: false },
     38     ],
     39     "import/extensions": ["error", "ignorePackages"],
     40     "react/no-unknown-property": 0,
     41     "react/prop-types": 0,
     42 
     43   },
     44 };