Skip to content

Instantly share code, notes, and snippets.

@kvedantmahajan
Last active July 12, 2021 13:39
Show Gist options
  • Select an option

  • Save kvedantmahajan/d675b0ee68aaaf38ee6c56cd04d5638f to your computer and use it in GitHub Desktop.

Select an option

Save kvedantmahajan/d675b0ee68aaaf38ee6c56cd04d5638f to your computer and use it in GitHub Desktop.

Revisions

  1. kvedantmahajan revised this gist Nov 18, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .eslintrc
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,8 @@
    "env": {
    "browser": true,
    "jasmine": true,
    "jest": true
    "jest": true,
    "node": true
    },
    "rules": {
    "prettier/prettier": [
  2. kvedantmahajan revised this gist Nov 18, 2019. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,7 @@
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
    "sourceType": "module",
    "project": [
    "./packages/ui-components/tsconfig.json",
    "./packages/ui-core/tsconfig.json"
    ]
    "project": "./tsconfig.json"
    },
    "plugins": [
    "react",
  3. kvedantmahajan revised this gist Nov 18, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,8 @@
    "parserOptions": {
    "sourceType": "module",
    "project": [
    "./packages/components/tsconfig.json",
    "./packages/core/tsconfig.json"
    "./packages/ui-components/tsconfig.json",
    "./packages/ui-core/tsconfig.json"
    ]
    },
    "plugins": [
  4. kvedantmahajan created this gist Nov 18, 2019.
    57 changes: 57 additions & 0 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    {
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
    "sourceType": "module",
    "project": [
    "./packages/components/tsconfig.json",
    "./packages/core/tsconfig.json"
    ]
    },
    "plugins": [
    "react",
    "prettier",
    "@typescript-eslint"
    ],
    "extends": [
    "eslint:recommended",
    "plugin:react/recommended",
    "plugin:@typescript-eslint/eslint-recommended",
    "prettier",
    "prettier/@typescript-eslint"
    ],
    "env": {
    "browser": true,
    "jasmine": true,
    "jest": true
    },
    "rules": {
    "prettier/prettier": [
    "error",
    {
    "jsx-max-props-per-line": 1,
    "useTabs": true,
    "tabWidth": 4
    }
    ],
    "no-case-declarations": "off",
    "no-unused-vars": "off",
    "@typescript-eslint/no-unused-vars": [
    "error",
    {
    "vars": "all",
    "args": "all",
    "ignoreRestSiblings": false
    }
    ],
    "@typescript-eslint/no-explicit-any": "off",
    "@typescript-eslint/explicit-function-return-type": "off",
    "@typescript-eslint/unbound-method": "off",
    "react/display-name": "off"
    },
    "settings": {
    "react": {
    "pragma": "React",
    "version": "detect"
    }
    }
    }