@rsaf/cli 0.0.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/.prettierrc ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "semi": true,
3
+ "trailingComma": "es5",
4
+ "singleQuote": true,
5
+ "printWidth": 100,
6
+ "tabWidth": 4,
7
+ "useTabs": true,
8
+ "bracketSpacing": true,
9
+ "arrowParens": "avoid",
10
+ "endOfLine": "lf"
11
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Riju
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.
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,36 @@
1
+ import baseConfig from '../../eslint.config.js';
2
+
3
+ export default [
4
+ ...baseConfig,
5
+ {
6
+ // Project-specific overrides
7
+ files: ['**/*.ts'],
8
+ rules: {
9
+ // Add these common useful rules
10
+ semi: ['error', 'always'],
11
+ 'prefer-const': 'error',
12
+ eqeqeq: ['error', 'always'],
13
+
14
+ // TypeScript specific
15
+ '@typescript-eslint/naming-convention': [
16
+ 'error',
17
+ {
18
+ selector: 'variable',
19
+ format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
20
+ },
21
+ {
22
+ selector: 'typeLike',
23
+ format: ['PascalCase'],
24
+ },
25
+ ],
26
+ },
27
+ },
28
+ {
29
+ // Test-specific configuration
30
+ files: ['**/*.test.ts', '**/*.spec.ts'],
31
+ rules: {
32
+ 'no-console': 'off',
33
+ '@typescript-eslint/no-explicit-any': 'off',
34
+ },
35
+ },
36
+ ];
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@rsaf/cli",
3
+ "version": "0.0.1",
4
+ "description": "CLI of rsaf",
5
+ "type": "module",
6
+ "bin": {
7
+ "rsaf": "dist/index.js"
8
+ },
9
+ "keywords": [],
10
+ "author": "Riju Mondal",
11
+ "license": "MIT",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "scripts": {
16
+ "lint": "eslint src --max-warnings=0",
17
+ "lint:fix": "eslint src --fix",
18
+ "type-check": "tsc --noEmit",
19
+ "type-check:watch": "tsc --noEmit --watch",
20
+ "build": "pnpm clean && tsc -b",
21
+ "dev": "tsc -b --watch",
22
+ "clean": "rimraf dist tsconfig.tsbuildinfo",
23
+ "format": "prettier . --write",
24
+ "format:check": "prettier . --check",
25
+ "test": "vitest",
26
+ "test:run": "vitest run",
27
+ "test:coverage": "vitest run --coverage"
28
+ }
29
+ }
package/src/index.ts ADDED
File without changes
package/tsconfig.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+
4
+ "compilerOptions": {
5
+ // Output settings
6
+ "target": "ES2022",
7
+ "module": "NodeNext",
8
+ "moduleResolution": "NodeNext",
9
+
10
+ // Project structure
11
+ "rootDir": "src",
12
+ "outDir": "dist",
13
+
14
+ // Declarations
15
+ "declaration": true,
16
+ "emitDeclarationOnly": false,
17
+
18
+ // Strictness + compatibility
19
+ "strict": true,
20
+ "skipLibCheck": true,
21
+ "esModuleInterop": true,
22
+ "resolveJsonModule": true
23
+ },
24
+
25
+ // Files to include
26
+ "include": ["src"]
27
+ }
@@ -0,0 +1 @@
1
+ {"root":["./src/index.ts"],"version":"5.9.3"}