mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
Add linter parser for import assert json
This commit is contained in:
+88
-80
@@ -1,83 +1,91 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": ["eslint:all", "prettier"],
|
"extends": ["eslint:all", "prettier"],
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"commonjs": true,
|
"commonjs": true,
|
||||||
"es2021": true
|
"es2021": true
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
"parser": "@babel/eslint-parser",
|
||||||
"ecmaVersion": "latest",
|
"parserOptions": {
|
||||||
"sourceType": "module",
|
"ecmaVersion": "latest",
|
||||||
"ecmaFeatures": {
|
"sourceType": "module",
|
||||||
"impliedStrict": true,
|
"ecmaFeatures": {
|
||||||
"jsx": true
|
"impliedStrict": true,
|
||||||
|
"jsx": true
|
||||||
|
},
|
||||||
|
"requireConfigFile": false,
|
||||||
|
"babelOptions": {
|
||||||
|
"presets": ["@babel/preset-env"],
|
||||||
|
"parserOpts": {
|
||||||
|
"plugins": ["importAssertions"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"CefSharp": "readonly",
|
||||||
|
"VRCX": "readonly",
|
||||||
|
"VRCXStorage": "readonly",
|
||||||
|
"SQLite": "readonly",
|
||||||
|
"LogWatcher": "readonly",
|
||||||
|
"Discord": "readonly",
|
||||||
|
"AppApi": "readonly",
|
||||||
|
"SharedVariable": "readonly",
|
||||||
|
"WebApi": "readonly",
|
||||||
|
"AssetBundleCacher": "readonly"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"arrow-body-style": 0,
|
||||||
|
"block-scoped-var": 0,
|
||||||
|
"camelcase": 0,
|
||||||
|
"capitalized-comments": 0,
|
||||||
|
"class-methods-use-this": 0,
|
||||||
|
"complexity": 0,
|
||||||
|
"default-case": 0,
|
||||||
|
"func-names": 0,
|
||||||
|
"func-style": 0,
|
||||||
|
"guard-for-in": 0,
|
||||||
|
"id-length": 0,
|
||||||
|
"line-comment-position": 0,
|
||||||
|
"max-depth": 0,
|
||||||
|
"max-lines": 0,
|
||||||
|
"max-lines-per-function": 0,
|
||||||
|
"max-params": 0,
|
||||||
|
"max-statements": 0,
|
||||||
|
"multiline-comment-style": 0,
|
||||||
|
"new-cap": 0,
|
||||||
|
"no-await-in-loop": 0,
|
||||||
|
"no-console": 0,
|
||||||
|
"no-continue": 0,
|
||||||
|
"no-control-regex": 0,
|
||||||
|
"no-empty": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"allowEmptyCatch": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"no-inline-comments": 0,
|
||||||
|
"no-invalid-this": 0,
|
||||||
|
"no-magic-numbers": 0,
|
||||||
|
"no-negated-condition": 0,
|
||||||
|
"no-plusplus": 0,
|
||||||
|
"no-redeclare": 0,
|
||||||
|
"no-ternary": 0,
|
||||||
|
"no-throw-literal": 0,
|
||||||
|
"no-underscore-dangle": 0,
|
||||||
|
"no-var": 0,
|
||||||
|
"no-void": 0,
|
||||||
|
"no-warning-comments": 0,
|
||||||
|
"one-var": 0,
|
||||||
|
"prefer-arrow-callback": 0,
|
||||||
|
"prefer-const": 0,
|
||||||
|
"prefer-destructuring": 0,
|
||||||
|
"prefer-named-capture-group": 0,
|
||||||
|
"require-unicode-regexp": 0,
|
||||||
|
"sort-imports": 0,
|
||||||
|
"sort-keys": 0,
|
||||||
|
"sort-vars": 0,
|
||||||
|
"strict": 0,
|
||||||
|
"vars-on-top": 0
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"globals": {
|
|
||||||
"CefSharp": "readonly",
|
|
||||||
"VRCX": "readonly",
|
|
||||||
"VRCXStorage": "readonly",
|
|
||||||
"SQLite": "readonly",
|
|
||||||
"LogWatcher": "readonly",
|
|
||||||
"Discord": "readonly",
|
|
||||||
"AppApi": "readonly",
|
|
||||||
"SharedVariable": "readonly",
|
|
||||||
"WebApi": "readonly",
|
|
||||||
"AssetBundleCacher": "readonly"
|
|
||||||
},
|
|
||||||
"rules": {
|
|
||||||
"arrow-body-style": 0,
|
|
||||||
"block-scoped-var": 0,
|
|
||||||
"camelcase": 0,
|
|
||||||
"capitalized-comments": 0,
|
|
||||||
"class-methods-use-this": 0,
|
|
||||||
"complexity": 0,
|
|
||||||
"default-case": 0,
|
|
||||||
"func-names": 0,
|
|
||||||
"func-style": 0,
|
|
||||||
"guard-for-in": 0,
|
|
||||||
"id-length": 0,
|
|
||||||
"line-comment-position": 0,
|
|
||||||
"max-depth": 0,
|
|
||||||
"max-lines": 0,
|
|
||||||
"max-lines-per-function": 0,
|
|
||||||
"max-params": 0,
|
|
||||||
"max-statements": 0,
|
|
||||||
"multiline-comment-style": 0,
|
|
||||||
"new-cap": 0,
|
|
||||||
"no-await-in-loop": 0,
|
|
||||||
"no-console": 0,
|
|
||||||
"no-continue": 0,
|
|
||||||
"no-control-regex": 0,
|
|
||||||
"no-empty": [
|
|
||||||
"error",
|
|
||||||
{
|
|
||||||
"allowEmptyCatch": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"no-inline-comments": 0,
|
|
||||||
"no-invalid-this": 0,
|
|
||||||
"no-magic-numbers": 0,
|
|
||||||
"no-negated-condition": 0,
|
|
||||||
"no-plusplus": 0,
|
|
||||||
"no-redeclare": 0,
|
|
||||||
"no-ternary": 0,
|
|
||||||
"no-throw-literal": 0,
|
|
||||||
"no-underscore-dangle": 0,
|
|
||||||
"no-var": 0,
|
|
||||||
"no-void": 0,
|
|
||||||
"no-warning-comments": 0,
|
|
||||||
"one-var": 0,
|
|
||||||
"prefer-arrow-callback": 0,
|
|
||||||
"prefer-const": 0,
|
|
||||||
"prefer-destructuring": 0,
|
|
||||||
"prefer-named-capture-group": 0,
|
|
||||||
"require-unicode-regexp": 0,
|
|
||||||
"sort-imports": 0,
|
|
||||||
"sort-keys": 0,
|
|
||||||
"sort-vars": 0,
|
|
||||||
"strict": 0,
|
|
||||||
"vars-on-top": 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+3421
-13
File diff suppressed because it is too large
Load Diff
@@ -22,6 +22,9 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/pypy-vrc/VRCX#readme",
|
"homepage": "https://github.com/pypy-vrc/VRCX#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@babel/eslint-parser": "^7.19.1",
|
||||||
|
"@babel/plugin-syntax-import-assertions": "^7.20.0",
|
||||||
|
"@babel/preset-env": "^7.20.2",
|
||||||
"@fontsource/noto-sans-jp": "^4.5.12",
|
"@fontsource/noto-sans-jp": "^4.5.12",
|
||||||
"@fontsource/noto-sans-kr": "^4.5.12",
|
"@fontsource/noto-sans-kr": "^4.5.12",
|
||||||
"animate.css": "^4.1.1",
|
"animate.css": "^4.1.1",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import en from './strings/en.json' assert { type: 'JSON' };
|
import en from './strings/en.json' assert {type: 'JSON'};
|
||||||
// import ja from './strings/ja.json' assert { type: 'JSON' };
|
// import ja from './strings/ja.json' assert { type: 'JSON' };
|
||||||
import zh_TW from './strings/zh_TW.json' assert { type: 'JSON' };
|
import zh_TW from './strings/zh_TW.json' assert {type: 'JSON'};
|
||||||
|
|
||||||
export { en, zh_TW };
|
export {en, zh_TW};
|
||||||
|
|||||||
Reference in New Issue
Block a user