File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
21
21
- [ Performance] [ ` no-cycle ` ] : dont scc for each linted file ([ #3068 ] , thanks [ @soryy708 ] )
22
22
- [ Docs] [ ` no-cycle ` ] : add ` disableScc ` to docs ([ #3070 ] , thanks [ @soryy708 ] )
23
23
- [ Tests] use re-exported ` RuleTester ` ([ #3071 ] , thanks [ @G-Rath ] )
24
- - [ Docs] ` no-restricted-paths ` : fix grammar ([ #3073 ] , thanks [ @unbeauvoyage ] )
24
+ - [ Docs] [ ` no-restricted-paths ` ] : fix grammar ([ #3073 ] , thanks [ @unbeauvoyage ] )
25
+ - [ Tests] [ ` no-default-export ` ] , [ ` no-named-export ` ] : add test case (thanks [ @G-Rath ] )
25
26
26
27
## [ 2.30.0] - 2024-09-02
27
28
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ const rule = require('rules/no-default-export');
7
7
8
8
ruleTester . run ( 'no-default-export' , rule , {
9
9
valid : [
10
+ test ( {
11
+ code : 'module.exports = function foo() {}' ,
12
+ } ) ,
10
13
test ( {
11
14
code : `
12
15
export const foo = 'foo';
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ const rule = require('rules/no-named-export');
6
6
7
7
ruleTester . run ( 'no-named-export' , rule , {
8
8
valid : [ ] . concat (
9
+ test ( {
10
+ code : 'module.export.foo = function () {}' ,
11
+ } ) ,
9
12
test ( {
10
13
code : 'export default function bar() {};' ,
11
14
} ) ,
You can’t perform that action at this time.
0 commit comments