Skip to content

Commit 3bef25c

Browse files
Bump @github/prettier-config from 0.0.4 to 0.0.6 (#96)
* 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]>
1 parent df859b6 commit 3bef25c

20 files changed

+364
-364
lines changed

.eslintrc.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,34 @@
66
module.exports = {
77
extends: ['eslint:recommended', 'plugin:github/recommended'],
88
parserOptions: {
9-
ecmaVersion: 'latest'
9+
ecmaVersion: 'latest',
1010
},
1111
env: {
1212
commonjs: true,
13-
node: true
13+
node: true,
1414
},
1515
rules: {
1616
'import/no-commonjs': 'off',
1717
'no-shadow': 'off',
1818
'no-unused-vars': [
1919
'error',
2020
{
21-
varsIgnorePattern: '^_'
22-
}
23-
]
21+
varsIgnorePattern: '^_',
22+
},
23+
],
2424
},
2525
overrides: [
2626
{
2727
files: ['**/*.test.js'],
2828
env: {
29-
jest: true
30-
}
29+
jest: true,
30+
},
3131
},
3232
{
3333
files: ['.eslintrc.js'],
3434
rules: {
35-
'filenames/match-regex': 'off'
36-
}
37-
}
38-
]
35+
'filenames/match-regex': 'off',
36+
},
37+
},
38+
],
3939
}

docs/rules/no-deprecated-colors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const ThemeGetExample = styled.div`
8484
function ExampleComponent() {
8585
const styles = {
8686
// Enabling `checkAllStrings` will find deprecated colors used like this:
87-
color: 'text.primary'
87+
color: 'text.primary',
8888
}
8989
return <Box sx={styles}>Hello</Box>
9090
}

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@changesets/changelog-github": "^0.4.0",
4141
"@changesets/cli": "^2.16.0",
4242
"@github/markdownlint-github": "^0.6.0",
43-
"@github/prettier-config": "0.0.4",
43+
"@github/prettier-config": "0.0.6",
4444
"@primer/primitives": "^7.14.0",
4545
"eslint": "^8.42.0",
4646
"eslint-plugin-github": "^4.10.1",

src/configs/components.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ const components = flattenComponents({
99
Text: 'span',
1010
TextInput: {
1111
Action: 'button',
12-
self: 'input'
12+
self: 'input',
1313
},
1414
Select: {
1515
Option: 'option',
16-
self: 'select'
16+
self: 'select',
1717
},
1818
TabNav: {
19-
self: 'nav'
20-
}
19+
self: 'nav',
20+
},
2121
})
2222

2323
module.exports = components

src/configs/recommended.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ module.exports = {
44
parserOptions: {
55
sourceType: 'module',
66
ecmaFeatures: {
7-
jsx: true
8-
}
7+
jsx: true,
8+
},
99
},
1010
plugins: ['primer-react', 'github'],
1111
extends: ['plugin:github/react'],
@@ -15,14 +15,14 @@ module.exports = {
1515
'primer-react/no-system-props': 'warn',
1616
'primer-react/a11y-tooltip-interactive-trigger': 'error',
1717
'primer-react/new-color-css-vars': 'error',
18-
'primer-react/a11y-explicit-heading': 'error'
18+
'primer-react/a11y-explicit-heading': 'error',
1919
},
2020
settings: {
2121
github: {
22-
components
22+
components,
2323
},
2424
'jsx-a11y': {
25-
components
26-
}
27-
}
25+
components,
26+
},
27+
},
2828
}

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ module.exports = {
55
'no-system-props': require('./rules/no-system-props'),
66
'a11y-tooltip-interactive-trigger': require('./rules/a11y-tooltip-interactive-trigger'),
77
'new-color-css-vars': require('./rules/new-color-css-vars'),
8-
'a11y-explicit-heading': require('./rules/a11y-explicit-heading')
8+
'a11y-explicit-heading': require('./rules/a11y-explicit-heading'),
99
},
1010
configs: {
11-
recommended: require('./configs/recommended')
12-
}
11+
recommended: require('./configs/recommended'),
12+
},
1313
}

src/rules/__tests__/a11y-explicit-heading.test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const ruleTester = new RuleTester({
66
ecmaVersion: 'latest',
77
sourceType: 'module',
88
ecmaFeatures: {
9-
jsx: true
10-
}
11-
}
9+
jsx: true,
10+
},
11+
},
1212
})
1313

1414
ruleTester.run('a11y-explicit-heading', rule, {
@@ -42,19 +42,19 @@ ruleTester.run('a11y-explicit-heading', rule, {
4242
>
4343
Passed spread props
4444
</Heading>
45-
`
45+
`,
4646
],
4747
invalid: [
4848
{
4949
code: `import {Heading} from '@primer/react';
5050
<Heading>Heading without "as"</Heading>`,
51-
errors: [{messageId: 'nonExplicitHeadingLevel'}]
51+
errors: [{messageId: 'nonExplicitHeadingLevel'}],
5252
},
5353
{
5454
code: `import {Heading} from '@primer/react';
5555
<Heading as="span">Heading component used as "span"</Heading>
5656
`,
57-
errors: [{messageId: 'invalidAsValue'}]
58-
}
59-
]
57+
errors: [{messageId: 'invalidAsValue'}],
58+
},
59+
],
6060
})

src/rules/__tests__/a11y-tooltip-interactive-trigger.test.js

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const ruleTester = new RuleTester({
66
ecmaVersion: 'latest',
77
sourceType: 'module',
88
ecmaFeatures: {
9-
jsx: true
10-
}
11-
}
9+
jsx: true,
10+
},
11+
},
1212
})
1313

1414
ruleTester.run('non-interactive-tooltip-trigger', rule, {
@@ -66,17 +66,17 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
6666
Product
6767
</Link>
6868
</Tooltip>
69-
`
69+
`,
7070
],
7171
invalid: [
7272
{
7373
code: `import {Tooltip} from '@primer/react';<Tooltip type="description" text="supportive text" direction="e"><button>button1</button><button>button2</button></Tooltip>
7474
`,
7575
errors: [
7676
{
77-
messageId: 'singleChild'
78-
}
79-
]
77+
messageId: 'singleChild',
78+
},
79+
],
8080
},
8181
{
8282
code: `
@@ -87,9 +87,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
8787
`,
8888
errors: [
8989
{
90-
messageId: 'nonInteractiveTrigger'
91-
}
92-
]
90+
messageId: 'nonInteractiveTrigger',
91+
},
92+
],
9393
},
9494
{
9595
code: `
@@ -99,9 +99,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
9999
</Tooltip>`,
100100
errors: [
101101
{
102-
messageId: 'nonInteractiveTrigger'
103-
}
104-
]
102+
messageId: 'nonInteractiveTrigger',
103+
},
104+
],
105105
},
106106
{
107107
code: `
@@ -111,9 +111,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
111111
</Tooltip>`,
112112
errors: [
113113
{
114-
messageId: 'nonInteractiveLink'
115-
}
116-
]
114+
messageId: 'nonInteractiveLink',
115+
},
116+
],
117117
},
118118
{
119119
code: `
@@ -123,9 +123,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
123123
</Tooltip>`,
124124
errors: [
125125
{
126-
messageId: 'nonInteractiveLink'
127-
}
128-
]
126+
messageId: 'nonInteractiveLink',
127+
},
128+
],
129129
},
130130
{
131131
code: `
@@ -135,9 +135,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
135135
</Tooltip>`,
136136
errors: [
137137
{
138-
messageId: 'nonInteractiveInput'
139-
}
140-
]
138+
messageId: 'nonInteractiveInput',
139+
},
140+
],
141141
},
142142
{
143143
code: `
@@ -147,9 +147,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
147147
</Tooltip>`,
148148
errors: [
149149
{
150-
messageId: 'nonInteractiveInput'
151-
}
152-
]
150+
messageId: 'nonInteractiveInput',
151+
},
152+
],
153153
},
154154
{
155155
code: `
@@ -159,9 +159,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
159159
</Tooltip>`,
160160
errors: [
161161
{
162-
messageId: 'nonInteractiveTrigger'
163-
}
164-
]
162+
messageId: 'nonInteractiveTrigger',
163+
},
164+
],
165165
},
166166
{
167167
code: `
@@ -171,9 +171,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
171171
</Tooltip>`,
172172
errors: [
173173
{
174-
messageId: 'nonInteractiveTrigger'
175-
}
176-
]
174+
messageId: 'nonInteractiveTrigger',
175+
},
176+
],
177177
},
178178
{
179179
code: `
@@ -183,9 +183,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
183183
</Tooltip>`,
184184
errors: [
185185
{
186-
messageId: 'nonInteractiveInput'
187-
}
188-
]
186+
messageId: 'nonInteractiveInput',
187+
},
188+
],
189189
},
190190
{
191191
code: `
@@ -197,9 +197,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
197197
</Tooltip>`,
198198
errors: [
199199
{
200-
messageId: 'nonInteractiveTrigger'
201-
}
202-
]
200+
messageId: 'nonInteractiveTrigger',
201+
},
202+
],
203203
},
204204
{
205205
code: `import {Tooltip, Button} from '@primer/react';
@@ -210,9 +210,9 @@ ruleTester.run('non-interactive-tooltip-trigger', rule, {
210210
</Tooltip>`,
211211
errors: [
212212
{
213-
messageId: 'nonInteractiveLink'
214-
}
215-
]
216-
}
217-
]
213+
messageId: 'nonInteractiveLink',
214+
},
215+
],
216+
},
217+
],
218218
})

0 commit comments

Comments
 (0)