Newer
Older
CrypticOreWallet / .eslintrc.json
@Drew Lemmy Drew Lemmy on 4 Sep 2020 929 bytes feat: credits screen, websocket, lint
{
  "root": true,
  "parser": "@typescript-eslint/parser",
  "plugins": [
    "@typescript-eslint",
    "eslint-plugin-tsdoc"
  ],
  "parserOptions": {
    "project": "./tsconfig.json",
    "tsconfigRootDir": ".",
    "ecmaVersion": 2018,
    "ecmaFeatures": {
      "jsx": true
    },
    "sourceType": "module"
  },
  "settings": {
    "react": {
      "version": "detect"
    }
  },
  "rules": {
    "quotes": ["error", "double", { "allowTemplateLiterals": true }],
    "semi": "error",
    "indent": ["error", 2],
    "tsdoc/syntax": "warn",
    "react/function-component-definition": ["warn", {
      "namedComponents": "arrow-function",
      "unnamedComponents": "arrow-function"
    }],
    "react/display-name": ["error", { "ignoreTranspilerName": false }]
  },
  "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended",
    "prettier/@typescript-eslint",
    "plugin:react/recommended"
  ]
}