@ririd/eslint-config 0.1.4 → 0.2.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/index.js +1 -2
- package/package.json +11 -11
package/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
const { isPackageExists } = require('local-pkg')
|
|
3
3
|
|
|
4
4
|
const isTS = isPackageExists('typescript')
|
|
5
|
-
const isReact = isPackageExists('react')
|
|
6
5
|
|
|
7
6
|
if (!isTS)
|
|
8
7
|
console.warn('[@ririd/eslint-confit] Typescript is not install, fallback to JS only.')
|
|
@@ -11,6 +10,6 @@ if (!isTS)
|
|
|
11
10
|
module.exports = {
|
|
12
11
|
extends: [
|
|
13
12
|
isTS ? '@ririd/eslint-config-ts' : '@ririd/eslint-config-js',
|
|
14
|
-
|
|
13
|
+
'@ririd/eslint-config-react',
|
|
15
14
|
],
|
|
16
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ririd/eslint-config",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Riri's ESLint config",
|
|
5
5
|
"author": "Daydreamer Riri <Daydreamerriri@outloot.com> (https://github.com/Daydreamer-riri/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,25 +16,25 @@
|
|
|
16
16
|
"eslint": ">=7.4.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
20
|
-
"@typescript-eslint/parser": "^5.
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
20
|
+
"@typescript-eslint/parser": "^5.55.0",
|
|
21
21
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
22
22
|
"eslint-plugin-html": "^7.1.0",
|
|
23
23
|
"eslint-plugin-import": "^2.27.5",
|
|
24
|
-
"eslint-plugin-jsonc": "^2.
|
|
24
|
+
"eslint-plugin-jsonc": "^2.7.0",
|
|
25
25
|
"eslint-plugin-n": "^15.6.1",
|
|
26
26
|
"eslint-plugin-promise": "^6.1.1",
|
|
27
|
-
"eslint-plugin-unicorn": "^
|
|
27
|
+
"eslint-plugin-unicorn": "^46.0.0",
|
|
28
28
|
"eslint-plugin-vue": "^9.9.0",
|
|
29
29
|
"eslint-plugin-yml": "^1.5.0",
|
|
30
|
-
"jsonc-eslint-parser": "^2.
|
|
30
|
+
"jsonc-eslint-parser": "^2.2.0",
|
|
31
31
|
"local-pkg": "^0.4.3",
|
|
32
|
-
"yaml-eslint-parser": "^1.
|
|
33
|
-
"@ririd/eslint-config-js": "0.1
|
|
34
|
-
"@ririd/eslint-config-
|
|
35
|
-
"@ririd/eslint-config-
|
|
32
|
+
"yaml-eslint-parser": "^1.2.0",
|
|
33
|
+
"@ririd/eslint-config-js": "0.2.1",
|
|
34
|
+
"@ririd/eslint-config-ts": "0.2.1",
|
|
35
|
+
"@ririd/eslint-config-react": "0.2.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"eslint": "^8.
|
|
38
|
+
"eslint": "^8.36.0"
|
|
39
39
|
}
|
|
40
40
|
}
|