Skip to content

Commit

Permalink
Upgraded all packages but webpack (#502)
Browse files Browse the repository at this point in the history
* Upgraded all packages but webpack

* Added parameter for audio_codec in VideoConvertParams (#498)

* Fixed docs

* Added changes from master
  • Loading branch information
RatGabi authored Dec 6, 2023
1 parent 41575fd commit bd14dae
Show file tree
Hide file tree
Showing 31 changed files with 21,461 additions and 16,907 deletions.
143 changes: 143 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
module.exports = {
"env": {
"browser": true,
"node": true
},
"extends": [
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"@typescript-eslint"
],
"root": true,
"rules": {
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": [
"camelCase",
"UPPER_CASE",
"PascalCase"
],
"leadingUnderscore": "allow",
"trailingUnderscore": "forbid"
}
],
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowTaggedTemplates": true,
"allowShortCircuit": true
}
],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/semi": "off",
"@typescript-eslint/triple-slash-reference": [
"error",
{
"path": "always",
"types": "prefer-import",
"lib": "always"
}
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"brace-style": [
"error",
"1tbs"
],
"comma-dangle": [
"error",
{
"objects": "always-multiline",
"arrays": "always-multiline",
"functions": "never"
}
],
"curly": [
"error",
"multi-line"
],
"eol-last": "error",
"eqeqeq": [
"error",
"smart"
],
"id-denylist": [
"error",
"any",
"Number",
"number",
"String",
"string",
"Boolean",
"boolean",
"Undefined",
"undefined"
],
"id-match": "error",
"import/no-deprecated": "off",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "off",
"jsdoc/newline-after-description": "off",
"new-parens": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-constant-condition": "error",
"no-control-regex": "error",
"no-duplicate-imports": "error",
"no-empty": "error",
"no-empty-function": "off",
"no-eval": "error",
"no-fallthrough": "error",
"no-invalid-regexp": "error",
"no-multiple-empty-lines": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-return-await": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"no-unused-labels": "error",
"no-unused-vars": "off",
"no-var": "error",
"one-var": [
"error",
"never"
],
"radix": "error",
"space-in-parens": [
"error",
"never"
],
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
],
"use-isnan": "error"
}
};
2 changes: 1 addition & 1 deletion examples/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ app.get('/*', (req, res) => {
return;
}

const config = yaml.safeLoad(filesContent.config);
const config = yaml.load(filesContent.config);
let tpl = template + '';
tpl = tpl.replace('{{title}}', config.name || '')
.replace('{{content}}', filesContent.index)
Expand Down
5 changes: 2 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = {
name: 'filestack-js',
collectCoverage: true,
clearMocks: true,
projects: [
Expand All @@ -11,11 +10,11 @@ module.exports = {
moduleFileExtensions: ['js'],
}, {
displayName: 'Browser',
testMatch: ['<rootDir>/src/**/*.browser.spec.ts'],
testMatch: ['<rootDir>/build/main/**/*.spec.browser.js'],
clearMocks: true,
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/build/main/jest_browser_setup.js'],
setupFiles: ['jest-localstorage-mock'],
testMatch: [ '<rootDir>/build/main/**/*.spec.browser.js'],
moduleFileExtensions: ['js'],
moduleNameMapper: {
"\(.*)\\.node": "$1.browser",
Expand Down
Loading

0 comments on commit bd14dae

Please sign in to comment.