Created
November 6, 2020 08:15
-
-
Save J3n5en/c8ecd695090943a58240a28b558f35bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| "extends": ["plugin:react/recommended", "plugin:@typescript-eslint/recommended"], | |
| "parser": "@typescript-eslint/parser", | |
| "parserOptions": { | |
| "ecmaFeatures": { | |
| "jsx": true | |
| }, | |
| "useJSXTextNode": true, | |
| "project": "./tsconfig.json" | |
| }, | |
| "env": { | |
| "jest": true, | |
| "node": true, | |
| "es6": true, | |
| "browser": true | |
| }, | |
| "settings": { | |
| "react": { | |
| "version": "detect" | |
| } | |
| }, | |
| "rules": { | |
| "@typescript-eslint/no-empty-function": ["warn"], | |
| "import/prefer-default-export": "off", | |
| "semi": [ | |
| "error", | |
| "never" | |
| ], | |
| "indent": [ | |
| "error", | |
| 2, | |
| { | |
| "SwitchCase": 1 | |
| } | |
| ], | |
| "object-curly-spacing": [ | |
| "error", | |
| "always", | |
| { | |
| "arraysInObjects": true, | |
| "objectsInObjects": true | |
| } | |
| ], | |
| "space-infix-ops": "error", | |
| "@typescript-eslint/no-unused-vars": [ | |
| "error", | |
| { | |
| "argsIgnorePattern": "^_" | |
| } | |
| ], | |
| "react/react-in-jsx-scope": "off", | |
| "react/jsx-filename-extension": [ | |
| 1, | |
| { | |
| "extensions": [ | |
| ".jsx", | |
| ".tsx", | |
| ".js", | |
| ".ts" | |
| ] | |
| } | |
| ], | |
| "jsx-quotes": [ | |
| 1, | |
| "prefer-double" | |
| ], | |
| "@typescript-eslint/class-name-casing": "off", | |
| "max-len": [ | |
| "error", | |
| { | |
| "code": 140, | |
| "ignoreUrls": true, | |
| "ignoreStrings": true, | |
| "ignoreComments": true, | |
| "ignoreTemplateLiterals": true | |
| } | |
| ], | |
| "comma-dangle": [ | |
| "error", | |
| { | |
| "arrays": "never", | |
| "imports": "never", | |
| "exports": "never", | |
| "objects": "never", | |
| "functions": "never" | |
| } | |
| ], | |
| "quotes": [ | |
| "error", | |
| "single", | |
| { | |
| "allowTemplateLiterals": true | |
| } | |
| ], | |
| "import/extensions": "off", | |
| "no-useless-escape": "off", | |
| "no-multiple-empty-lines": [ | |
| "error", | |
| { | |
| "max": 2 | |
| } | |
| ], | |
| "arrow-spacing": [ | |
| "error", | |
| { | |
| "before": true, | |
| "after": true | |
| } | |
| ], | |
| "keyword-spacing": [ | |
| "error", | |
| { | |
| "before": true, | |
| "after": true | |
| } | |
| ], | |
| "array-bracket-spacing": [ | |
| "error", | |
| "never" | |
| ], | |
| "comma-spacing": [ | |
| "error", | |
| { | |
| "before": false, | |
| "after": true | |
| } | |
| ], | |
| "key-spacing": [ | |
| "error", | |
| { | |
| "afterColon": true | |
| } | |
| ], | |
| "space-before-blocks": [ | |
| "error", | |
| { | |
| "functions": "always", | |
| "keywords": "always", | |
| "classes": "always" | |
| } | |
| ], | |
| "no-trailing-spaces": [ | |
| "error", | |
| { | |
| "ignoreComments": true | |
| } | |
| ], | |
| "no-case-declarations": "off", | |
| "no-console": [ | |
| "warn", | |
| { | |
| "allow": [ | |
| "warn", | |
| "error" | |
| ] | |
| } | |
| ], | |
| "curly": [ | |
| "error", | |
| "multi-line" | |
| ], | |
| "arrow-parens": [ | |
| "error", | |
| "as-needed" | |
| ], | |
| "react/no-unescaped-entities": "off", | |
| "react/no-deprecated": "off", | |
| "react/jsx-curly-spacing": [ | |
| "error", | |
| "never" | |
| ], | |
| "react/display-name": "off", | |
| "react/jsx-tag-spacing": [ | |
| "error", | |
| { | |
| "beforeSelfClosing": "always" | |
| } | |
| ], | |
| "react/jsx-closing-bracket-location": [ | |
| "error", | |
| "tag-aligned" | |
| ], | |
| "react/jsx-indent": [ | |
| "error", | |
| 2 | |
| ], | |
| "react/jsx-indent-props": [ | |
| "error", | |
| 2 | |
| ], | |
| "react/jsx-equals-spacing": [ | |
| "error", | |
| "never" | |
| ], | |
| "react/prop-types": "off", | |
| "import/no-commonjs": "off", | |
| "react/forbid-elements": "off", | |
| "flowtype/no-types-missing-file-annotation": "off", | |
| "@typescript-eslint/indent": [ | |
| "error", | |
| 2 | |
| ], | |
| "@typescript-eslint/prefer-interface": "off", | |
| "@typescript-eslint/no-use-before-define": "off", | |
| "@typescript-eslint/array-type": "off", | |
| "@typescript-eslint/member-delimiter-style": [ | |
| "error", | |
| { | |
| "multiline": { | |
| "delimiter": "comma", | |
| "requireLast": false | |
| }, | |
| "singleline": { | |
| "delimiter": "comma", | |
| "requireLast": false | |
| } | |
| } | |
| ], | |
| "@typescript-eslint/ban-types": "off", | |
| "@typescript-eslint/no-explicit-any": "off", | |
| "@typescript-eslint/no-var-requires": "off", | |
| "@typescript-eslint/explicit-function-return-type": "off", | |
| "@typescript-eslint/explicit-member-accessibility": "off", | |
| "no-prototype-builtins": "off", | |
| "space-in-parens": [ | |
| "error", | |
| "never" | |
| ], | |
| "@typescript-eslint/camelcase": "off", | |
| "space-before-function-paren": [ | |
| "error", | |
| { | |
| "anonymous": "never", | |
| "named": "never", | |
| "asyncArrow": "always" | |
| } | |
| ], | |
| "computed-property-spacing": [ | |
| "error", | |
| "never" | |
| ], | |
| "no-multi-spaces": "error", | |
| "@typescript-eslint/no-empty-interface": "off", | |
| "no-empty-pattern": "off", | |
| "@typescript-eslint/interface-name-prefix": "off", | |
| "no-empty": "off", | |
| "@typescript-eslint/no-object-literal-type-assertion": "off", | |
| "@typescript-eslint/ban-ts-ignore":"off", | |
| "react/sort-comp":"off" | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment