mirror of
https://github.com/microsoft/pyright.git
synced 2024-08-16 19:30:26 +03:00
115 lines
3.6 KiB
JSON
115 lines
3.6 KiB
JSON
{
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"prettier",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"env": {
|
|
"node": true
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2019,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint/eslint-plugin",
|
|
"simple-import-sort"
|
|
],
|
|
"root": true,
|
|
"rules": {
|
|
"eqeqeq": "error",
|
|
"no-constant-condition": 0,
|
|
"no-inner-declarations": 0,
|
|
"no-unused-vars": "off",
|
|
"no-undef": 0,
|
|
"simple-import-sort/exports": "error",
|
|
"@typescript-eslint/explicit-function-return-type": 0,
|
|
"@typescript-eslint/explicit-module-boundary-types": 0,
|
|
"@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": []
|
|
}
|
|
],
|
|
"@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
|
|
}
|
|
}
|
|
]
|
|
}
|