-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(convert-to-module): convert to module
- Loading branch information
1 parent
b412351
commit bd653bc
Showing
46 changed files
with
6,300 additions
and
4,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/.vscode/ | ||
.vscode/* | ||
!.vscode/extensions.json | ||
dist/ | ||
node_modules | ||
npm-debug.log* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import globals from "globals"; | ||
|
||
import js from "@eslint/js"; | ||
|
||
import babelParser from "@babel/eslint-parser"; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
|
||
{ | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: "module", | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
|
||
// TODO: remove when moved to ES modules in client | ||
$: "readonly", | ||
CodeMirror: "readonly", | ||
Mousetrap: "readonly", | ||
Handlebars: "readonly", | ||
_: "readonly", | ||
fileExtension: "readonly", | ||
screenfull: "readonly", | ||
Uppie: "readonly", | ||
PhotoSwipe: "readonly", | ||
PhotoSwipeUI_Default: "readonly", | ||
pdfjsLib: "readonly", | ||
Plyr: "readonly", | ||
}, | ||
parser: babelParser, | ||
parserOptions: { | ||
requireConfigFile: false, | ||
babelOptions: { | ||
babelrc: false, | ||
configFile: false, | ||
plugins: ["@babel/plugin-syntax-import-assertions"], | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
"no-unused-vars": "warn", | ||
"no-undef": "warn", | ||
}, | ||
}, | ||
{ | ||
ignores: ["packages/svgstore/tests"], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.