@vidispine/eslint-config-base 22.3.0 → 22.3.1-pre.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.js +0 -31
- package/package.json +12 -11
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Add js eslint config
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
1. Add **@vidispine/eslint-config-base** and **eslint (
|
|
7
|
+
1. Add **@vidispine/eslint-config-base** and **eslint (8.x)** as devDependencies,
|
|
8
8
|
2. Extend config in package.json or equivalent file, e.g.:
|
|
9
9
|
|
|
10
10
|
```json
|
package/index.js
CHANGED
|
@@ -39,37 +39,6 @@ module.exports = {
|
|
|
39
39
|
},
|
|
40
40
|
],
|
|
41
41
|
},
|
|
42
|
-
overrides: [
|
|
43
|
-
{
|
|
44
|
-
files: ['*.md'],
|
|
45
|
-
extends: ['plugin:mdx/recommended'],
|
|
46
|
-
rules: {
|
|
47
|
-
'prettier/prettier': [
|
|
48
|
-
2,
|
|
49
|
-
{
|
|
50
|
-
parser: 'markdown',
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
files: ['**/*.md/**'],
|
|
57
|
-
extends: ['plugin:mdx/code-blocks'],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
// Note: mdx/jsx could not be overridden in config-react, so sneaked in here
|
|
61
|
-
files: ['**/*.{md,mdx}/*.{js,jsx}'],
|
|
62
|
-
rules: {
|
|
63
|
-
'no-console': 'off',
|
|
64
|
-
'no-undef': 'off',
|
|
65
|
-
'no-unused-expressions': 'off',
|
|
66
|
-
'no-unused-vars': 'off',
|
|
67
|
-
'padded-blocks': 'off',
|
|
68
|
-
'import/no-extraneous-dependencies': 'off',
|
|
69
|
-
'import/no-duplicates': 'off',
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
42
|
env: {
|
|
74
43
|
browser: true,
|
|
75
44
|
jest: true,
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidispine/eslint-config-base",
|
|
3
|
-
"version": "22.3.
|
|
3
|
+
"version": "22.3.1-pre.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
|
-
"private": false,
|
|
6
5
|
"publishConfig": {
|
|
7
6
|
"access": "public"
|
|
8
7
|
},
|
|
@@ -15,28 +14,30 @@
|
|
|
15
14
|
},
|
|
16
15
|
"main": "index.js",
|
|
17
16
|
"scripts": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
17
|
+
"build": "echo 'No build script'",
|
|
18
|
+
"lint": "eslint . --ext js,md"
|
|
20
19
|
},
|
|
21
20
|
"dependencies": {
|
|
22
|
-
"@vidispine/prettier-config": "22.3.
|
|
21
|
+
"@vidispine/prettier-config": "22.3.1-pre.1",
|
|
23
22
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
24
23
|
"eslint-config-prettier": "^8.3.0",
|
|
25
24
|
"eslint-plugin-import": "^2.25.4",
|
|
26
|
-
"eslint-plugin-mdx": "^1.16.0",
|
|
27
25
|
"eslint-plugin-prettier": "^4.0.0"
|
|
28
26
|
},
|
|
29
27
|
"peerDependencies": {
|
|
30
28
|
"eslint": "^8.0.0"
|
|
31
29
|
},
|
|
32
30
|
"devDependencies": {
|
|
33
|
-
"
|
|
31
|
+
"@vidispine/eslint-config-mdx": "22.3.1-pre.1",
|
|
32
|
+
"@vidispine/prettier-config": "22.3.1-pre.1",
|
|
33
|
+
"eslint": "8.23.1",
|
|
34
|
+
"prettier": "2.7.1"
|
|
34
35
|
},
|
|
35
36
|
"eslintConfig": {
|
|
36
37
|
"extends": [
|
|
37
|
-
"@vidispine/eslint-config-base"
|
|
38
|
+
"@vidispine/eslint-config-base",
|
|
39
|
+
"@vidispine/eslint-config-mdx"
|
|
38
40
|
]
|
|
39
41
|
},
|
|
40
|
-
"prettier": "@vidispine/prettier-config"
|
|
41
|
-
|
|
42
|
-
}
|
|
42
|
+
"prettier": "@vidispine/prettier-config"
|
|
43
|
+
}
|