Add API monorepo
Change-Id: I39aa1707744bb86c4bc9113157bbf815bb3fe33a
This commit is contained in:
parent
b87cff043a
commit
5246efb027
56 changed files with 251 additions and 22 deletions
119
source/ui/.eslintrc
Normal file
119
source/ui/.eslintrc
Normal file
|
@ -0,0 +1,119 @@
|
|||
{
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:react/recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"prettier"
|
||||
],
|
||||
"plugins": [
|
||||
"react",
|
||||
"react-hooks",
|
||||
"typescript",
|
||||
"@typescript-eslint",
|
||||
"typescript-sort-keys",
|
||||
"simple-import-sort",
|
||||
"import"
|
||||
],
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true,
|
||||
"es6": true,
|
||||
"jest": true
|
||||
},
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "detect"
|
||||
},
|
||||
"import/parsers": {
|
||||
"@typescript-eslint/parser": [
|
||||
".ts",
|
||||
".tsx"
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.js"
|
||||
],
|
||||
"parser": "esprima",
|
||||
"rules": {
|
||||
"@typescript-eslint/no-var-requires": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"rules": {
|
||||
"max-len": "off",
|
||||
"no-useless-escape": "off",
|
||||
"object-curly-spacing": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"no-multi-spaces": "error",
|
||||
"no-console": [
|
||||
"error",
|
||||
{
|
||||
"allow": [
|
||||
"info",
|
||||
"warn",
|
||||
"error"
|
||||
]
|
||||
}
|
||||
],
|
||||
"no-unused-vars": "off",
|
||||
"@typescript-eslint/no-non-null-assertion": "off",
|
||||
"@typescript-eslint/no-unused-vars": 2,
|
||||
"@typescript-eslint/interface-name-prefix": 0,
|
||||
"@typescript-eslint/no-empty-interface:": 0,
|
||||
"@typescript-eslint/explicit-function-return-type": 0,
|
||||
"@typescript-eslint/explicit-member-accessibility": 2,
|
||||
"@typescript-eslint/no-explicit-any": 0,
|
||||
"@typescript-eslint/no-empty-function": 0,
|
||||
"typescript-sort-keys/interface": "error",
|
||||
"typescript-sort-keys/string-enum": "error",
|
||||
"react-hooks/rules-of-hooks": "error",
|
||||
"react/jsx-tag-spacing": [
|
||||
"error",
|
||||
{
|
||||
"beforeSelfClosing": "always"
|
||||
}
|
||||
],
|
||||
"react/prop-types": 0,
|
||||
"react/jsx-no-bind": 0,
|
||||
"sort-imports": "off",
|
||||
"import/no-duplicates": "error",
|
||||
"import/order": "off",
|
||||
"simple-import-sort/imports": [
|
||||
"error",
|
||||
{
|
||||
"groups": [
|
||||
[
|
||||
"^\\u0000"
|
||||
],
|
||||
[
|
||||
"^[^.]"
|
||||
],
|
||||
[
|
||||
"^@prokyon?\\w"
|
||||
],
|
||||
[
|
||||
"^api?\\w",
|
||||
"^app?\\w",
|
||||
"^components?\\w",
|
||||
"^constants?\\w",
|
||||
"^features?\\w",
|
||||
"^hooks?\\w",
|
||||
"^localization?\\w",
|
||||
"^pages?\\w",
|
||||
"^utils?\\w",
|
||||
"^types?\\w"
|
||||
],
|
||||
[
|
||||
"^\\."
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue