deploy: current vibn theia state
Made-with: Cursor
This commit is contained in:
29
configs/base.eslintrc.json
Normal file
29
configs/base.eslintrc.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"sourceType": "module",
|
||||
"ecmaVersion": 6,
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"plugins": [
|
||||
"@theia",
|
||||
"@typescript-eslint",
|
||||
"@typescript-eslint/tslint",
|
||||
"import",
|
||||
"no-null",
|
||||
"eslint-plugin-deprecation",
|
||||
"eslint-plugin-react",
|
||||
"eslint-plugin-no-unsanitized"
|
||||
],
|
||||
"env": {
|
||||
"browser": true,
|
||||
"mocha": true,
|
||||
"node": true
|
||||
},
|
||||
"ignorePatterns": [
|
||||
"node_modules",
|
||||
"lib"
|
||||
]
|
||||
}
|
||||
30
configs/base.tsconfig.json
Normal file
30
configs/base.tsconfig.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"compilerOptions": {
|
||||
"skipLibCheck": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitOverride": true,
|
||||
"noEmitOnError": false,
|
||||
"noImplicitThis": true,
|
||||
"noUnusedLocals": true,
|
||||
"strictNullChecks": true,
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"importHelpers": true,
|
||||
"downlevelIteration": true,
|
||||
"resolveJsonModule": true,
|
||||
"useDefineForClassFields": false,
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "Node",
|
||||
"target": "ES2023",
|
||||
"jsx": "react",
|
||||
"lib": [
|
||||
"ES2023",
|
||||
"DOM",
|
||||
"DOM.AsyncIterable"
|
||||
],
|
||||
"sourceMap": true
|
||||
}
|
||||
}
|
||||
12
configs/build.eslintrc.json
Normal file
12
configs/build.eslintrc.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"extends": [
|
||||
"./base.eslintrc.json",
|
||||
"./errors.eslintrc.json"
|
||||
],
|
||||
"parserOptions": {
|
||||
"lib": [
|
||||
"ES2023",
|
||||
"DOM"
|
||||
]
|
||||
}
|
||||
}
|
||||
179
configs/errors.eslintrc.json
Normal file
179
configs/errors.eslintrc.json
Normal file
@@ -0,0 +1,179 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/eslintrc",
|
||||
"rules": {
|
||||
"@typescript-eslint/consistent-type-definitions": "error",
|
||||
"@typescript-eslint/indent": "off",
|
||||
"@typescript-eslint/no-explicit-any": "error",
|
||||
"@typescript-eslint/quotes": [
|
||||
"error",
|
||||
"single",
|
||||
{
|
||||
"avoidEscape": true
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/semi": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"@typescript-eslint/type-annotation-spacing": "error",
|
||||
"arrow-body-style": [
|
||||
"error",
|
||||
"as-needed"
|
||||
],
|
||||
"arrow-parens": [
|
||||
"error",
|
||||
"as-needed"
|
||||
],
|
||||
"camelcase": "off",
|
||||
"comma-dangle": "off",
|
||||
"curly": "error",
|
||||
"eol-last": "error",
|
||||
"eqeqeq": [
|
||||
"error",
|
||||
"smart"
|
||||
],
|
||||
"guard-for-in": "error",
|
||||
"id-blacklist": "off",
|
||||
"id-denylist": [
|
||||
"error",
|
||||
"await"
|
||||
],
|
||||
"id-match": "off",
|
||||
"max-len": [
|
||||
"error",
|
||||
{
|
||||
"code": 180
|
||||
}
|
||||
],
|
||||
"no-duplicate-imports": "error",
|
||||
"no-magic-numbers": "off",
|
||||
"no-multiple-empty-lines": [
|
||||
"error",
|
||||
{
|
||||
"max": 1
|
||||
}
|
||||
],
|
||||
"no-new-wrappers": "error",
|
||||
"no-null/no-null": "error",
|
||||
"no-shadow": "off",
|
||||
"no-shadow-restricted-names": "error",
|
||||
"@typescript-eslint/no-shadow": [
|
||||
"error",
|
||||
{
|
||||
"hoist": "all"
|
||||
}
|
||||
],
|
||||
"no-tabs": "error",
|
||||
"no-throw-literal": "error",
|
||||
"no-trailing-spaces": "error",
|
||||
"no-underscore-dangle": "off",
|
||||
"no-unreachable": "error",
|
||||
"no-unused-expressions": "error",
|
||||
"no-var": "error",
|
||||
"no-void": "error",
|
||||
"one-var": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"prefer-const": [
|
||||
"error",
|
||||
{
|
||||
"destructuring": "all"
|
||||
}
|
||||
],
|
||||
"radix": "off",
|
||||
"space-before-function-paren": [
|
||||
"error",
|
||||
{
|
||||
"anonymous": "always",
|
||||
"named": "never",
|
||||
"asyncArrow": "always"
|
||||
}
|
||||
],
|
||||
"spaced-comment": [
|
||||
"error",
|
||||
"always",
|
||||
{
|
||||
"exceptions": [
|
||||
"*",
|
||||
"+",
|
||||
"-",
|
||||
"/"
|
||||
]
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/tslint/config": [
|
||||
"error",
|
||||
{
|
||||
"rules": {
|
||||
"file-header": [
|
||||
true,
|
||||
{
|
||||
"allow-single-line-comments": true,
|
||||
"match": "SPDX-License-Identifier: EPL-2\\.0 OR GPL-2\\.0-only WITH Classpath-exception-2\\.0"
|
||||
}
|
||||
],
|
||||
"jsdoc-format": [
|
||||
true,
|
||||
"check-multiline-start"
|
||||
],
|
||||
"one-line": [
|
||||
true,
|
||||
"check-open-brace",
|
||||
"check-catch",
|
||||
"check-else",
|
||||
"check-whitespace"
|
||||
],
|
||||
"typedef": [
|
||||
true,
|
||||
"call-signature",
|
||||
"property-declaration"
|
||||
],
|
||||
"whitespace": [
|
||||
true,
|
||||
"check-branch",
|
||||
"check-decl",
|
||||
"check-operator",
|
||||
"check-separator",
|
||||
"check-type"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"@theia/annotation-check": "error",
|
||||
"@theia/localization-check": "error",
|
||||
"@theia/no-src-import": "error",
|
||||
"@theia/runtime-import-check": "error",
|
||||
"@theia/shared-dependencies": "error",
|
||||
"import/no-extraneous-dependencies": "error",
|
||||
"import/no-dynamic-require": "error",
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
".",
|
||||
"./",
|
||||
"..",
|
||||
"../"
|
||||
]
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"**/*.{spec,espec,slow-spec}.{js,ts,tsx}"
|
||||
],
|
||||
"rules": {
|
||||
"@theia/runtime-import-check": "off",
|
||||
"@theia/shared-dependencies": "off",
|
||||
"import/no-extraneous-dependencies": "off",
|
||||
"no-unused-expressions": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"**/electron-{node,main}/**"
|
||||
],
|
||||
"rules": {
|
||||
"import/no-dynamic-require": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
7
configs/license-check-config.json
Normal file
7
configs/license-check-config.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"project": "ecd.theia",
|
||||
"inputFile": "package-lock.json",
|
||||
"batch": 50,
|
||||
"timeout": 240,
|
||||
"summary": "license-check-summary.txt"
|
||||
}
|
||||
32
configs/merge.typedoc.json
Normal file
32
configs/merge.typedoc.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"$schema": "https://typedoc.org/schema.json",
|
||||
"entryPointStrategy": "merge",
|
||||
"entryPoints": [
|
||||
"../gh-pages/packages/*.json"
|
||||
],
|
||||
"out": "../gh-pages/docs/next",
|
||||
"readme": "../README.md",
|
||||
"favicon": "../logo/favicon.png",
|
||||
"hideGenerator": true,
|
||||
"navigation": {
|
||||
"includeFolders": false,
|
||||
},
|
||||
"navigationLinks": {
|
||||
"Eclipse Theia Website": "https://theia-ide.org/",
|
||||
"GitHub": "https://github.com/eclipse-theia/theia"
|
||||
},
|
||||
"searchInDocuments": true,
|
||||
"projectDocuments": [
|
||||
"../doc/Migration.md",
|
||||
"../doc/Plugin-API.md",
|
||||
"../doc/api-management.md",
|
||||
"../doc/api-testing.md",
|
||||
"../doc/Developing.md",
|
||||
"../doc/Testing.md",
|
||||
"../doc/code-organization.md",
|
||||
"../doc/coding-guidelines.md",
|
||||
],
|
||||
"headings": {
|
||||
"document": true
|
||||
}
|
||||
}
|
||||
8
configs/mocharc.yml
Normal file
8
configs/mocharc.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
require:
|
||||
- 'ignore-styles'
|
||||
- 'reflect-metadata/Reflect'
|
||||
- '@theia/test-setup'
|
||||
reporter: 'spec'
|
||||
watch-files:
|
||||
- '**/*.js'
|
||||
exit: true
|
||||
17
configs/nyc.json
Normal file
17
configs/nyc.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"src/typings",
|
||||
"src/**/*.spec.ts"
|
||||
],
|
||||
"reporter": [
|
||||
"html",
|
||||
"lcov"
|
||||
],
|
||||
"extension": [
|
||||
".ts"
|
||||
],
|
||||
"all": true
|
||||
}
|
||||
18
configs/package.typedoc.json
Normal file
18
configs/package.typedoc.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://typedoc.org/schema.json",
|
||||
"entryPointStrategy": "expand",
|
||||
"exclude": [
|
||||
"**/*spec.ts",
|
||||
"**/*spec.tsx",
|
||||
"**/*test.ts",
|
||||
"**/*test.tsx",
|
||||
"**/src/**/test/**",
|
||||
"**/src/**/tests/**",
|
||||
"**/src/**/typings/**",
|
||||
],
|
||||
"hideGenerator": true,
|
||||
"searchInComments": true,
|
||||
"skipErrorChecking": true,
|
||||
"commentStyle": "all",
|
||||
"logLevel": "Error"
|
||||
}
|
||||
10
configs/warnings.eslintrc.json
Normal file
10
configs/warnings.eslintrc.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"plugins": [
|
||||
"deprecation"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/await-thenable": "warn",
|
||||
"no-return-await": "warn",
|
||||
"deprecation/deprecation": "warn"
|
||||
}
|
||||
}
|
||||
29
configs/xss.eslintrc.json
Normal file
29
configs/xss.eslintrc.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"extends": ["plugin:no-unsanitized/DOM"],
|
||||
"plugins": ["no-unsanitized", "react"],
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"no-unsanitized/method": [
|
||||
"warn", {
|
||||
"escape": {
|
||||
"methods": ["DOMPurify.sanitize"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"no-unsanitized/property": [
|
||||
"warn", {
|
||||
"escape": {
|
||||
"methods": ["DOMPurify.sanitize"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"no-eval": "warn",
|
||||
"no-implied-eval": "warn",
|
||||
"react/no-danger-with-children": "warn",
|
||||
"react/no-danger": "warn"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user