diff --git a/.eslintrc.json b/.eslintrc.json index 3b8fa69..68be561 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,10 +15,7 @@ "@typescript-eslint/comma-dangle": ["off"], "react/react-in-jsx-scope": "off", "react/jsx-props-no-spreading": "off", - "react/jsx-filename-extension": [ - 2, - { "extensions": [".js", ".jsx", ".ts", ".tsx"] } - ], + "react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }], "react/forbid-prop-types": "off", "react/require-default-props": [ "error", @@ -35,6 +32,10 @@ "ImportDeclaration": "never", "ExportDeclaration": { "multiline": true, "minProperties": 3 } } - ] + ], + "lines-between-class-members": "off", + "@typescript-eslint/lines-between-class-members": ["off"], + "indent": "off", + "@typescript-eslint/indent": ["off"] } } diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..d0d878e --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +.next \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index d268dc8..61aaaf6 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,18 +1,18 @@ { -"endOfLine": "auto", -"arrowParens": "always", -"bracketSpacing": true, -"htmlWhitespaceSensitivity": "ignore", -"insertPragma": false, -"jsxBracketSameLine": false, -"jsxSingleQuote": false, -"printWidth": 80, -"proseWrap": "preserve", -"quoteProps": "as-needed", -"requirePragma": false, -"semi": true, -"singleQuote": true, -"tabWidth": 2, -"trailingComma": "es5", -"useTabs": false + "endOfLine": "auto", + "arrowParens": "always", + "bracketSpacing": true, + "htmlWhitespaceSensitivity": "ignore", + "insertPragma": false, + "jsxBracketSameLine": false, + "jsxSingleQuote": false, + "printWidth": 100, + "proseWrap": "preserve", + "quoteProps": "as-needed", + "requirePragma": false, + "semi": true, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "es5", + "useTabs": false } diff --git a/package.json b/package.json index 4d32376..dc77ba8 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "start": "next start", "lint": "next lint", "lint:fix": "next lint -- --fix", + "prettier": "prettier --write .", "graphql:codegen": "apollo client:codegen --target typescript", "graphql:schema": "apollo client:download-schema services/crm/graphql/schema.graphql" },