File tree Expand file tree Collapse file tree 4 files changed +98
-8
lines changed
Expand file tree Collapse file tree 4 files changed +98
-8
lines changed Original file line number Diff line number Diff line change 1- import { isSetAttributes } from './editv2' ;
1+ import { isSetAttributes } from './editv2.js ' ;
22
33/** Intent to `parent.insertBefore(node, reference)` */
44export type Insert = {
@@ -57,7 +57,9 @@ export type EditEvent<E extends Edit = Edit> = CustomEvent<E>;
5757
5858// eslint-disable-next-line @typescript-eslint/no-explicit-any
5959export function isEdit ( edit : any ) : edit is Edit {
60- if ( isComplex ( edit ) ) return ! edit . some ( e => ! isEdit ( e ) ) ;
60+ if ( isComplex ( edit ) ) {
61+ return ! edit . some ( e => ! isEdit ( e ) ) ;
62+ }
6163
6264 return (
6365 ! isSetAttributes ( edit ) &&
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ export function isInsert(edit: EditV2): edit is Insert {
6666
6767// eslint-disable-next-line @typescript-eslint/no-explicit-any
6868export function isEditV2 ( edit : any ) : edit is EditV2 {
69- if ( isComplex ( edit ) ) return ! edit . some ( e => ! isEditV2 ( e ) ) ;
69+ if ( isComplex ( edit ) ) {
70+ return ! edit . some ( e => ! isEditV2 ( e ) ) ;
71+ }
7072
7173 return (
7274 isSetAttributes ( edit ) ||
Original file line number Diff line number Diff line change 77 "types" : " ./dist/oscd-api.d.ts" ,
88 "scripts" : {
99 "lint" : " eslint . && prettier \" **/*.ts\" --check --ignore-path .gitignore" ,
10- "format" : " eslint . --fix && prettier \" ** /*.ts\" --write --ignore-path .gitignore " ,
10+ "format" : " eslint ./*.ts --fix " ,
1111 "test" : " npm run build && wtr --coverage" ,
1212 "test:watch" : " npm run build && concurrently -k -r \" tsc -b --watch --preserveWatchOutput\" \" wtr --watch --coverage\" " ,
1313 "build" : " npx rimraf dist && tsc --pretty" ,
4848 "concurrently" : " ^9.0.1" ,
4949 "eslint" : " ^8.57.0" ,
5050 "eslint-config-prettier" : " ^9.1.0" ,
51+ "eslint-plugin-prettier" : " ^5.4.1" ,
5152 "eslint-plugin-tsdoc" : " ^0.4.0" ,
5253 "husky" : " ^9.1.7" ,
5354 "lint-staged" : " ^16.1.0" ,
6667 },
6768 "extends" : [
6869 " @open-wc" ,
69- " prettier"
70+ " prettier" ,
71+ " plugin:prettier/recommended"
7072 ],
7173 "ignorePatterns" : [
72- " */**/*.js" ,
73- " */**/*.d.ts"
74+ " dist/" ,
75+ " node_modules" ,
76+ " coverage" ,
77+ " doc"
7478 ],
7579 "plugins" : [
7680 " @typescript-eslint" ,
141145 "lint-staged" : {
142146 "*.ts" : [
143147 " eslint --fix --config package.json" ,
144- " prettier --write"
148+ " prettier --write" ,
149+ " eslint --config package.json"
145150 ]
146151 }
147152}
You can’t perform that action at this time.
0 commit comments