Last active
July 18, 2021 08:14
-
-
Save cheeze2000/fcfa357e0e47bdb1243ec4b9e37982d5 to your computer and use it in GitHub Desktop.
eslintrc
This file contains 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 = { | |
root: true, | |
parser: "@typescript-eslint/parser", | |
plugins: [ | |
"@typescript-eslint", | |
], | |
extends: [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/recommended", | |
], | |
rules: { | |
"@typescript-eslint/array-type": "error", | |
"@typescript-eslint/brace-style": "error", | |
"@typescript-eslint/comma-dangle": "error", | |
"@typescript-eslint/comma-spacing": "error", | |
"@typescript-eslint/consistent-type-definitions": "error", | |
"@typescript-eslint/consistent-type-imports": "error", | |
"@typescript-eslint/explicit-function-return-type": "error", | |
"@typescript-eslint/indent": ["error", "tab"], | |
"@typescript-eslint/keyword-spacing": "error", | |
"@typescript-eslint/member-delimiter-style": "error", | |
"@typescript-eslint/member-ordering": "error", | |
"@typescript-eslint/method-signature-style": "error", | |
"@typescript-eslint/no-duplicate-imports": "error", | |
"@typescript-eslint/no-extra-parens": ["error", "all", { nestedBinaryExpressions: false }], | |
"@typescript-eslint/no-extraneous-class": "error", | |
"@typescript-eslint/no-require-imports": "error", | |
"@typescript-eslint/no-unused-expressions": "error", | |
"@typescript-eslint/object-curly-spacing": ["error", "always"], | |
"@typescript-eslint/prefer-for-of": "error", | |
"@typescript-eslint/quotes": "error", | |
"@typescript-eslint/semi": "error", | |
"@typescript-eslint/space-before-function-paren": ["error", { named: "never" }], | |
"@typescript-eslint/space-infix-ops": "error", | |
"array-bracket-spacing": "error", | |
"arrow-spacing": "error", | |
"block-spacing": "error", | |
"brace-style": "off", | |
"comma-dangle": "off", | |
"comma-spacing": "off", | |
"eol-last": "error", | |
"indent": "off", | |
"key-spacing": "error", | |
"keyword-spacing": "off", | |
"linebreak-style": "error", | |
"max-len": "error", | |
"no-console": "error", | |
"no-duplicate-imports": "off", | |
"no-extra-parens": "off", | |
"no-multi-spaces": "error", | |
"no-multiple-empty-lines": ["error", { max: 1, maxEOF: 1, maxBOF: 0 }], | |
"no-trailing-spaces": "error", | |
"no-unused-expressions": "off", | |
"no-var": "error", | |
"object-curly-spacing": "off", | |
"prefer-const": "error", | |
"quotes": "off", | |
"semi": "off", | |
"semi-spacing": "error", | |
"sort-imports": ["error", { allowSeparatedGroups: true }], | |
"space-before-blocks": "error", | |
"space-before-function-paren": "off", | |
"space-infix-ops": "off", | |
"space-unary-ops": "error", | |
"yoda": "error" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment