Update eslint to what I normally like
This commit is contained in:
parent
32d8ae5bc3
commit
1b421da7d9
@ -1,9 +1,7 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"plugins": [
|
"plugins": ["@typescript-eslint"],
|
||||||
"@typescript-eslint"
|
|
||||||
],
|
|
||||||
"extends": [
|
"extends": [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
@ -17,52 +15,34 @@
|
|||||||
"@typescript-eslint/comma-dangle": 1,
|
"@typescript-eslint/comma-dangle": 1,
|
||||||
"@typescript-eslint/func-call-spacing": 2,
|
"@typescript-eslint/func-call-spacing": 2,
|
||||||
"@typescript-eslint/quotes": 1,
|
"@typescript-eslint/quotes": 1,
|
||||||
"@typescript-eslint/brace-style": [
|
"@typescript-eslint/brace-style": ["warn", "1tbs"],
|
||||||
"warn",
|
|
||||||
"allman"
|
|
||||||
],
|
|
||||||
"@typescript-eslint/naming-convention": [
|
"@typescript-eslint/naming-convention": [
|
||||||
"warn",
|
"warn",
|
||||||
{
|
{
|
||||||
"selector": "default",
|
"selector": "default",
|
||||||
"format": [
|
"format": ["camelCase"],
|
||||||
"camelCase"
|
|
||||||
],
|
|
||||||
"leadingUnderscore": "allow"
|
"leadingUnderscore": "allow"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"selector": "typeLike",
|
"selector": "typeLike",
|
||||||
"format": [
|
"format": ["PascalCase"]
|
||||||
"PascalCase"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"selector": "objectLiteralProperty",
|
"selector": "objectLiteralProperty",
|
||||||
"format": [
|
"format": ["PascalCase", "camelCase"],
|
||||||
"PascalCase",
|
|
||||||
"camelCase"
|
|
||||||
],
|
|
||||||
"leadingUnderscore": "allow"
|
"leadingUnderscore": "allow"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"selector": "typeProperty",
|
"selector": "typeProperty",
|
||||||
"format": [
|
"format": ["PascalCase", "camelCase"],
|
||||||
"PascalCase",
|
|
||||||
"camelCase"
|
|
||||||
],
|
|
||||||
"leadingUnderscore": "allow"
|
"leadingUnderscore": "allow"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"selector": "enumMember",
|
"selector": "enumMember",
|
||||||
"format": [
|
"format": ["UPPER_CASE"]
|
||||||
"UPPER_CASE"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@typescript-eslint/indent": [
|
"@typescript-eslint/indent": ["warn", 2],
|
||||||
"warn",
|
|
||||||
4
|
|
||||||
],
|
|
||||||
"@typescript-eslint/no-unused-expressions": [
|
"@typescript-eslint/no-unused-expressions": [
|
||||||
"warn",
|
"warn",
|
||||||
{
|
{
|
||||||
@ -86,10 +66,7 @@
|
|||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": [
|
"files": ["*.mjs", "*.ts"],
|
||||||
"*.mjs",
|
|
||||||
"*.ts"
|
|
||||||
],
|
|
||||||
"env": {
|
"env": {
|
||||||
"node": true
|
"node": true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user