File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ module . exports = {
2+ '**/*.{ts,tsx}' : ( files ) => {
3+ const cmds = [ `prettier --write --ignore-unknown ${ files . join ( ' ' ) } ` ] ;
4+
5+ // `otel-web` package does not have an eslint config yet
6+ const lintable = files . filter ( ( f ) => ! f . includes ( '/packages/otel-web/' ) ) ;
7+
8+ if ( lintable . length ) {
9+ cmds . push ( `eslint --fix ${ lintable . join ( ' ' ) } ` ) ;
10+ }
11+
12+ return cmds ;
13+ } ,
14+
15+ '**/*.{json,yml}' : 'prettier --write --ignore-unknown' ,
16+ } ;
Original file line number Diff line number Diff line change 1818 "release:next" : " npx nx run-many --target=build && yarn changeset version --snapshot next && npx nx run-many --target=postversion && yarn changeset publish --tag next" ,
1919 "prepare" : " husky install"
2020 },
21- "lint-staged" : {
22- "**/*.{ts,tsx}" : [
23- " prettier --write --ignore-unknown" ,
24- " eslint --fix"
25- ],
26- "**/*.{json,yml}" : [
27- " prettier --write --ignore-unknown"
28- ]
29- },
3021 "devDependencies" : {
3122 "@changesets/cli" : " ^2.26.1" ,
3223 "@types/debug" : " ^4.1.8" ,
You can’t perform that action at this time.
0 commit comments