pyright/.eslintrc.json

115 lines
3.6 KiB
JSON
Raw Normal View History

2019-12-23 10:04:12 +03:00
{
"extends": [
"eslint:recommended",
"prettier",
2019-12-23 10:04:12 +03:00
"plugin:@typescript-eslint/recommended"
],
"env": {
"node": true
2019-12-23 10:04:12 +03:00
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
2019-12-23 10:04:12 +03:00
"sourceType": "module"
},
"plugins": [
"@typescript-eslint/eslint-plugin",
"simple-import-sort"
2019-12-23 10:04:12 +03:00
],
"root": true,
2019-12-23 10:04:12 +03:00
"rules": {
"eqeqeq": "error",
2019-12-23 10:04:12 +03:00
"no-constant-condition": 0,
"no-inner-declarations": 0,
"no-unused-vars": "off",
2019-12-23 10:04:12 +03:00
"no-undef": 0,
"simple-import-sort/exports": "error",
2019-12-23 10:04:12 +03:00
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
2019-12-23 10:04:12 +03:00
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/member-ordering": [
"error",
{
"classes": ["field", "constructor", ["public-get", "public-set"], "public-method", ["protected-get", "protected-set"], "protected-method", ["private-get", "private-set"], "private-method"],
"interfaces": []
}
],
2019-12-23 10:04:12 +03:00
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "no-public" }],
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "none"
}
],
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/naming-convention": [
"error",
{
"selector": [
"classProperty",
"typeProperty",
"parameterProperty",
"classMethod",
"typeMethod",
"accessor"
],
"modifiers": ["private"],
"leadingUnderscore": "require",
"format": ["camelCase"],
"filter": {
"regex": "^(test_| )",
"match": false
}
},
{
"selector": [
"classProperty",
"typeProperty",
"parameterProperty",
"classMethod",
"typeMethod",
"accessor"
],
"modifiers": ["protected"],
"leadingUnderscore": "forbid",
"format": ["camelCase"],
"filter": {
"regex": "^(test_| )",
"match": false
}
},
{
"selector": [
"classProperty",
"typeProperty",
"parameterProperty",
"classMethod",
"typeMethod",
"accessor"
],
"modifiers": ["public"],
"leadingUnderscore": "forbid",
"format": ["camelCase"],
"filter": {
"regex": "^(test_| )",
"match": false
}
}
]
},
"overrides": [
{
"files": ["**/*.js"],
"rules": {
"@typescript-eslint/no-var-requires": 0
}
}
]
}