Skip to content

Commit 50a07db

Browse files
authored
Merge branch 'main' into smockle/wip
2 parents 5497b3a + 3b7aefa commit 50a07db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+576
-576
lines changed

lib/configs/browser.js

Lines 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

Lines 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/recommended.js

Lines 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

Lines 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

Lines 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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ module.exports = {
1919
'prefer-observers': require('./rules/prefer-observers'),
2020
'role-supports-aria-props': require('./rules/role-supports-aria-props'),
2121
'require-passive-events': require('./rules/require-passive-events'),
22-
'unescaped-html-literal': require('./rules/unescaped-html-literal')
22+
'unescaped-html-literal': require('./rules/unescaped-html-literal'),
2323
},
2424
configs: {
2525
browser: require('./configs/browser'),
2626
internal: require('./configs/internal'),
2727
recommended: require('./configs/recommended'),
2828
typescript: require('./configs/typescript'),
29-
react: require('./configs/react')
30-
}
29+
react: require('./configs/react'),
30+
},
3131
}

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

Lines 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

Lines 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

Lines 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

Lines 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
}

0 commit comments

Comments
 (0)