Skip to content

build: migrate to ES Modules #187

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
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
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
plugins: [],
plugins: ["unicorn"],
reportUnusedDisableDirectives: true,
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
Expand Down Expand Up @@ -81,6 +81,7 @@ module.exports = {
{ allowArgumentsExplicitlyTypedAsAny: true },
],
"@typescript-eslint/no-this-alias": "off",
"unicorn/prefer-module": "error",
},
overrides: [
{
Expand All @@ -97,6 +98,7 @@ module.exports = {
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/unbound-method": "warn",
"unicorn/prefer-module": "off",
},
},
{
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
"source.organizeImports": true
}
},
"editor.rulers": [72, 80, 120]
"editor.rulers": [72, 80, 120],
"javascript.preferences.importModuleSpecifierEnding": "js",
"typescript.preferences.importModuleSpecifierEnding": "js",
"typescript.preferences.importModuleSpecifier": "project-relative"
}
196 changes: 196 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading