Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
chore: 🎨 format .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTheRobot committed Jan 30, 2024
1 parent a6680ff commit 186a69e
Showing 1 changed file with 131 additions and 28 deletions.
159 changes: 131 additions & 28 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
},
"overrides": [
{
"files": ["**/*.ts"] //ignore .js files
"files": [
"**/*.ts"
] //ignore .js files
}
],
"plugins": ["@typescript-eslint"],
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
Expand All @@ -27,41 +31,140 @@
],
"rules": {
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/consistent-type-imports": ["error", {"prefer": "type-imports", "fixStyle": "separate-type-imports"}],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports",
"fixStyle": "separate-type-imports"
}
],
// "quotes": ["error", "double"],
"object-curly-spacing": ["error", "always"],
"@typescript-eslint/consistent-type-definitions": ["warn", "type"],
"object-curly-spacing": [
"error",
"always"
],
"@typescript-eslint/consistent-type-definitions": [
"warn",
"type"
],
"@typescript-eslint/explicit-function-return-type": "error",
"no-var": "error",
"padding-line-between-statements": [
"error",
{"blankLine": "always", "prev": "block-like","next": "function"}
{
"blankLine": "always",
"prev": "block-like",
"next": "function"
}
],
"no-empty": "warn",
"@typescript-eslint/no-misused-promises": ["error", {
"checksVoidReturn": {
"arguments": false
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": {
"arguments": false
}
}
}],
"semi": ["error","always"],
],
"semi": [
"error",
"always"
],
"space-infix-ops": "error",
"spaced-comment":"error",
"arrow-spacing":"error",
"eqeqeq": ["warn", "always"],
"@typescript-eslint/no-unused-vars": ["error",{"argsIgnorePattern": "^_"}],
"spaced-comment": "error",
"arrow-spacing": "error",
"eqeqeq": [
"warn",
"always"
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/naming-convention": [
"warn",
{"selector": "enum", "format":["PascalCase"]},
{"selector": "enumMember", "format":["UPPER_CASE"]},
{"selector": "class","format":["PascalCase"]},
{"selector": "interface","format":["PascalCase"]},
{"selector": "typeAlias","format":["PascalCase"]},
{"selector": "classProperty","format":["camelCase"], "leadingUnderscore":"allow"},
{"selector": "objectLiteralProperty", "format":null},
{"selector": "typeLike", "format":["PascalCase", "camelCase"]},
{"selector": "variable", "modifiers": [ "const"], "format":["UPPER_CASE","camelCase"] , "filter": {"regex":"^_.*","match":false}},
{"selector": "variable", "modifiers": ["exported", "const"], "format":["UPPER_CASE", "camelCase"]},
{"selector": "default","format": ["strictCamelCase"], "leadingUnderscore": "allow" } //this must be the last rule
"warn",
{
"selector": "enum",
"format": [
"PascalCase"
]
},
{
"selector": "enumMember",
"format": [
"UPPER_CASE"
]
},
{
"selector": "class",
"format": [
"PascalCase"
]
},
{
"selector": "interface",
"format": [
"PascalCase"
]
},
{
"selector": "typeAlias",
"format": [
"PascalCase"
]
},
{
"selector": "classProperty",
"format": [
"camelCase"
],
"leadingUnderscore": "allow"
},
{
"selector": "objectLiteralProperty",
"format": null
},
{
"selector": "typeLike",
"format": [
"PascalCase",
"camelCase"
]
},
{
"selector": "variable",
"modifiers": [
"const"
],
"format": [
"UPPER_CASE",
"camelCase"
],
"filter": {
"regex": "^_.*",
"match": false
}
},
{
"selector": "variable",
"modifiers": [
"exported",
"const"
],
"format": [
"UPPER_CASE",
"camelCase"
]
},
{
"selector": "default",
"format": [
"strictCamelCase"
],
"leadingUnderscore": "allow"
} //this must be the last rule
]
}
}
}

0 comments on commit 186a69e

Please sign in to comment.