mirror of
https://github.com/valentineus/webos-service-types.git
synced 2025-04-28 00:41:24 +03:00
Initialized project structure
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
314b15c0d4
commit
0757cbbf4d
16
.editorconfig
Normal file
16
.editorconfig
Normal file
@ -0,0 +1,16 @@
|
||||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
tab_width = 2
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.json]
|
||||
indent_size = 2
|
||||
indent_style = space
|
279
.eslintrc.json
Normal file
279
.eslintrc.json
Normal file
@ -0,0 +1,279 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"airbnb-base",
|
||||
"airbnb-base/legacy",
|
||||
"eslint:all",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
||||
"plugin:import/errors",
|
||||
"plugin:import/recommended",
|
||||
"plugin:import/typescript",
|
||||
"plugin:import/warnings",
|
||||
"plugin:prettier/recommended",
|
||||
"plugin:unicorn/recommended",
|
||||
"prettier",
|
||||
"prettier/@typescript-eslint",
|
||||
"prettier/unicorn",
|
||||
"xo",
|
||||
"xo-typescript",
|
||||
"xo/browser",
|
||||
"xo/esnext"
|
||||
],
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2020,
|
||||
"project": "tsconfig.json",
|
||||
"sourceType": "module",
|
||||
"tsconfigRootDir": "."
|
||||
},
|
||||
"plugins": [
|
||||
"@typescript-eslint",
|
||||
"import",
|
||||
"prettier",
|
||||
"unicorn"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/explicit-function-return-type": [
|
||||
"error",
|
||||
{
|
||||
"allowExpressions": false,
|
||||
"allowHigherOrderFunctions": false,
|
||||
"allowTypedFunctionExpressions": false
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/explicit-member-accessibility": "error",
|
||||
"@typescript-eslint/indent": [
|
||||
"error",
|
||||
2,
|
||||
{
|
||||
"SwitchCase": 1
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/interface-name-prefix": [
|
||||
"error",
|
||||
{
|
||||
"allowUnderscorePrefix": false,
|
||||
"prefixWithI": "always"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-empty-interface": "warn",
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"@typescript-eslint/no-inferrable-types": "off",
|
||||
"@typescript-eslint/no-magic-numbers": "off",
|
||||
"@typescript-eslint/no-namespace": "off",
|
||||
"@typescript-eslint/no-type-alias": [
|
||||
"error",
|
||||
{
|
||||
"allowAliases": "in-unions",
|
||||
"allowCallbacks": "always",
|
||||
"allowConditionalTypes": "always",
|
||||
"allowConstructors": "never",
|
||||
"allowLiterals": "never",
|
||||
"allowMappedTypes": "never",
|
||||
"allowTupleTypes": "in-unions"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-untyped-public-signature": [
|
||||
"error",
|
||||
{
|
||||
"ignoredMethods": [
|
||||
"constructor"
|
||||
]
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/quotes": [
|
||||
"error",
|
||||
"double"
|
||||
],
|
||||
"@typescript-eslint/require-await": "warn",
|
||||
"@typescript-eslint/semi": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"@typescript-eslint/strict-boolean-expressions": [
|
||||
"error",
|
||||
{
|
||||
"ignoreRhs": true
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/typedef": [
|
||||
"error",
|
||||
{
|
||||
"arrayDestructuring": true,
|
||||
"arrowParameter": true,
|
||||
"memberVariableDeclaration": true,
|
||||
"objectDestructuring": true,
|
||||
"parameter": true,
|
||||
"propertyDeclaration": true,
|
||||
"variableDeclaration": true
|
||||
}
|
||||
],
|
||||
"arrow-parens": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"camelcase": "off",
|
||||
"capitalized-comments": "off",
|
||||
"class-methods-use-this": "off",
|
||||
"comma-dangle": [
|
||||
"error",
|
||||
{
|
||||
"arrays": "always-multiline",
|
||||
"exports": "always-multiline",
|
||||
"functions": "never",
|
||||
"imports": "always-multiline",
|
||||
"objects": "always-multiline"
|
||||
}
|
||||
],
|
||||
"comma-spacing": [
|
||||
"error",
|
||||
{
|
||||
"after": true,
|
||||
"before": false
|
||||
}
|
||||
],
|
||||
"eslint-comments/disable-enable-pair": "off",
|
||||
"eslint-comments/no-unused-disable": "off",
|
||||
"eslint-comments/no-use": "off",
|
||||
"function-call-argument-newline": "off",
|
||||
"id-length": "warn",
|
||||
"import/default": "off",
|
||||
"import/extensions": [
|
||||
"error",
|
||||
"ignorePackages",
|
||||
{
|
||||
"js": "never",
|
||||
"jsx": "never",
|
||||
"ts": "never",
|
||||
"tsx": "never",
|
||||
"vue": "never"
|
||||
}
|
||||
],
|
||||
"import/named": "off",
|
||||
"import/namespace": "off",
|
||||
"import/no-cycle": [
|
||||
"error",
|
||||
{
|
||||
"maxDepth": 2
|
||||
}
|
||||
],
|
||||
"import/no-extraneous-dependencies": [
|
||||
"error",
|
||||
{
|
||||
"devDependencies": true
|
||||
}
|
||||
],
|
||||
"import/no-named-as-default-member": "off",
|
||||
"import/order": [
|
||||
"error",
|
||||
{
|
||||
"groups": [
|
||||
[
|
||||
"builtin",
|
||||
"external"
|
||||
],
|
||||
[
|
||||
"internal",
|
||||
"parent",
|
||||
"sibling",
|
||||
"index"
|
||||
],
|
||||
"unknown"
|
||||
],
|
||||
"newlines-between": "always"
|
||||
}
|
||||
],
|
||||
"indent": "off",
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"lines-around-comment": "off",
|
||||
"lines-between-class-members": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"max-len": [
|
||||
"error",
|
||||
{
|
||||
"code": 180
|
||||
}
|
||||
],
|
||||
"max-lines": [
|
||||
"error",
|
||||
450
|
||||
],
|
||||
"max-lines-per-function": [
|
||||
"error",
|
||||
{
|
||||
"IIFEs": false,
|
||||
"max": 100,
|
||||
"skipBlankLines": false,
|
||||
"skipComments": true
|
||||
}
|
||||
],
|
||||
"max-statements": "off",
|
||||
"multiline-comment-style": "off",
|
||||
"new-cap": "warn",
|
||||
"no-console": "warn",
|
||||
"no-magic-numbers": "off",
|
||||
"no-multiple-empty-lines": [
|
||||
"error",
|
||||
{
|
||||
"max": 1,
|
||||
"maxEOF": 1
|
||||
}
|
||||
],
|
||||
"no-process-env": "off",
|
||||
"no-tabs": "off",
|
||||
"no-ternary": "off",
|
||||
"no-undefined": "off",
|
||||
"no-underscore-dangle": [
|
||||
"error",
|
||||
{
|
||||
"allowAfterSuper": false,
|
||||
"allowAfterThis": true,
|
||||
"enforceInMethodNames": false
|
||||
}
|
||||
],
|
||||
"no-unused-vars": "off",
|
||||
"object-curly-newline": "off",
|
||||
"object-curly-spacing": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"prettier/prettier": "error",
|
||||
"quotes": "off",
|
||||
"semi": "off",
|
||||
"sort-imports": [
|
||||
"error",
|
||||
{
|
||||
"ignoreCase": false,
|
||||
"ignoreDeclarationSort": true,
|
||||
"ignoreMemberSort": false
|
||||
}
|
||||
],
|
||||
"sort-keys": "warn",
|
||||
"space-before-function-paren": "off",
|
||||
"unicorn/filename-case": [
|
||||
"error",
|
||||
{
|
||||
"cases": {
|
||||
"kebabCase": true,
|
||||
"pascalCase": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"unicorn/prevent-abbreviations": "off"
|
||||
}
|
||||
}
|
9
.gitignore
vendored
9
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
### Linux ###
|
||||
|
||||
*~
|
||||
|
||||
# temporary files which can be created if a process still has a handle open of a deleted file
|
||||
@ -14,6 +15,7 @@
|
||||
.nfs*
|
||||
|
||||
### macOS ###
|
||||
|
||||
# General
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
@ -42,6 +44,7 @@ Temporary Items
|
||||
.apdisk
|
||||
|
||||
### Node ###
|
||||
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
@ -119,9 +122,6 @@ typings/
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
|
||||
# rollup.js default build output
|
||||
dist/
|
||||
|
||||
# Uncomment the public line if your project uses Gatsby
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
|
||||
@ -148,6 +148,7 @@ tmp/
|
||||
temp/
|
||||
|
||||
### VisualStudioCode ###
|
||||
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
@ -155,10 +156,12 @@ temp/
|
||||
!.vscode/extensions.json
|
||||
|
||||
### VisualStudioCode Patch ###
|
||||
|
||||
# Ignore all local history of files
|
||||
.history
|
||||
|
||||
### Windows ###
|
||||
|
||||
# Windows thumbnail cache files
|
||||
Thumbs.db
|
||||
Thumbs.db:encryptable
|
||||
|
17
.prettierrc.json
Normal file
17
.prettierrc.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"arrowParens": "always",
|
||||
"bracketSpacing": true,
|
||||
"endOfLine": "lf",
|
||||
"htmlWhitespaceSensitivity": "strict",
|
||||
"jsxBracketSameLine": true,
|
||||
"jsxSingleQuote": false,
|
||||
"printWidth": 160,
|
||||
"proseWrap": "preserve",
|
||||
"quoteProps": "consistent",
|
||||
"semi": true,
|
||||
"singleQuote": false,
|
||||
"tabWidth": 4,
|
||||
"trailingComma": "es5",
|
||||
"useTabs": true,
|
||||
"vueIndentScriptAndStyle": false
|
||||
}
|
9
.vscode/settings.json
vendored
Normal file
9
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
},
|
||||
"editor.formatOnPaste": false,
|
||||
"editor.formatOnSave": false,
|
||||
"editor.formatOnType": false,
|
||||
"eslint.enable": true
|
||||
}
|
0
dist/index.d.ts
vendored
Normal file
0
dist/index.d.ts
vendored
Normal file
19
package.json
19
package.json
@ -5,5 +5,22 @@
|
||||
"main": "index.js",
|
||||
"repository": "git@code.valentineus.link:webos-service-types.git",
|
||||
"author": "Valentin Popov <info@valentineus.link>",
|
||||
"license": "MIT"
|
||||
"license": "MIT",
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^2.18.0",
|
||||
"@typescript-eslint/parser": "^2.18.0",
|
||||
"cross-env": "^7.0.0",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-config-airbnb-base": "^14.0.0",
|
||||
"eslint-config-prettier": "^6.10.0",
|
||||
"eslint-config-xo": "^0.27.2",
|
||||
"eslint-config-xo-typescript": "^0.24.1",
|
||||
"eslint-plugin-import": "^2.20.0",
|
||||
"eslint-plugin-prettier": "^3.1.2",
|
||||
"eslint-plugin-unicorn": "^15.0.1",
|
||||
"prettier": "^1.19.1",
|
||||
"tslib": "^1.10.0",
|
||||
"typescript": "^3.7.5"
|
||||
}
|
||||
}
|
||||
|
19
tsconfig.json
Normal file
19
tsconfig.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"moduleResolution": "Node",
|
||||
"newLine": "lf",
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"resolveJsonModule": true,
|
||||
"strict": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
],
|
||||
"include": [
|
||||
"dist/**/*"
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user