初始化上传
Some checks failed
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
Some checks failed
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
This commit is contained in:
128
.eslintrc.json
Normal file
128
.eslintrc.json
Normal file
@@ -0,0 +1,128 @@
|
||||
{
|
||||
"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,
|
||||
"ignorePatterns": ["**/rspack*.config.js"],
|
||||
"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": [],
|
||||
"typeLiterals": "never"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-empty-interface": 0,
|
||||
"@typescript-eslint/no-empty-object-type": 0,
|
||||
"@typescript-eslint/no-explicit-any": 0,
|
||||
"@typescript-eslint/no-namespace": 0,
|
||||
"@typescript-eslint/no-non-null-assertion": 0,
|
||||
"@typescript-eslint/no-require-imports": 0,
|
||||
"@typescript-eslint/no-this-alias": 0,
|
||||
"@typescript-eslint/no-unsafe-function-type": 0,
|
||||
"@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "no-public" }],
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"args": "none",
|
||||
"caughtErrors": "none"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-unused-expressions": [
|
||||
"error",
|
||||
{
|
||||
"allowShortCircuit": true,
|
||||
"allowTernary": true
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-use-before-define": 0,
|
||||
"@typescript-eslint/no-wrapper-object-types": 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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user