Skip to content

Instantly share code, notes, and snippets.

@luooooob
Last active September 1, 2021 09:20
Show Gist options
  • Save luooooob/5be6dd3889cd787f70aaafd42491d1a0 to your computer and use it in GitHub Desktop.
Save luooooob/5be6dd3889cd787f70aaafd42491d1a0 to your computer and use it in GitHub Desktop.

Revisions

  1. luooooob revised this gist Sep 1, 2021. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions .eslintrc.json
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@
    "root": true,
    "parser": "@typescript-eslint/parser",
    "plugins": [
    "@typescript-eslint",
    "functional"
    ],
    "extends": [
    @@ -39,7 +38,6 @@
    "react/jsx-boolean-value": "warn"
    },
    "parserOptions": {
    "warnOnUnsupportedTypeScriptVersion": false,
    "project": ["./tsconfig.json"]
    },
    "settings": {
  2. luooooob created this gist Sep 1, 2021.
    50 changes: 50 additions & 0 deletions .eslintrc.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    {
    "root": true,
    "parser": "@typescript-eslint/parser",
    "plugins": [
    "@typescript-eslint",
    "functional"
    ],
    "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended",
    "plugin:@typescript-eslint/eslint-recommended",
    "plugin:@typescript-eslint/recommended",
    "plugin:@typescript-eslint/recommended-requiring-type-checking",
    "plugin:react/recommended",
    "plugin:react/jsx-runtime",
    "plugin:react-hooks/recommended",
    "plugin:jsx-a11y/recommended"
    ],
    "rules": {
    "@typescript-eslint/consistent-type-imports": "error",
    "@typescript-eslint/consistent-indexed-object-style": "error",
    "@typescript-eslint/semi": ["error", "never"],
    "@typescript-eslint/quotes": "error",
    "@typescript-eslint/comma-dangle": ["error", "always-multiline"],
    "@typescript-eslint/no-empty-function" : "off",
    "functional/immutable-data": "warn",
    "functional/no-let": "warn",
    "functional/no-method-signature": "warn",
    "functional/prefer-readonly-type": "warn",
    "functional/no-class": "warn",
    "functional/no-loop-statement": "warn",
    "react/prop-types": "off",
    "react/boolean-prop-naming": "warn",
    "react/function-component-definition": ["error", {
    "namedComponents": "arrow-function"
    }],
    "react/no-multi-comp": "warn",
    "react/no-unstable-nested-components":"warn",
    "react/jsx-boolean-value": "warn"
    },
    "parserOptions": {
    "warnOnUnsupportedTypeScriptVersion": false,
    "project": ["./tsconfig.json"]
    },
    "settings": {
    "react": {
    "version": "detect"
    }
    }
    }