Skip to content

Commit

Permalink
update eslint to 9.*, and redo a couple things that are required to s…
Browse files Browse the repository at this point in the history
…upport it
  • Loading branch information
djahandarie committed Dec 28, 2024
1 parent 00bf5fc commit 330a375
Show file tree
Hide file tree
Showing 16 changed files with 12,847 additions and 9,643 deletions.
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 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

0 comments on commit 330a375

Please sign in to comment.