File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
vue-computed12-spread-array Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ export default {
66 return [... CLASS_NAME] // TODO supports
77 },
88 classComp2 () {
9- // eslint-disable-next-line @mysticatea/no-useless-rest-spread
109 return [... ([" foo" ])] // TODO supports
1110 },
1211 },
Original file line number Diff line number Diff line change 11<script >
22export default {
3- // eslint-disable-next-line @mysticatea/vue/no-shared-component-data
43 data: {
54 classData: { bar: false },
65 classData2: { foo: true }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function executeLint(
3737 let style : StyleContext | null = null ;
3838 let context : RuleContext | null = null ;
3939 let err = null ;
40- linter . verifyAndFix (
40+ const lintResult = linter . verifyAndFix (
4141 source ,
4242 {
4343 ...config ,
@@ -64,6 +64,14 @@ function executeLint(
6464 if ( err ) {
6565 throw err ;
6666 }
67+ if ( lintResult . messages . length ) {
68+ lintResult . messages . forEach ( ( message ) => {
69+ console . error (
70+ `[${ message . ruleId } ] ${ message . message } (${ message . line } :${ message . column } )` ,
71+ ) ;
72+ } ) ;
73+ throw new Error ( `Linting errors found in ${ sourcePath } ` ) ;
74+ }
6775 if ( ! style ) {
6876 throw new Error ( "invalid state: style is null" ) ;
6977 }
You can’t perform that action at this time.
0 commit comments