code-style: new eslint rules

prettier script
This commit is contained in:
Chika 2022-05-08 20:53:27 +03:00
parent ae2c969860
commit 840eea78fd
4 changed files with 24 additions and 21 deletions

View File

@ -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"]
}
}

1
.prettierignore Normal file
View File

@ -0,0 +1 @@
.next

View File

@ -6,7 +6,7 @@
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"printWidth": 100,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,

View File

@ -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"
},