File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ This service needs some other services. To be able to mock and
19
19
20
20
![ Dependencies Graph] ( ./DEPENDENCIES.mmd.png )
21
21
22
- [ See in context] ( ./src/jsarch.js#L53-L64 )
22
+ [ See in context] ( ./src/jsarch.js#L66-L77 )
23
23
24
24
25
25
@@ -34,7 +34,7 @@ architecture notes. It should be structured like that:
34
34
{body}
35
35
```
36
36
37
- [See in context](./src/jsarch.js#L184-L194 )
37
+ [See in context](./src/jsarch.js#L197-L207 )
38
38
39
39
40
40
@@ -64,7 +64,7 @@ If you wish to add the architecture notes in a README.md file
64
64
you will have to set the `titleLevel` option to as much `#`
65
65
as necessar to fit the title hierarchy of you README file.
66
66
67
- [See in context](./src/jsarch.js#L29-L37 )
67
+ [See in context](./src/jsarch.js#L42-L50 )
68
68
69
69
70
70
@@ -76,5 +76,5 @@ By default, links to the architecture notes right in the code
76
76
77
77
To override it, use the `base` option.
78
78
79
- [See in context](./src/jsarch.js#L40-L48 )
79
+ [See in context](./src/jsarch.js#L53-L61 )
80
80
Original file line number Diff line number Diff line change @@ -14,8 +14,21 @@ const espree = require('espree', {
14
14
} ,
15
15
} ) ;
16
16
const types = require ( 'ast-types' ) ;
17
+ const def = types . Type . def ;
17
18
const { compareNotes } = require ( './compareNotes' ) ;
18
19
20
+ // Temporary fix to make jsarch work
21
+ // on codebases parsed with espree
22
+ def ( 'ExperimentalSpreadProperty' )
23
+ . bases ( 'Node' )
24
+ . build ( 'argument' )
25
+ . field ( 'argument' , def ( 'Expression' ) ) ;
26
+ def ( 'ExperimentalRestProperty' )
27
+ . bases ( 'Node' )
28
+ . build ( 'argument' )
29
+ . field ( 'argument' , def ( 'Expression' ) ) ;
30
+ types . finalize ( ) ;
31
+
19
32
const ARCHITECTURE_NOTE_REGEXP = / ^ \s * A r c h i t e c t u r e N o t e # ( (?: \d + (?: \. (? = \d ) | ) ) { 1 , 8 } ) : \s + ( [ ^ \r \n $ ] * ) / ;
20
33
const SHEBANG_REGEXP = / # ! ( \/ \w + ) + n o d e / ;
21
34
const EOL_REGEXP = / \n / g;
You can’t perform that action at this time.
0 commit comments