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
+8
View File
@@ -6,12 +6,20 @@
"commonjs": true, "commonjs": true,
"es2021": true "es2021": true
}, },
"parser": "@babel/eslint-parser",
"parserOptions": { "parserOptions": {
"ecmaVersion": "latest", "ecmaVersion": "latest",
"sourceType": "module", "sourceType": "module",
"ecmaFeatures": { "ecmaFeatures": {
"impliedStrict": true, "impliedStrict": true,
"jsx": true "jsx": true
},
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-env"],
"parserOpts": {
"plugins": ["importAssertions"]
}
} }
}, },
"globals": { "globals": {
+3421 -13
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -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",
+3 -3
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 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};