@debbl/eslint-config 0.0.51
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 +17 -0
- package/package.json +31 -0
package/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const { isPackageExists } = require("local-pkg");
|
|
2
|
+
|
|
3
|
+
const isReact = isPackageExists("react");
|
|
4
|
+
const isVue = isPackageExists("vue");
|
|
5
|
+
const isSolid = isPackageExists("solid-js");
|
|
6
|
+
const isPrettier = isPackageExists("prettier");
|
|
7
|
+
const isTailwindCSS = isPackageExists("tailwindcss");
|
|
8
|
+
|
|
9
|
+
module.exports = {
|
|
10
|
+
extends: [
|
|
11
|
+
isReact ? "@debbl/eslint-config-react" : null,
|
|
12
|
+
isVue ? "@debbl/eslint-config-vue" : null,
|
|
13
|
+
isSolid ? "@debbl/eslint-config-solid" : null,
|
|
14
|
+
isTailwindCSS ? "@debbl/eslint-config-tailwindcss" : null,
|
|
15
|
+
isPrettier ? "@debbl/eslint-config-prettier" : null,
|
|
16
|
+
],
|
|
17
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@debbl/eslint-config",
|
|
3
|
+
"version": "0.0.51",
|
|
4
|
+
"description": "",
|
|
5
|
+
"author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://github.com/Debbl/eslint-config",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"eslint-config"
|
|
10
|
+
],
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"index.js"
|
|
14
|
+
],
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"eslint": ">=8.24.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"eslint": "^8.47.0"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@debbl/eslint-config-prettier": "0.0.51",
|
|
23
|
+
"@debbl/eslint-config-solid": "0.0.51",
|
|
24
|
+
"@debbl/eslint-config-react": "0.0.51",
|
|
25
|
+
"@debbl/eslint-config-vue": "0.0.51",
|
|
26
|
+
"@debbl/eslint-config-tailwindcss": "0.0.51"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
30
|
+
}
|
|
31
|
+
}
|