Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module.exports = {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
},
settings: {
react: {
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json

# Build outputs
# dist/ # Temporarily commented out to include built files
dist/
build/
*.tgz

# Environment variables
.env
Expand Down
2 changes: 1 addition & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## File Structure

```
semantic-ui-layer/
@patternfly/context-for-ai/
├── src/
│ ├── index.ts # Main entry point
│ ├── types/index.ts # Core type definitions
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> **⚠️ Important**: This is a **codemod tool only**. You do NOT need to import or use any library components. Simply install the package and run the codemod to transform your existing PatternFly components. The library code in this repository is for reference/development purposes only.

**📦 Install from npm**: `npm install -D @patternfly/context-for-ai`
**📦 Install from npm**: `npm install -D @patternfly/context-for-ai`
**🔗 Package**: [@patternfly/context-for-ai on npm](https://www.npmjs.com/package/@patternfly/context-for-ai)

A codemod tool that automatically adds standardized semantic `data-*` attributes to **all PatternFly components** in your codebase, making them AI-friendly and easier for AI tools to understand.
Expand Down Expand Up @@ -188,7 +188,7 @@ npm outdated @patternfly/context-for-ai

```bash
npm update @patternfly/context-for-ai
# or
# or for latest version
npm install -D @patternfly/context-for-ai@latest
```

Expand Down Expand Up @@ -224,19 +224,19 @@ Check the commit history or GitHub releases to see what improvements were made i
### Transform Entire Directory

```bash
jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js --extensions=ts,tsx,js,jsx --parser=tsx src/
npx jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js --extensions=ts,tsx,js,jsx --parser=tsx src/
```

### Transform Specific File

```bash
jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js src/components/MyComponent.tsx
npx jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js src/components/MyComponent.tsx
```

### Preview Changes (Dry Run)

```bash
jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js --dry src/
npx jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js --dry src/
```

### Using the Bash Script
Expand Down
File renamed without changes.
Loading