Archived
0
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
library/.eslintrc

123 lines
2 KiB
Text
Raw Normal View History

2021-07-05 22:06:11 +00:00
{
"root": true,
"env": {
"es2021": true,
"node": true,
"commonjs": true
},
"extends": [
"eslint:recommended",
2021-07-06 16:50:06 +00:00
"plugin:import/recommended",
"plugin:import/typescript",
2021-07-05 22:06:11 +00:00
"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",
2021-07-06 16:50:06 +00:00
"keyword-spacing": "error",
"spaced-comment": [
"error",
"always"
],
"no-var": "error",
2021-07-05 22:06:11 +00:00
// TypeScript Rules
"@typescript-eslint/naming-convention": [
"error",
{
2021-07-05 22:55:30 +00:00
"selector": "class",
2021-07-05 22:06:11 +00:00
"format": [
2021-07-05 22:55:30 +00:00
"PascalCase"
2021-07-05 22:06:11 +00:00
]
2021-07-05 22:55:30 +00:00
},
{
"selector": "classProperty",
"modifiers": [
"private"
],
"format": [
"camelCase"
],
"leadingUnderscore": "require"
},
{
"selector": "interface",
"format": null,
"custom": {
"regex": "^I",
"match": true
}
},
{
"selector": "enum",
"format": null,
"custom": {
"regex": "^E",
"match": true
}
2021-07-05 22:06:11 +00:00
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "explicit"
}
],
2021-07-06 16:50:06 +00:00
"@typescript-eslint/explicit-function-return-type": "error",
2021-07-05 22:06:11 +00:00
// Unicorn Rules
"unicorn/filename-case": [
"error",
{
"case": "camelCase"
}
]
},
"reportUnusedDisableDirectives": true
2021-07-06 16:50:06 +00:00
}