Skip to content

Commit

Permalink
Bump @github/prettier-config from 0.0.4 to 0.0.6 (#96)
Browse files Browse the repository at this point in the history
* Bump @github/prettier-config from 0.0.4 to 0.0.6

Bumps [@github/prettier-config](https://github.com/github/prettier-config) from 0.0.4 to 0.0.6.
- [Release notes](https://github.com/github/prettier-config/releases)
- [Commits](github/prettier-config@v0.0.4...v0.0.6)

---
updated-dependencies:
- dependency-name: "@github/prettier-config"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: run format

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh Black <[email protected]>
  • Loading branch information
dependabot[bot] and joshblack authored Oct 12, 2023
1 parent df859b6 commit 3bef25c
Show file tree
Hide file tree
Showing 20 changed files with 364 additions and 364 deletions.
22 changes: 11 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@
module.exports = {
extends: ['eslint:recommended', 'plugin:github/recommended'],
parserOptions: {
ecmaVersion: 'latest'
ecmaVersion: 'latest',
},
env: {
commonjs: true,
node: true
node: true,
},
rules: {
'import/no-commonjs': 'off',
'no-shadow': 'off',
'no-unused-vars': [
'error',
{
varsIgnorePattern: '^_'
}
]
varsIgnorePattern: '^_',
},
],
},
overrides: [
{
files: ['**/*.test.js'],
env: {
jest: true
}
jest: true,
},
},
{
files: ['.eslintrc.js'],
rules: {
'filenames/match-regex': 'off'
}
}
]
'filenames/match-regex': 'off',
},
},
],
}
2 changes: 1 addition & 1 deletion docs/rules/no-deprecated-colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ThemeGetExample = styled.div`
function ExampleComponent() {
const styles = {
// Enabling `checkAllStrings` will find deprecated colors used like this:
color: 'text.primary'
color: 'text.primary',
}
return <Box sx={styles}>Hello</Box>
}
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@changesets/changelog-github": "^0.4.0",
"@changesets/cli": "^2.16.0",
"@github/markdownlint-github": "^0.6.0",
"@github/prettier-config": "0.0.4",
"@github/prettier-config": "0.0.6",
"@primer/primitives": "^7.14.0",
"eslint": "^8.42.0",
"eslint-plugin-github": "^4.10.1",
Expand Down
8 changes: 4 additions & 4 deletions src/configs/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ const components = flattenComponents({
Text: 'span',
TextInput: {
Action: 'button',
self: 'input'
self: 'input',
},
Select: {
Option: 'option',
self: 'select'
self: 'select',
},
TabNav: {
self: 'nav'
}
self: 'nav',
},
})

module.exports = components
14 changes: 7 additions & 7 deletions src/configs/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module.exports = {
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
jsx: true,
},
},
plugins: ['primer-react', 'github'],
extends: ['plugin:github/react'],
Expand All @@ -15,14 +15,14 @@ module.exports = {
'primer-react/no-system-props': 'warn',
'primer-react/a11y-tooltip-interactive-trigger': 'error',
'primer-react/new-color-css-vars': 'error',
'primer-react/a11y-explicit-heading': 'error'
'primer-react/a11y-explicit-heading': 'error',
},
settings: {
github: {
components
components,
},
'jsx-a11y': {
components
}
}
components,
},
},
}
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module.exports = {
'no-system-props': require('./rules/no-system-props'),
'a11y-tooltip-interactive-trigger': require('./rules/a11y-tooltip-interactive-trigger'),
'new-color-css-vars': require('./rules/new-color-css-vars'),
'a11y-explicit-heading': require('./rules/a11y-explicit-heading')
'a11y-explicit-heading': require('./rules/a11y-explicit-heading'),
},
configs: {
recommended: require('./configs/recommended')
}
recommended: require('./configs/recommended'),
},
}
16 changes: 8 additions & 8 deletions src/rules/__tests__/a11y-explicit-heading.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const ruleTester = new RuleTester({
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
}
jsx: true,
},
},
})

ruleTester.run('a11y-explicit-heading', rule, {
Expand Down Expand Up @@ -42,19 +42,19 @@ ruleTester.run('a11y-explicit-heading', rule, {
>
Passed spread props
</Heading>
`
`,
],
invalid: [
{
code: `import {Heading} from '@primer/react';
<Heading>Heading without "as"</Heading>`,
errors: [{messageId: 'nonExplicitHeadingLevel'}]
errors: [{messageId: 'nonExplicitHeadingLevel'}],
},
{
code: `import {Heading} from '@primer/react';
<Heading as="span">Heading component used as "span"</Heading>
`,
errors: [{messageId: 'invalidAsValue'}]
}
]
errors: [{messageId: 'invalidAsValue'}],
},
],
})
84 changes: 42 additions & 42 deletions src/rules/__tests__/a11y-tooltip-interactive-trigger.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const ruleTester = new RuleTester({
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
}
jsx: true,
},
},
})

ruleTester.run('non-interactive-tooltip-trigger', rule, {
Expand Down Expand Up @@ -66,17 +66,17 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
Product
</Link>
</Tooltip>
`
`,
],
invalid: [
{
code: `import {Tooltip} from '@primer/react';<Tooltip type="description" text="supportive text" direction="e"><button>button1</button><button>button2</button></Tooltip>
`,
errors: [
{
messageId: 'singleChild'
}
]
messageId: 'singleChild',
},
],
},
{
code: `
Expand All @@ -87,9 +87,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
`,
errors: [
{
messageId: 'nonInteractiveTrigger'
}
]
messageId: 'nonInteractiveTrigger',
},
],
},
{
code: `
Expand All @@ -99,9 +99,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
</Tooltip>`,
errors: [
{
messageId: 'nonInteractiveTrigger'
}
]
messageId: 'nonInteractiveTrigger',
},
],
},
{
code: `
Expand All @@ -111,9 +111,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
</Tooltip>`,
errors: [
{
messageId: 'nonInteractiveLink'
}
]
messageId: 'nonInteractiveLink',
},
],
},
{
code: `
Expand All @@ -123,9 +123,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
</Tooltip>`,
errors: [
{
messageId: 'nonInteractiveLink'
}
]
messageId: 'nonInteractiveLink',
},
],
},
{
code: `
Expand All @@ -135,9 +135,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
</Tooltip>`,
errors: [
{
messageId: 'nonInteractiveInput'
}
]
messageId: 'nonInteractiveInput',
},
],
},
{
code: `
Expand All @@ -147,9 +147,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
</Tooltip>`,
errors: [
{
messageId: 'nonInteractiveInput'
}
]
messageId: 'nonInteractiveInput',
},
],
},
{
code: `
Expand All @@ -159,9 +159,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
</Tooltip>`,
errors: [
{
messageId: 'nonInteractiveTrigger'
}
]
messageId: 'nonInteractiveTrigger',
},
],
},
{
code: `
Expand All @@ -171,9 +171,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
</Tooltip>`,
errors: [
{
messageId: 'nonInteractiveTrigger'
}
]
messageId: 'nonInteractiveTrigger',
},
],
},
{
code: `
Expand All @@ -183,9 +183,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
</Tooltip>`,
errors: [
{
messageId: 'nonInteractiveInput'
}
]
messageId: 'nonInteractiveInput',
},
],
},
{
code: `
Expand All @@ -197,9 +197,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
</Tooltip>`,
errors: [
{
messageId: 'nonInteractiveTrigger'
}
]
messageId: 'nonInteractiveTrigger',
},
],
},
{
code: `import {Tooltip, Button} from '@primer/react';
Expand All @@ -210,9 +210,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
</Tooltip>`,
errors: [
{
messageId: 'nonInteractiveLink'
}
]
}
]
messageId: 'nonInteractiveLink',
},
],
},
],
})
Loading

0 comments on commit 3bef25c

Please sign in to comment.