create-airbnb-x-config 0.1.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # create-airbnb-x-config
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Monorepo setup added
package/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Nisharg Shah
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/index.ts ADDED
@@ -0,0 +1,21 @@
1
+ import prompts from 'prompts';
2
+
3
+ const getCLI = async () => {
4
+ const response = await prompts({
5
+ type: 'number',
6
+ name: 'value',
7
+ message: 'How old are you?',
8
+ validate: (value) => (value < 18 ? `Nightclub is 18+ only` : true),
9
+ });
10
+
11
+ console.log(response); // => { value: 24 }
12
+ };
13
+
14
+ getCLI()
15
+ .then(() => {
16
+ return;
17
+ })
18
+ // eslint-disable-next-line unicorn/prefer-top-level-await
19
+ .catch(() => {
20
+ // noop
21
+ });
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "create-airbnb-x-config",
3
+ "version": "0.1.0",
4
+ "description": "Airbnb Extended Config CLI",
5
+ "keywords": [
6
+ "eslint",
7
+ "airbnb",
8
+ "eslint config cli",
9
+ "eslint config cli x",
10
+ "eslint config cli extended",
11
+ "airbnb cli",
12
+ "airbnb config",
13
+ "airbnb config cli",
14
+ "airbnb config cli x",
15
+ "airbnb config cli extended"
16
+ ],
17
+ "bugs": {
18
+ "url": "https://github.com/NishargShah/eslint-config-airbnb-extended/issues"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/NishargShah/eslint-config-airbnb-extended.git",
23
+ "directory": "packages/create-airbnb-x-config"
24
+ },
25
+ "license": "MIT",
26
+ "author": "Nisharg Shah <nishargshah3101@gmail.com>",
27
+ "type": "commonjs",
28
+ "main": "dist/index.js",
29
+ "types": "dist/index.d.ts",
30
+ "dependencies": {
31
+ "prompts": "^2.4.2"
32
+ },
33
+ "devDependencies": {
34
+ "@types/prompts": "^2.4.9",
35
+ "typescript": "^5.8.2"
36
+ },
37
+ "scripts": {
38
+ "build": "",
39
+ "typecheck": "tsc --noEmit"
40
+ }
41
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "target": "ES6",
5
+ "module": "CommonJS",
6
+ "lib": ["dom", "dom.iterable", "esnext"],
7
+ "strict": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "esModuleInterop": true,
10
+ "moduleResolution": "node",
11
+ "resolveJsonModule": true,
12
+ "isolatedModules": true,
13
+ "declaration": true
14
+ },
15
+ "include": ["**/*.ts", "**/*.tsx", "**/*.mjs", "**/*.mts"],
16
+ "exclude": ["node_modules", "dist"]
17
+ }