{ "env": { "browser": true, "es2021": true }, "extends": [ "eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended" ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaFeatures": { "jsx": true }, "ecmaVersion": 12, "sourceType": "module" }, "plugins": [ "react", "@typescript-eslint" ], "rules": { "indent": [ "error", 2 ], "linebreak-style": [ "error", "unix" ], "quotes": [ "error", "single" ], "semi": [ "error", "always" ], "react/jsx-uses-react": "off", "react/react-in-jsx-scope": "off", "react/prop-types": 0, "max-params": ["error", 2], "react/jsx-first-prop-new-line": [2, "multiline"], "react/jsx-max-props-per-line": [2, { "maximum": 1, "when": "multiline" }], "react/jsx-indent-props": [2, 2], "react/jsx-closing-bracket-location": [2, "tag-aligned"], //"max-len": ["error", { "code": 80 }, { "ignoreComments": true, "ignoreTrailingComments": true, "ignoreUrls": true, "ignoreStrings": true }], "max-len": [1, 120, { "ignoreComments": true, "ignoreTrailingComments": true, "ignoreUrls": true, "ignoreStrings": true }], "object-curly-newline": ["error", { "ObjectPattern": { "multiline": true, "minProperties": 4 }, "ImportDeclaration": "never", "ExportDeclaration": "never" }], "object-curly-spacing": ["error", "always"], // "sort-imports": ["error", { "ignoreCase": true }], "comma-dangle": ["error", "always-multiline"] }, "settings": { "react": { "version": "detect" } } }