Add linter parser for import assert json

This commit is contained in:
Natsumi
2022-12-26 10:53:51 +13:00
parent db0fc10dda
commit 6ad9ad04fe
4 changed files with 3515 additions and 96 deletions

View File

@@ -1,83 +1,91 @@
{
"root": true,
"extends": ["eslint:all", "prettier"],
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
"root": true,
"extends": ["eslint:all", "prettier"],
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"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
}
}

3434
html/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -22,6 +22,9 @@
},
"homepage": "https://github.com/pypy-vrc/VRCX#readme",
"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-kr": "^4.5.12",
"animate.css": "^4.1.1",

View File

@@ -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 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};