
export default [{
  tagName: 'a'
, msg: 'Links must not point to `#`. '
     + 'Use a more descriptive href or use a button instead.'
, url: 'http://webaim.org/techniques/hypertext/'
, test (tagName, props) {
    const hashRef = props.href && props.href === '#'
    return !hashRef
  }
}]

export const pass = [{
  when: 'the `href` is `#`'
, render: React => <a href='#' />
}]

export const fail = [{
  when: 'the `href` is not `#`'
, render: React => <a href='foo#bar' />
}]

export const description = `
Enforce an anchor element's href prop value is not just \`"#"\`. You should use
something more descriptive, or use a button instead.
`

@@ -330,16 +330,20 @@
 ref%60 is 
+not 
 %60#%60'%0A, r
@@ -367,17 +367,23 @@
 a href='
-#
+foo#bar
 ' /%3E%0A%7D%5D%0A
@@ -421,36 +421,32 @@
  'the %60href%60 is 
-not 
 %60#%60'%0A, render: R
@@ -454,39 +454,33 @@
 act =%3E %3Ca href='
-foo#bar
+#
 ' /%3E%0A%7D%5D%0A%0Aexport 

fix no-hash-ref