Skip to content

Commit

Permalink
format: update lint rules/plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Feb 20, 2023
1 parent 550099c commit e08c2cc
Show file tree
Hide file tree
Showing 24 changed files with 1,694 additions and 66 deletions.
37 changes: 36 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,42 @@
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {}
"plugins": ["unused-imports", "import", "simple-import-sort"],
"rules": {
"eqeqeq": ["error", "always", { "null": "never" }],
"complexity": "error",
"max-depth": "error",
"max-lines": "error",
"max-lines-per-function": "error",
"max-nested-callbacks": ["error", { "max": 3 }],
"max-params": ["error", 10],
"no-console": [
"error",
{ "allow": ["error", "warn", "info", "table"] }
],
"no-duplicate-imports": "error",
"no-empty": "error",
"no-fallthrough": "error",
"no-param-reassign": "error",
"no-unreachable": "error",
"no-unreachable-loop": "error",
"no-unused-vars": "off",
"no-var": "error",
"prefer-const": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
["^\\u0000"],
["^@?\\w"],
["^(@aloes)(/.*|$)"],
["^"],
["^\\."]
]
}
],
"simple-import-sort/exports": "error"
}
},
{
"files": ["*.js", "*.jsx"],
Expand Down
Loading

0 comments on commit e08c2cc

Please sign in to comment.