UNPKG

infra-cli

Version:
114 lines (113 loc) 2.43 kB
{ "env": { "browser": true, "commonjs": true, "node": true, "es6": true, {{#if unitTesting}} "jest": true {{/if}} }, "extends": [ "standard", {{#if typeScript}} "plugin:@typescript-eslint/recommended", {{/if}} "plugin:react/recommended" ], {{#if typeScript}} "parser": "@typescript-eslint/parser", {{/if}} {{#unless typeScript}} "parser": "babel-eslint", {{/unless}} "parserOptions": { "ecmaFeatures": { "jsx": true }, "ecmaVersion": 2018, "sourceType": "module" }, "plugins": [ "react", {{#if typeScript}} "@typescript-eslint", {{/if}} "react-hooks" ], "settings": { {{#if typeScript}} "import/parsers": { "@typescript-eslint/parser": [ ".ts", ".tsx" ] }, "import/resolver": { "typescript": {} }, {{/if}} "react": { "version": "detect" } }, "rules": { {{#if typeScript}} "@typescript-eslint/camelcase": [ "off", { "properties": "never" } ], "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-use-before-define": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/interface-name-prefix": [ "off", { "prefixWithI": "always" } ], "@typescript-eslint/member-delimiter-style": [ "error", { "multiline": { "delimiter": "none", "requireLast": false }, "singleline": { "delimiter": "semi", "requireLast": false } } ], "@typescript-eslint/no-unused-vars": "error", "@typescript-eslint/no-var-requires": "off", {{/if}} "quotes": [ "error", "single" ], "standard/no-callback-literal": "off", "no-console": "off", "no-empty-pattern": "off", "no-useless-escape": "off", "no-case-declarations": "off", "no-unused-vars": "error", "eqeqeq": "error", "semi": ["error", "never"], "react-hooks/rules-of-hooks": "off", "react-hooks/exhaustive-deps": "error", "react/display-name": "off", "react/jsx-no-target-blank": "off", "jsx-quotes": [ "error", "prefer-single" ], "react/prop-types": [ "off" ], "no-use-before-define": "off" } }