@elastic/eslint-plugin-eui 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -25,7 +25,7 @@ module.exports = {
25
25
  recommended: {
26
26
  plugins: ['@elastic/eslint-plugin-eui'],
27
27
  rules: {
28
- '@elastic/eui/href-or-on-click': 'error',
28
+ '@elastic/eui/href-or-on-click': 'warn',
29
29
  },
30
30
  },
31
31
  },
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "@elastic/eslint-plugin-eui",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
- "type" : "git",
7
- "url" : "https://github.com/elastic/eui.git"
6
+ "type": "git",
7
+ "url": "https://github.com/elastic/eui.git"
8
8
  },
9
- "homepage": "https://github.com/elastic/eui/blob/master/packages/eslint-plugin",
9
+ "homepage": "https://github.com/elastic/eui/blob/main/packages/eslint-plugin",
10
10
  "peerDependencies": {
11
- "eslint": "^5.0.0"
11
+ "eslint": ">=5, <7"
12
+ },
13
+ "devDependencies": {
14
+ "@babel/core": "^7.6.0",
15
+ "babel-eslint": "^10.0.3",
16
+ "eslint": "^6.4.0"
12
17
  }
13
18
  }
@@ -1,4 +1,4 @@
1
- const componentNames = ['EuiButton', 'EuiButtonEmpty', 'EuiLink'];
1
+ const componentNames = ['EuiButton', 'EuiButtonEmpty', 'EuiLink', 'EuiBadge'];
2
2
 
3
3
  module.exports = {
4
4
  meta: {
@@ -24,9 +24,7 @@ module.exports = {
24
24
  if (hasHref && hasOnClick) {
25
25
  context.report(
26
26
  node,
27
- `<${
28
- node.name.name
29
- }> accepts either \`href\` or \`onClick\`, not both.`
27
+ `<${node.name.name}> supplied with both \`href\` and \`onClick\`; is this intentional? (Valid use cases include programmatic navigation via \`onClick\` while preserving "Open in new tab" style functionality via \`href\`.)`
30
28
  );
31
29
  }
32
30
  },