Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Update all user-facing dependencies #1714

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

735 changes: 0 additions & 735 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .htmlvalidate.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"elements": [
"html5"
]
}
}
4 changes: 1 addition & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo "Husky pre-commit hook"
npx lint-staged
2 changes: 1 addition & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@
"@stylistic/string-quotes": "single",
"@stylistic/unit-case": "lower"
}
}
}
5 changes: 3 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"dbaeumer.vscode-eslint",
"html-validate.vscode-html-validate",
"stylelint.vscode-stylelint"
"stylelint.vscode-stylelint",
"codeandstuff.package-json-upgrade"
]
}
}
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"runtimeArgs": [
"run",
"test:unit",
"--",
"--"
// "test/text-source-range.test.js" // Replace and uncomment this line to run a single test file
],
"runtimeExecutable": "npm",
Expand All @@ -17,4 +17,4 @@
"type": "node"
}
]
}
}
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"source.addMissingImports": "explicit",
"source.organizeImports": "explicit",
"source.fixAll.eslint": "explicit"
},
}
},
"[typescript]": {
"editor.codeActionsOnSave": {
"source.addMissingImports": "never",
"source.organizeImports": "never",
"source.fixAll.eslint": "explicit"
},
}
},
"eslint.format.enable": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The generated `ext/manfiest.json` should not be committed.
Linting rules are defined for a few types of files, and validation is performed as part of the standard tests
run by `npm test` and the continuous integration process.

- [.eslintrc.json](.eslintrc.json) rules are used for JavaScript files.
- [eslint.config.js](eslint.config.js) rules are used for JavaScript files.
- [.stylelintrc.json](.stylelintrc.json) rules are used for CSS files.
- [.htmlvalidate.json](.htmlvalidate.json) rules are used for HTML files.

Expand Down
128 changes: 96 additions & 32 deletions dev/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,102 @@
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"api-map": ["../types/ext/api-map"],
"anki-templates": ["../types/ext/anki-templates"],
"anki-templates-internal": ["../types/ext/anki-templates-internal"],
"cache-map": ["../types/ext/cache-map"],
"core": ["../types/ext/core"],
"css-style-applier": ["../types/ext/css-style-applier"],
"database": ["../types/ext/database"],
"dictionary": ["../types/ext/dictionary"],
"dictionary-data": ["../types/ext/dictionary-data"],
"dictionary-data-util": ["../types/ext/dictionary-data-util"],
"dictionary-database": ["../types/ext/dictionary-database"],
"dictionary-importer": ["../types/ext/dictionary-importer"],
"dictionary-importer-media-loader": ["../types/ext/dictionary-importer-media-loader"],
"dynamic-property": ["../types/ext/dynamic-property"],
"error": ["../types/ext/error"],
"event-listener-collection": ["../types/ext/event-listener-collection"],
"japanese-util": ["../types/ext/japanese-util"],
"language": ["../types/ext/language"],
"language-descriptors": ["../types/ext/language-descriptors"],
"CJK-util": ["../types/ext/CJK-util"],
"ext/json-schema": ["../types/ext/json-schema"],
"language-transformer": ["../types/ext/language-transformer"],
"language-transformer-internal": ["../types/ext/language-transformer-internal"],
"log": ["../types/ext/log"],
"settings": ["../types/ext/settings"],
"structured-content": ["../types/ext/structured-content"],
"translator": ["../types/ext/translator"],
"translation": ["../types/ext/translation"],
"translation-internal": ["../types/ext/translation-internal"],
"dev/*": ["../types/dev/*"],
"rollup/parseAst": ["../types/other/rollup-parse-ast"],
"chai": ["../node_modules/@vitest/expect/dist/chai.d.cts"]
"api-map": [
"../types/ext/api-map"
],
"anki-templates": [
"../types/ext/anki-templates"
],
"anki-templates-internal": [
"../types/ext/anki-templates-internal"
],
"cache-map": [
"../types/ext/cache-map"
],
"core": [
"../types/ext/core"
],
"css-style-applier": [
"../types/ext/css-style-applier"
],
"database": [
"../types/ext/database"
],
"dictionary": [
"../types/ext/dictionary"
],
"dictionary-data": [
"../types/ext/dictionary-data"
],
"dictionary-data-util": [
"../types/ext/dictionary-data-util"
],
"dictionary-database": [
"../types/ext/dictionary-database"
],
"dictionary-importer": [
"../types/ext/dictionary-importer"
],
"dictionary-importer-media-loader": [
"../types/ext/dictionary-importer-media-loader"
],
"dynamic-property": [
"../types/ext/dynamic-property"
],
"error": [
"../types/ext/error"
],
"event-listener-collection": [
"../types/ext/event-listener-collection"
],
"japanese-util": [
"../types/ext/japanese-util"
],
"language": [
"../types/ext/language"
],
"language-descriptors": [
"../types/ext/language-descriptors"
],
"CJK-util": [
"../types/ext/CJK-util"
],
"ext/json-schema": [
"../types/ext/json-schema"
],
"language-transformer": [
"../types/ext/language-transformer"
],
"language-transformer-internal": [
"../types/ext/language-transformer-internal"
],
"log": [
"../types/ext/log"
],
"settings": [
"../types/ext/settings"
],
"structured-content": [
"../types/ext/structured-content"
],
"translator": [
"../types/ext/translator"
],
"translation": [
"../types/ext/translation"
],
"translation-internal": [
"../types/ext/translation-internal"
],
"dev/*": [
"../types/dev/*"
],
"rollup/parseAst": [
"../types/other/rollup-parse-ast"
],
"chai": [
"../node_modules/@vitest/expect/dist/chai.d.cts"
]
},
"types": [
"node",
Expand Down
Loading
Loading