Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "parser": "@typescript-eslint/parser",
- "extends": [
- "plugin:react/recommended",
- "plugin:@typescript-eslint/recommended",
- ],
- "parserOptions": {
- "ecmaVersion": 2018,
- "sourceType": "module",
- "ecmaFeatures": {
- "jsx": true,
- },
- },
- "rules": {
- "linebreak-style": [
- "warn",
- "unix"
- ],
- "no-multiple-empty-lines": [
- "warn",
- {
- "max": 2,
- "maxEOF": 1
- }
- ],
- "vars-on-top": "warn",
- "no-console": [
- "warn",
- {
- "allow": [
- "warn",
- "error"
- ]
- }
- ],
- "@typescript-eslint/indent": [
- "warn",
- 2,
- {
- "SwitchCase": 1
- }
- ],
- "space-infix-ops": "warn",
- "no-trailing-spaces": "warn",
- "no-unreachable": "off",
- "template-curly-spacing": "warn",
- "prefer-template": "warn",
- "no-debugger": "warn",
- "no-extra-boolean-cast": "warn",
- "no-irregular-whitespace": "warn",
- "no-multi-spaces": "warn",
- "no-template-curly-in-string": "warn",
- "no-unneeded-ternary": "warn",
- "no-case-declarations": "off",
- "no-unused-expressions": "off",
- "no-else-return": "warn",
- "no-restricted-globals": "off",
- "no-use-before-define": "off",
- "no-mixed-spaces-and-tabs": "warn",
- "no-extra-parens": "off",
- "object-shorthand": "warn",
- "prefer-arrow-callback": "warn",
- "no-duplicate-imports": "warn",
- "arrow-spacing": "warn",
- "no-sequences": "off",
- "no-lonely-if": "warn",
- "jsx-quotes": [
- "warn",
- "prefer-single"
- ],
- "quotes": [
- "warn",
- "single"
- ],
- "object-curly-spacing": [
- "warn",
- "always"
- ],
- "key-spacing": "warn",
- "semi": [
- "warn",
- "never"
- ],
- "arrow-parens": [
- "warn",
- "as-needed"
- ],
- "react/self-closing-comp": [
- "warn",
- {
- "component": true
- }
- ],
- "react/jsx-closing-bracket-location": [
- 1,
- "tag-aligned"
- ],
- "react/jsx-max-props-per-line": [
- 1,
- {
- "when": "multiline"
- }
- ],
- "react/jsx-first-prop-new-line": [
- 1,
- "multiline"
- ],
- "react/jsx-tag-spacing": [
- 1,
- {
- "closingSlash": "never",
- "beforeSelfClosing": "always",
- "afterOpening": "never",
- "beforeClosing": "never"
- }
- ],
- "react/prop-types": "off",
- "react/prefer-stateless-function": [
- 1
- ],
- "react/no-deprecated": "off",
- "comma-dangle": "off",
- "react/display-name": "off",
- "import/no-unresolved": "error",
- "@typescript-eslint/explicit-function-return-type": "off",
- "no-unused-vars": "off"
- },
- "settings": {
- "react": {
- "version": "detect"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement