Skip to content

Commit

Permalink
trying to set up add style line rule in the demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
beaesguerra committed Dec 11, 2024
1 parent ddb29e9 commit 55000ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-plugin-khan/demo/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ module.exports = {
rootDir: __dirname,
},
],
"@khanacademy/aphrodite-add-style-variable-name": "error"

Check failure on line 25 in packages/eslint-plugin-khan/demo/.eslintrc.js

View workflow job for this annotation

GitHub Actions / Lint, typecheck, and coverage check (ubuntu-latest, 20.x)

Insert `,`

Check failure on line 25 in packages/eslint-plugin-khan/demo/.eslintrc.js

View workflow job for this annotation

GitHub Actions / Lint, typecheck, and coverage check (ubuntu-latest, 20.x)

Insert `,`

Check failure on line 25 in packages/eslint-plugin-khan/demo/.eslintrc.js

View workflow job for this annotation

GitHub Actions / Lint, typecheck, and coverage check (ubuntu-latest, 20.x)

Insert `,`
},
};
6 changes: 6 additions & 0 deletions packages/eslint-plugin-khan/demo/src/foo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import * as React from "react";

Check failure on line 1 in packages/eslint-plugin-khan/demo/src/foo.tsx

View workflow job for this annotation

GitHub Actions / Lint, typecheck, and coverage check (ubuntu-latest, 20.x)

Unable to resolve path to module 'react'

Check failure on line 1 in packages/eslint-plugin-khan/demo/src/foo.tsx

View workflow job for this annotation

GitHub Actions / Lint, typecheck, and coverage check (ubuntu-latest, 20.x)

Unable to resolve path to module 'react'

Check failure on line 1 in packages/eslint-plugin-khan/demo/src/foo.tsx

View workflow job for this annotation

GitHub Actions / Lint, typecheck, and coverage check (ubuntu-latest, 20.x)

Unable to resolve path to module 'react'

function addStyle(str: string) {
// Placeholder example for calling addStyle for aphrodite
}

const div = addStyle("div");

Check failure on line 7 in packages/eslint-plugin-khan/demo/src/foo.tsx

View workflow job for this annotation

GitHub Actions / Lint, typecheck, and coverage check (ubuntu-latest, 20.x)

Variable name "div" does not match tag name "div". Variable name should be "styledDiv"

Check failure on line 7 in packages/eslint-plugin-khan/demo/src/foo.tsx

View workflow job for this annotation

GitHub Actions / Lint, typecheck, and coverage check (ubuntu-latest, 20.x)

Variable name "div" does not match tag name "div". Variable name should be "styledDiv"

Check failure on line 7 in packages/eslint-plugin-khan/demo/src/foo.tsx

View workflow job for this annotation

GitHub Actions / Lint, typecheck, and coverage check (ubuntu-latest, 20.x)

Variable name "div" does not match tag name "div". Variable name should be "styledDiv"

export const Icon = (): React.ReactNode => {
return (
<svg>
Expand Down

0 comments on commit 55000ef

Please sign in to comment.