Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3b7aefa

Browse filesBrowse files
authored
Merge pull request #352 from github/dependabot/npm_and_yarn/github/prettier-config-0.0.6
chore(deps-dev): bump @github/prettier-config from 0.0.4 to 0.0.6
2 parents 932fc5b + 11da082 commit 3b7aefa
Copy full SHA for 3b7aefa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

49 files changed

+438
-438
lines changed

‎.eslintrc.js

Copy file name to clipboard
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = {
22
root: true,
33
parserOptions: {
4-
ecmaVersion: 2020
4+
ecmaVersion: 2020,
55
},
66
env: {
77
es6: true,
8-
node: true
8+
node: true,
99
},
1010
extends: [require.resolve('./lib/configs/recommended'), 'plugin:eslint-plugin/all'],
1111
plugins: ['eslint-plugin'],
@@ -15,6 +15,6 @@ module.exports = {
1515
'i18n-text/no-en': 'off',
1616
'eslint-plugin/prefer-placeholders': 'off',
1717
'eslint-plugin/test-case-shorthand-strings': 'off',
18-
'eslint-plugin/require-meta-docs-url': 'off'
19-
}
18+
'eslint-plugin/require-meta-docs-url': 'off',
19+
},
2020
}

‎lib/configs/browser.js

Copy file name to clipboardExpand all lines: lib/configs/browser.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
env: {
3-
browser: true
3+
browser: true,
44
},
55
plugins: ['github', 'escompat'],
66
extends: ['plugin:escompat/recommended'],
@@ -22,8 +22,8 @@ module.exports = {
2222
'error',
2323
{
2424
selector: "NewExpression[callee.name='URL'][arguments.length=1]",
25-
message: 'Please pass in `window.location.origin` as the 2nd argument to `new URL()`'
26-
}
27-
]
28-
}
25+
message: 'Please pass in `window.location.origin` as the 2nd argument to `new URL()`',
26+
},
27+
],
28+
},
2929
}

‎lib/configs/internal.js

Copy file name to clipboardExpand all lines: lib/configs/internal.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module.exports = {
33
rules: {
44
'github/authenticity-token': 'error',
55
'github/js-class-name': 'error',
6-
'github/no-d-none': 'error'
7-
}
6+
'github/no-d-none': 'error',
7+
},
88
}

‎lib/configs/react.js

Copy file name to clipboardExpand all lines: lib/configs/react.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ module.exports = {
22
parserOptions: {
33
sourceType: 'module',
44
ecmaFeatures: {
5-
jsx: true
6-
}
5+
jsx: true,
6+
},
77
},
88
plugins: ['github', 'jsx-a11y'],
99
extends: ['plugin:jsx-a11y/recommended'],
1010
rules: {
11-
'github/a11y-no-generic-link-text': 'error'
12-
}
11+
'github/a11y-no-generic-link-text': 'error',
12+
},
1313
}

‎lib/configs/recommended.js

Copy file name to clipboardExpand all lines: lib/configs/recommended.js
+12-12Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module.exports = {
22
parserOptions: {
33
ecmaFeatures: {
4-
ecmaVersion: 6
4+
ecmaVersion: 6,
55
},
6-
sourceType: 'module'
6+
sourceType: 'module',
77
},
88
env: {
9-
es6: true
9+
es6: true,
1010
},
1111
plugins: ['github', 'prettier', 'eslint-comments', 'import', 'filenames', 'i18n-text', 'no-only-tests'],
1212
rules: {
@@ -41,8 +41,8 @@ module.exports = {
4141
allowArray: true,
4242
allowArrowFunction: false,
4343
allowLiteral: true,
44-
allowObject: true
45-
}
44+
allowObject: true,
45+
},
4646
],
4747
'import/no-commonjs': 'error',
4848
'import/no-deprecated': 'error',
@@ -89,8 +89,8 @@ module.exports = {
8989
'no-only-tests/no-only-tests': [
9090
'error',
9191
{
92-
block: ['describe', 'it', 'context', 'test', 'tape', 'fixture', 'serial', 'suite']
93-
}
92+
block: ['describe', 'it', 'context', 'test', 'tape', 'fixture', 'serial', 'suite'],
93+
},
9494
],
9595
'no-redeclare': 'error',
9696
'no-regex-spaces': 'error',
@@ -122,13 +122,13 @@ module.exports = {
122122
'use-isnan': 'error',
123123
'valid-typeof': 'error',
124124
camelcase: ['error', {properties: 'always'}],
125-
eqeqeq: ['error', 'smart']
125+
eqeqeq: ['error', 'smart'],
126126
},
127127
settings: {
128128
'import/resolver': {
129129
node: {
130-
extensions: ['.js', '.ts']
131-
}
132-
}
133-
}
130+
extensions: ['.js', '.ts'],
131+
},
132+
},
133+
},
134134
}

‎lib/configs/typescript.js

Copy file name to clipboardExpand all lines: lib/configs/typescript.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ module.exports = {
1616
'@typescript-eslint/explicit-function-return-type': 'off',
1717
'@typescript-eslint/no-non-null-assertion': 'off',
1818
'@typescript-eslint/no-unused-vars': 'error',
19-
'@typescript-eslint/explicit-module-boundary-types': 'off'
20-
}
19+
'@typescript-eslint/explicit-module-boundary-types': 'off',
20+
},
2121
}

‎lib/formatters/stylish-fixes.js

Copy file name to clipboardExpand all lines: lib/formatters/stylish-fixes.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = function (results) {
6565
', ',
6666
warnings,
6767
pluralize(' warning', warnings),
68-
')\n'
68+
')\n',
6969
].join('')
7070
}
7171

‎lib/index.js

Copy file name to clipboardExpand all lines: lib/index.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ module.exports = {
1818
'no-useless-passive': require('./rules/no-useless-passive'),
1919
'prefer-observers': require('./rules/prefer-observers'),
2020
'require-passive-events': require('./rules/require-passive-events'),
21-
'unescaped-html-literal': require('./rules/unescaped-html-literal')
21+
'unescaped-html-literal': require('./rules/unescaped-html-literal'),
2222
},
2323
configs: {
2424
browser: require('./configs/browser'),
2525
internal: require('./configs/internal'),
2626
recommended: require('./configs/recommended'),
2727
typescript: require('./configs/typescript'),
28-
react: require('./configs/react')
29-
}
28+
react: require('./configs/react'),
29+
},
3030
}

‎lib/rules/a11y-no-generic-link-text.js

Copy file name to clipboardExpand all lines: lib/rules/a11y-no-generic-link-text.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ module.exports = {
1616
meta: {
1717
docs: {
1818
description: 'disallow generic link text',
19-
url: require('../url')(module)
19+
url: require('../url')(module),
2020
},
21-
schema: []
21+
schema: [],
2222
},
2323

2424
create(context) {
@@ -46,13 +46,13 @@ module.exports = {
4646
context.report({
4747
node,
4848
message:
49-
'Avoid setting generic link text like `Here`, `Click here`, `Read more`. Make sure that your link text is both descriptive and concise.'
49+
'Avoid setting generic link text like `Here`, `Click here`, `Read more`. Make sure that your link text is both descriptive and concise.',
5050
})
5151
}
5252
if (cleanTextContent && !cleanAriaLabelValue.includes(cleanTextContent)) {
5353
context.report({
5454
node,
55-
message: 'When using ARIA to set a more descriptive text, it must fully contain the visible label.'
55+
message: 'When using ARIA to set a more descriptive text, it must fully contain the visible label.',
5656
})
5757
}
5858
} else {
@@ -61,11 +61,11 @@ module.exports = {
6161
context.report({
6262
node: jsxTextNode,
6363
message:
64-
'Avoid setting generic link text like `Here`, `Click here`, `Read more`. Make sure that your link text is both descriptive and concise.'
64+
'Avoid setting generic link text like `Here`, `Click here`, `Read more`. Make sure that your link text is both descriptive and concise.',
6565
})
6666
}
6767
}
68-
}
68+
},
6969
}
70-
}
70+
},
7171
}

‎lib/rules/array-foreach.js

Copy file name to clipboardExpand all lines: lib/rules/array-foreach.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module.exports = {
33
type: 'suggestion',
44
docs: {
55
description: 'enforce `for..of` loops over `Array.forEach`',
6-
url: require('../url')(module)
6+
url: require('../url')(module),
77
},
8-
schema: []
8+
schema: [],
99
},
1010

1111
create(context) {
@@ -14,7 +14,7 @@ module.exports = {
1414
if (node.callee.property && node.callee.property.name === 'forEach') {
1515
context.report({node, message: 'Prefer for...of instead of Array.forEach'})
1616
}
17-
}
17+
},
1818
}
19-
}
19+
},
2020
}

‎lib/rules/async-currenttarget.js

Copy file name to clipboardExpand all lines: lib/rules/async-currenttarget.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'disallow `event.currentTarget` calls inside of async functions',
6-
url: require('../url')(module)
6+
url: require('../url')(module),
77
},
8-
schema: []
8+
schema: [],
99
},
1010

1111
create(context) {
@@ -22,7 +22,7 @@ module.exports = {
2222
context.report({node, message: 'event.currentTarget inside an async function is error prone'})
2323
}
2424
}
25-
}
25+
},
2626
}
27-
}
27+
},
2828
}

‎lib/rules/async-preventdefault.js

Copy file name to clipboardExpand all lines: lib/rules/async-preventdefault.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'disallow `event.preventDefault` calls inside of async functions',
6-
url: require('../url')(module)
6+
url: require('../url')(module),
77
},
8-
schema: []
8+
schema: [],
99
},
1010

1111
create(context) {
@@ -22,7 +22,7 @@ module.exports = {
2222
context.report({node, message: 'event.preventDefault() inside an async function is error prone'})
2323
}
2424
}
25-
}
25+
},
2626
}
27-
}
27+
},
2828
}

‎lib/rules/authenticity-token.js

Copy file name to clipboardExpand all lines: lib/rules/authenticity-token.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'disallow usage of CSRF tokens in JavaScript',
6-
url: require('../url')(module)
6+
url: require('../url')(module),
77
},
8-
schema: []
8+
schema: [],
99
},
1010

1111
create(context) {
@@ -14,7 +14,7 @@ module.exports = {
1414
context.report({
1515
node,
1616
message:
17-
'Form CSRF tokens (authenticity tokens) should not be created in JavaScript and their values should not be used directly for XHR requests.'
17+
'Form CSRF tokens (authenticity tokens) should not be created in JavaScript and their values should not be used directly for XHR requests.',
1818
})
1919
}
2020
}
@@ -24,7 +24,7 @@ module.exports = {
2424
if (typeof node.value === 'string') {
2525
checkAuthenticityTokenUsage(node, node.value)
2626
}
27-
}
27+
},
2828
}
29-
}
29+
},
3030
}

‎lib/rules/get-attribute.js

Copy file name to clipboardExpand all lines: lib/rules/get-attribute.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ module.exports = {
2222
type: 'problem',
2323
docs: {
2424
description: 'disallow wrong usage of attribute names',
25-
url: require('../url')(module)
25+
url: require('../url')(module),
2626
},
2727
fixable: 'code',
28-
schema: []
28+
schema: [],
2929
},
3030
create(context) {
3131
return {
@@ -44,10 +44,10 @@ module.exports = {
4444
message: 'Attributes should be lowercase and hyphen separated, or part of the SVG whitelist.',
4545
fix(fixer) {
4646
return fixer.replaceText(attributeNameNode, `'${attributeNameNode.value.toLowerCase()}'`)
47-
}
47+
},
4848
})
4949
}
50-
}
50+
},
5151
}
52-
}
52+
},
5353
}

‎lib/rules/js-class-name.js

Copy file name to clipboardExpand all lines: lib/rules/js-class-name.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module.exports = {
33
type: 'suggestion',
44
docs: {
55
description: 'enforce a naming convention for js- prefixed classes',
6-
url: require('../url')(module)
6+
url: require('../url')(module),
77
},
8-
schema: []
8+
schema: [],
99
},
1010

1111
create(context) {
@@ -51,7 +51,7 @@ module.exports = {
5151
checkStringEndsWithJSClassName(quasi, quasi.value.raw)
5252
}
5353
}
54-
}
54+
},
5555
}
56-
}
56+
},
5757
}

‎lib/rules/no-blur.js

Copy file name to clipboardExpand all lines: lib/rules/no-blur.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'disallow usage of `Element.prototype.blur()`',
6-
url: require('../url')(module)
6+
url: require('../url')(module),
77
},
8-
schema: []
8+
schema: [],
99
},
1010
create(context) {
1111
return {
1212
CallExpression(node) {
1313
if (node.callee.property && node.callee.property.name === 'blur') {
1414
context.report({node, message: 'Do not use element.blur(), instead restore the focus of a previous element.'})
1515
}
16-
}
16+
},
1717
}
18-
}
18+
},
1919
}

‎lib/rules/no-d-none.js

Copy file name to clipboardExpand all lines: lib/rules/no-d-none.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'disallow usage the `d-none` CSS class',
6-
url: require('../url')(module)
6+
url: require('../url')(module),
77
},
8-
schema: []
8+
schema: [],
99
},
1010
create(context) {
1111
return {
@@ -21,11 +21,11 @@ module.exports = {
2121
if (invalidArgument) {
2222
context.report({
2323
node,
24-
message: 'Prefer hidden property to d-none class'
24+
message: 'Prefer hidden property to d-none class',
2525
})
2626
}
2727
}
28-
}
28+
},
2929
}
30-
}
30+
},
3131
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.