-
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.
Merge pull request #106 from droppyjs/feat/convert-to-module
Convert to module
- Loading branch information
Showing
60 changed files
with
8,455 additions
and
7,351 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
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 was deleted.
Oops, something went wrong.
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,12 @@ | ||
/** @type {import('jest').Config} */ | ||
const config = { | ||
roots: ["<rootDir>/lib", "<rootDir>/tests"], | ||
transform: { | ||
"^.+\\.(js|jsx|mjs)$": "babel-jest", | ||
}, | ||
testRegex: "(/tests/.*.(test|spec)).(mjs|jsx?|tsx?)$", | ||
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", "mjs"], | ||
coveragePathIgnorePatterns: ["(tests/.*.mock).(jsx?|tsx?)$"], | ||
}; | ||
|
||
export default config; |
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
/** @type {import('jest').Config} */ | ||
const config = { | ||
projects: ["<rootDir>/packages/*/jest.config.mjs"], | ||
coverageDirectory: "<rootDir>/coverage/", | ||
}; | ||
|
||
export default config; |
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.