Skip to content

Commit

Permalink
Add rules entry
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 committed Jan 23, 2024
1 parent a4bccb9 commit d29d046
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion plugin/test/file-not-included.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { tester } from '../test-utils'
import rule, { RULE_NAME } from '../src/rules/file-not-included'
import rule, { RULE_NAME } from '../dist/rules/file-not-included'

const code = `import { css } from './panda/css'
import { Circle } from './panda/jsx'
Expand Down
2 changes: 1 addition & 1 deletion plugin/test/no-config-function-in-source.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { tester } from '../test-utils'
import rule, { RULE_NAME } from '../src/rules/no-config-function-in-source'
import rule, { RULE_NAME } from '../dist/rules/no-config-function-in-source'

const imports = `import { defineKeyframes } from '@pandacss/dev';`
const code = `const keyframes = defineKeyframes({
Expand Down
2 changes: 1 addition & 1 deletion plugin/test/no-debug.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import rule, { RULE_NAME } from '../src/rules/no-debug'
import rule, { RULE_NAME } from '../dist/rules/no-debug'
import { tester } from '../test-utils'

const imports = `import { css } from './panda/css';
Expand Down
2 changes: 1 addition & 1 deletion plugin/test/no-dynamic-styling.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { tester } from '../test-utils'
import rule, { RULE_NAME } from '../src/rules/no-dynamic-styling'
import rule, { RULE_NAME } from '../dist/rules/no-dynamic-styling'

const imports = `import { css } from './panda/css'
import { styled, Circle } from './panda/jsx'
Expand Down
2 changes: 1 addition & 1 deletion plugin/test/no-escape-hatch.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getArbitraryValue } from '@pandacss/shared'
import { tester } from '../test-utils'
import rule, { RULE_NAME } from '../src/rules/no-escape-hatch'
import rule, { RULE_NAME } from '../dist/rules/no-escape-hatch'

const imports = `import { css } from './panda/css'
import { Circle } from './panda/jsx'
Expand Down
2 changes: 1 addition & 1 deletion plugin/test/no-hardcoded-color.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { tester } from '../test-utils'
import rule, { RULE_NAME } from '../src/rules/no-hardcoded-color'
import rule, { RULE_NAME } from '../dist/rules/no-hardcoded-color'

const imports = `import { css } from './panda/css'
import { Circle } from './panda/jsx'
Expand Down
2 changes: 1 addition & 1 deletion plugin/test/no-invalid-token-paths.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { tester } from '../test-utils'
import rule, { RULE_NAME } from '../src/rules/no-invalid-token-paths'
import rule, { RULE_NAME } from '../dist/rules/no-invalid-token-paths'

const imports = `import { css } from './panda/css'
import { Circle } from './panda/jsx'
Expand Down
2 changes: 1 addition & 1 deletion plugin/test/no-shorthand-prop.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { tester } from '../test-utils'
import rule, { RULE_NAME } from '../src/rules/no-shorthand-prop'
import rule, { RULE_NAME } from '../dist/rules/no-shorthand-prop'

const imports = `import { css } from './panda/css'
import { Circle } from './panda/jsx'
Expand Down
2 changes: 1 addition & 1 deletion plugin/test/no-unsafe-token-fn-usage.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { tester } from '../test-utils'
import rule, { RULE_NAME } from '../src/rules/no-unsafe-token-fn-usage'
import rule, { RULE_NAME } from '../dist/rules/no-unsafe-token-fn-usage'

const imports = `import { css } from './panda/css';
import { Circle } from './panda/jsx';
Expand Down
2 changes: 1 addition & 1 deletion plugin/test/prefer-atomic-properties.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { tester } from '../test-utils'
import rule, { RULE_NAME } from '../src/rules/prefer-atomic-properties'
import rule, { RULE_NAME } from '../dist/rules/prefer-atomic-properties'

const imports = `import { css } from './panda/css'
import { Circle } from './panda/jsx'
Expand Down
2 changes: 1 addition & 1 deletion plugin/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['src/index.ts', 'src/utils/worker.ts'],
entry: ['src/index.ts', 'src/utils/worker.ts', 'src/rules'],
format: ['esm', 'cjs'],
shims: true,
})

0 comments on commit d29d046

Please sign in to comment.