Skip to content

Commit 238ae9f

Browse files
committed
Changes for MediaURL migration
1 parent 972d418 commit 238ae9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+34153
-6900
lines changed

.eslintrc.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
parser: "@typescript-eslint/parser",
7+
plugins: ["@typescript-eslint", "prettier"],
8+
extends: [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:prettier/recommended",
12+
],
13+
rules: {
14+
"@typescript-eslint/explicit-module-boundary-types": "off",
15+
"@typescript-eslint/no-explicit-any": "off",
16+
"@typescript-eslint/no-empty-function": "off",
17+
"@typescript-eslint/no-var-requires": "off",
18+
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
19+
"prefer-const": ["error", { destructuring: "all" }],
20+
},
21+
};

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In best way to create your own MediaURL addon is by cloning our example addon an
1414

1515
### Cloning the example addon
1616

17-
The best way to start is to clone our [mediaurl-addon-example](https://github.com/mediaurl/mediaurl-addon-example) addon:
17+
The best way to start is to clone our [example addon](https://github.com/mediaurl/addon-example) addon:
1818

1919
```shell
2020
git clone https://github.com/mediaurl/mediaurl-addon-example.git my-addon

package-lock.json

+2,290-5,956
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
"name": "root",
33
"private": true,
44
"devDependencies": {
5-
"@types/node": "^14.14.14",
5+
"@types/node": "^14.14.16",
6+
"@typescript-eslint/eslint-plugin": "^4.11.1",
7+
"@typescript-eslint/parser": "^4.11.1",
8+
"eslint": "^7.16.0",
9+
"eslint-config-prettier": "^7.1.0",
10+
"eslint-plugin-prettier": "^3.3.0",
611
"husky": "^4.3.6",
712
"lerna": "^3.22.1",
813
"lint-staged": "^10.5.3",
914
"prettier": "^2.2.1",
10-
"tslint": "^6.1.3",
1115
"typescript": "^4.1.3"
1216
},
1317
"scripts": {
@@ -20,9 +24,8 @@
2024
}
2125
},
2226
"lint-staged": {
23-
"*.{js,ts,tsx,css,md}": [
24-
"tslint --fix",
25-
"prettier --write",
27+
"*.{js,ts,tsx,css}": [
28+
"eslint --fix",
2629
"git add"
2730
]
2831
}

packages/cache-mongodb/jest.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
preset: "./node_modules/@mediaurl/jest-preset/typescript.js",
3+
};

0 commit comments

Comments
 (0)