87 lines
No EOL
1.4 KiB
Text
87 lines
No EOL
1.4 KiB
Text
{
|
|
"root": true,
|
|
"env": {
|
|
"es2021": true,
|
|
"node": true,
|
|
"commonjs": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2021,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint",
|
|
"unicorn"
|
|
],
|
|
"rules": {
|
|
// Base Eslint Rules
|
|
"indent": [
|
|
"error",
|
|
"tab",
|
|
{
|
|
"SwitchCase": 1,
|
|
"CallExpression": {
|
|
"arguments": 1
|
|
}
|
|
}
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"single"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"eol-last": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"object-curly-spacing": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"default-case": "error",
|
|
"comma-dangle": [
|
|
"error",
|
|
"always-multiline"
|
|
],
|
|
"no-case-declarations": "off",
|
|
"camelcase": "off",
|
|
// TypeScript Rules
|
|
"@typescript-eslint/naming-convention": [
|
|
"error",
|
|
{
|
|
"selector": "default",
|
|
"format": [
|
|
"camelCase"
|
|
]
|
|
}
|
|
],
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
"error",
|
|
{
|
|
"accessibility": "explicit"
|
|
}
|
|
],
|
|
// Unicorn Rules
|
|
"unicorn/filename-case": [
|
|
"error",
|
|
{
|
|
"case": "camelCase"
|
|
}
|
|
]
|
|
},
|
|
"reportUnusedDisableDirectives": true
|
|
} |