@pengzhanbo/eslint-config-react 0.2.8 → 0.2.10
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/dist/index.cjs +20 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.mjs +18 -0
- package/package.json +34 -12
- package/index.js +0 -16
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = {
|
|
4
|
+
extends: [
|
|
5
|
+
"plugin:react/recommended",
|
|
6
|
+
"plugin:react-hooks/recommended",
|
|
7
|
+
"@pengzhanbo/eslint-config-ts"
|
|
8
|
+
],
|
|
9
|
+
settings: {
|
|
10
|
+
react: {
|
|
11
|
+
version: "17.0"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
rules: {
|
|
15
|
+
"jsx-quotes": ["error", "prefer-double"],
|
|
16
|
+
"react/react-in-jsx-scope": "off"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
module.exports = index;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var index = {
|
|
2
|
+
extends: [
|
|
3
|
+
"plugin:react/recommended",
|
|
4
|
+
"plugin:react-hooks/recommended",
|
|
5
|
+
"@pengzhanbo/eslint-config-ts"
|
|
6
|
+
],
|
|
7
|
+
settings: {
|
|
8
|
+
react: {
|
|
9
|
+
version: "17.0"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
rules: {
|
|
13
|
+
"jsx-quotes": ["error", "prefer-double"],
|
|
14
|
+
"react/react-in-jsx-scope": "off"
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { index as default };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const index = {
|
|
2
|
+
extends: [
|
|
3
|
+
"plugin:react/recommended",
|
|
4
|
+
"plugin:react-hooks/recommended",
|
|
5
|
+
"@pengzhanbo/eslint-config-ts"
|
|
6
|
+
],
|
|
7
|
+
settings: {
|
|
8
|
+
react: {
|
|
9
|
+
version: "17.0"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
rules: {
|
|
13
|
+
"jsx-quotes": ["error", "prefer-double"],
|
|
14
|
+
"react/react-in-jsx-scope": "off"
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { index as default };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pengzhanbo/eslint-config-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://github.com/pengzhanbo/configs",
|
|
6
|
+
"homepage": "https://github.com/pengzhanbo/configs#readme",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git@github.com:pengzhanbo/configs.git",
|
|
@@ -14,25 +14,45 @@
|
|
|
14
14
|
"react",
|
|
15
15
|
"typescript"
|
|
16
16
|
],
|
|
17
|
-
"
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "dist/index.cjs",
|
|
19
|
+
"module": "dist/index.mjs",
|
|
20
|
+
"types": "dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"require": "./dist/index.cjs",
|
|
24
|
+
"import": "./dist/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
18
28
|
"files": [
|
|
19
|
-
"
|
|
29
|
+
"dist"
|
|
20
30
|
],
|
|
31
|
+
"unbuild": {
|
|
32
|
+
"entries": [
|
|
33
|
+
"./src/index"
|
|
34
|
+
],
|
|
35
|
+
"declaration": true,
|
|
36
|
+
"clean": true,
|
|
37
|
+
"rollup": {
|
|
38
|
+
"emitCJS": true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
21
41
|
"peerDependencies": {
|
|
22
42
|
"eslint": ">=7.4.0"
|
|
23
43
|
},
|
|
24
44
|
"dependencies": {
|
|
25
|
-
"@pengzhanbo/eslint-config-ts": "0.2.
|
|
26
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
27
|
-
"@typescript-eslint/parser": "^5.
|
|
45
|
+
"@pengzhanbo/eslint-config-ts": "0.2.10",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
|
47
|
+
"@typescript-eslint/parser": "^5.41.0",
|
|
28
48
|
"eslint-config-prettier": "^8.5.0",
|
|
29
49
|
"eslint-config-standard": "^17.0.0",
|
|
30
50
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
31
51
|
"eslint-plugin-html": "^7.1.0",
|
|
32
52
|
"eslint-plugin-import": "^2.26.0",
|
|
33
|
-
"eslint-plugin-jsonc": "^2.
|
|
53
|
+
"eslint-plugin-jsonc": "^2.5.0",
|
|
34
54
|
"eslint-plugin-n": "^15.3.0",
|
|
35
|
-
"eslint-plugin-promise": "^6.1.
|
|
55
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
36
56
|
"eslint-plugin-react": "^7.31.10",
|
|
37
57
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
38
58
|
"eslint-plugin-unicorn": "^43.0.2",
|
|
@@ -41,11 +61,13 @@
|
|
|
41
61
|
"yaml-eslint-parser": "^1.1.0"
|
|
42
62
|
},
|
|
43
63
|
"devDependencies": {
|
|
44
|
-
"eslint": "^8.
|
|
64
|
+
"eslint": "^8.26.0",
|
|
45
65
|
"react": "^18.2.0",
|
|
46
|
-
"typescript": "^4.8.4"
|
|
66
|
+
"typescript": "^4.8.4",
|
|
67
|
+
"unbuild": "^0.8.11"
|
|
47
68
|
},
|
|
48
69
|
"scripts": {
|
|
49
|
-
"
|
|
70
|
+
"build": "unbuild",
|
|
71
|
+
"stub": "unbuild --stub"
|
|
50
72
|
}
|
|
51
73
|
}
|
package/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: [
|
|
3
|
-
'plugin:react/recommended',
|
|
4
|
-
'plugin:react-hooks/recommended',
|
|
5
|
-
'@pengzhanbo/eslint-config-ts',
|
|
6
|
-
],
|
|
7
|
-
settings: {
|
|
8
|
-
react: {
|
|
9
|
-
version: '17.0',
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
rules: {
|
|
13
|
-
'jsx-quotes': ['error', 'prefer-double'],
|
|
14
|
-
'react/react-in-jsx-scope': 'off',
|
|
15
|
-
},
|
|
16
|
-
}
|