seafile-js 0.2.238 → 0.2.239

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/.eslintrc.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es6": true
5
+ },
6
+ "extends": ["react-app", "eslint:recommended"],
7
+ "parser": "@babel/eslint-parser",
8
+ "parserOptions": {
9
+ "babelOptions": {
10
+ "presets": [
11
+ ["babel-preset-react-app",false],
12
+ "babel-preset-react-app/prod"
13
+ ]
14
+ },
15
+ "ecmaFeatures": {
16
+ "experimentalObjectRestSpread": true,
17
+ "jsx": true
18
+ },
19
+ "sourceType": "module"
20
+ },
21
+ "plugins": ["react"],
22
+ "rules": {
23
+ // enbale console.log
24
+ "no-console": "off",
25
+ // enable declare variable in if
26
+ "no-cond-assign": "off",
27
+ // enable declare variable width var
28
+ "no-var": "off",
29
+ // enable declare in case
30
+ "no-case-declarations": "off",
31
+ // enable redeclare variable
32
+ "no-redeclare": "off",
33
+ "indent": ["warn", 2, {
34
+ "SwitchCase": 1,
35
+ "ignoreComments": false
36
+ }],
37
+ "linebreak-style": ["warn", "unix"],
38
+ "quotes": ["warn", "single"],
39
+ "semi": ["warn", "always"],
40
+ "no-unreachable": "warn",
41
+ "no-class-assign": "warn",
42
+ "no-unused-vars": "warn",
43
+ "no-useless-escape": "off",
44
+ "no-irregular-whitespace": "warn",
45
+ "no-trailing-spaces": "warn",
46
+ "react/jsx-indent": ["warn", 2],
47
+ "eol-last": "error",
48
+ "space-before-function-paren": ["warn", {"named": "never"}],
49
+ "array-bracket-spacing": ["warn", "never"],
50
+ "object-curly-spacing": ["warn", "always"],
51
+ "spaced-comment": "warn",
52
+ "keyword-spacing": ["warn", {"before": true}],
53
+ "space-infix-ops": "error",
54
+ "key-spacing": ["error", { "beforeColon": false }],
55
+ "arrow-spacing": ["error", { "before": true, "after": true }],
56
+ "comma-spacing": ["error", { "before": false, "after": true }],
57
+ "no-duplicate-imports": "error",
58
+ "one-var": ["error", "never"],
59
+ "brace-style": "error",
60
+ "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
61
+ "no-multi-spaces": "error",
62
+ "react/jsx-closing-tag-location": "error"
63
+ }
64
+ }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.238",
3
+ "version": "0.2.239",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {
7
- "axios": "^1.11.0",
7
+ "axios": "^1.15.0",
8
8
  "form-data": "^4.0.4"
9
9
  },
10
10
  "scripts": {
@@ -16,10 +16,10 @@
16
16
  "license": "ISC",
17
17
  "devDependencies": {
18
18
  "@babel/cli": "7.22.15",
19
- "@babel/core": "^7.16.0",
19
+ "@babel/core": "7.22.17",
20
+ "@babel/eslint-parser": "7.22.15",
20
21
  "@babel/preset-env": "^7.26.0",
21
- "babel-eslint": "10.1.0",
22
- "eslint": "^9.13.0",
22
+ "eslint": "8.49.0",
23
23
  "jest": "^29.7.0"
24
24
  }
25
25
  }
package/.eslintrc.js DELETED
@@ -1,31 +0,0 @@
1
- module.exports = {
2
- "env": {
3
- "node": true
4
- },
5
- "extends": [
6
- "eslint:recommended"
7
- ],
8
- "parserOptions": {
9
- "sourceType": "module"
10
- },
11
- "rules": {
12
- "strict": 0,
13
- "indent": [
14
- "error",
15
- 2
16
- ],
17
- "linebreak-style": [
18
- "error",
19
- "unix"
20
- ],
21
- "quotes": [
22
- "error",
23
- "single"
24
- ],
25
- "semi": [
26
- "error",
27
- "always"
28
- ],
29
- "no-console": "off"
30
- }
31
- }