File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
eslint-config-zillow-base/rules
eslint-plugin-zillow/test/__snapshots__ Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,6 @@ module.exports = {
112
112
// disallow multiple spaces in a regular expression literal
113
113
'no-regex-spaces' : 'error' ,
114
114
115
- // https://eslint.org/docs/rules/no-restricted-exports
116
- 'no-restricted-exports' : 'off' ,
117
-
118
115
// https://eslint.org/docs/rules/no-setter-return
119
116
'no-setter-return' : 'error' ,
120
117
Original file line number Diff line number Diff line change @@ -63,6 +63,17 @@ module.exports = {
63
63
// https://eslint.org/docs/rules/no-new-symbol
64
64
'no-new-symbol' : 'error' ,
65
65
66
+ // Disallow specified names in exports
67
+ // https://eslint.org/docs/rules/no-restricted-exports
68
+ 'no-restricted-exports' : [ 'error' , {
69
+ restrictedNamedExports : [
70
+ // use `export default` to provide a default export
71
+ 'default' ,
72
+ // this will cause tons of confusion when your module is dynamically `import()`ed
73
+ 'then' ,
74
+ ] ,
75
+ } ] ,
76
+
66
77
// disallow specific imports
67
78
// https://eslint.org/docs/rules/no-restricted-imports
68
79
'no-restricted-imports' : [ 'off' , {
Original file line number Diff line number Diff line change @@ -1172,7 +1172,13 @@ Object {
1172
1172
" error" ,
1173
1173
],
1174
1174
" no-restricted-exports" : Array [
1175
- " off" ,
1175
+ " error" ,
1176
+ Object {
1177
+ " restrictedNamedExports" : Array [
1178
+ " default" ,
1179
+ " then" ,
1180
+ ],
1181
+ },
1176
1182
],
1177
1183
" no-restricted-globals" : Array [
1178
1184
" error" ,
You can’t perform that action at this time.
0 commit comments