Skip to content

Commit 43dd9b7

Browse files
committed
Update linting
1 parent f4f92f5 commit 43dd9b7

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ATTRIBUTE_NAME_START_CHAR =
1212
const ATTRIBUTE_NAME_CHAR =
1313
ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
1414

15-
// eslint-disable-next-line no-misleading-character-class,security/detect-non-literal-regexp
15+
// eslint-disable-next-line no-misleading-character-class
1616
const VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
1717

1818
const VALID_TAG_REGEX = /^[A-Za-z][\w.:-]*$/; // Simplified subset
@@ -322,7 +322,7 @@ const _checkHtmlResult = (result) => {
322322
/** @type {BasicRenderableElement<ElementProps>} */
323323
// @ts-ignore
324324
const element = result;
325-
const { type, props = {}, children = [] } = element;
325+
const { children = [], props = {}, type } = element;
326326

327327
if (typeof type === 'string' || typeof type === 'function') {
328328
return { type, props, children: children.flat() };

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,24 @@
7979
"@types/node": "^16.18.27",
8080
"@types/sinon": "^10.0.13",
8181
"@types/sinon-chai": "^3.2.8",
82-
"@voxpelli/eslint-config": "^15.1.0",
82+
"@voxpelli/eslint-config": "^16.0.7",
8383
"@voxpelli/tsconfig": "^4.0.0",
8484
"c8": "^7.12.0",
8585
"chai": "^4.3.6",
8686
"chai-as-promised": "^7.1.1",
8787
"dependency-check": "^5.0.0-7",
88-
"eslint": "^8.21.0",
88+
"eslint": "^8.40.0",
8989
"eslint-config-standard": "^17.0.0",
9090
"eslint-plugin-es": "^4.1.0",
91-
"eslint-plugin-import": "^2.26.0",
92-
"eslint-plugin-jsdoc": "^39.3.4",
91+
"eslint-plugin-import": "^2.27.5",
92+
"eslint-plugin-jsdoc": "^44.1.0",
9393
"eslint-plugin-mocha": "^10.1.0",
94-
"eslint-plugin-n": "^15.2.4",
94+
"eslint-plugin-n": "^15.7.0",
9595
"eslint-plugin-node": "^11.1.0",
96-
"eslint-plugin-promise": "^6.0.0",
97-
"eslint-plugin-security": "^1.5.0",
98-
"eslint-plugin-sort-destructure-keys": "^1.4.0",
99-
"eslint-plugin-unicorn": "^43.0.2",
96+
"eslint-plugin-promise": "^6.1.1",
97+
"eslint-plugin-security": "^1.7.1",
98+
"eslint-plugin-sort-destructure-keys": "^1.5.0",
99+
"eslint-plugin-unicorn": "^47.0.0",
100100
"ghat": "^0.14.0",
101101
"husky": "^8.0.1",
102102
"installed-check": "^6.0.4",

test/html.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ describe('html``', () => {
4343
type: 'woot',
4444
props: {},
4545
children: ['YEA&H!', '<div>w0000000000t</div>'],
46-
}
47-
]
48-
}
49-
]
46+
},
47+
],
48+
},
49+
],
5050
};
5151

5252
const foo = 'woot';

test/render-basic.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const {
1515
} = require('..');
1616

1717
const {
18-
ELEMENT_FIXTURE
18+
ELEMENT_FIXTURE,
1919
} = require('./fixtures');
2020

2121
describe('render() basic', () => {

0 commit comments

Comments
 (0)