eslint-config-airbnb
Advanced tools
Comparing version 15.0.2 to 15.1.0
@@ -0,1 +1,6 @@ | ||
15.1.0 / 2017-07-24 | ||
================== | ||
- [deps] allow eslint v3 or v4 (#1447) | ||
- [deps] update `eslint-plugin-import`, `eslint-config-airbnb-base` | ||
15.0.2 / 2017-07-04 | ||
@@ -2,0 +7,0 @@ ================== |
{ | ||
"name": "eslint-config-airbnb", | ||
"version": "15.0.2", | ||
"version": "15.1.0", | ||
"description": "Airbnb's ESLint config, following our styleguide", | ||
@@ -10,6 +10,8 @@ "main": "index.js", | ||
"tests-only": "babel-tape-runner ./test/test-*.js", | ||
"prepublish": "(in-install || eslint-find-rules --unused || echo skipped) && (not-in-publish || npm test) && safe-publish-latest", | ||
"prepublish": "(in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest", | ||
"pretest": "npm run --silent lint", | ||
"test": "npm run --silent tests-only", | ||
"travis": "cd ../eslint-config-airbnb-base && npm install && npm link && cd - && npm link eslint-config-airbnb-base && npm run --silent test ; npm unlink eslint-config-airbnb-base >/dev/null &" | ||
"pretravis": "cd ../eslint-config-airbnb-base && npm install && npm link && cd - && npm link --no-save eslint-config-airbnb-base", | ||
"travis": "npm run --silent test", | ||
"posttravis": "npm unlink eslint-config-airbnb-base >/dev/null &" | ||
}, | ||
@@ -50,3 +52,3 @@ "repository": { | ||
"dependencies": { | ||
"eslint-config-airbnb-base": "^11.2.0" | ||
"eslint-config-airbnb-base": "^11.3.0" | ||
}, | ||
@@ -57,5 +59,5 @@ "devDependencies": { | ||
"editorconfig-tools": "^0.1.1", | ||
"eslint": "^3.19.0", | ||
"eslint": "^3.19.0 || ^4.3.0", | ||
"eslint-find-rules": "^3.1.1", | ||
"eslint-plugin-import": "^2.6.1", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-jsx-a11y": "^5.1.1", | ||
@@ -69,5 +71,5 @@ "eslint-plugin-react": "^7.1.0", | ||
"peerDependencies": { | ||
"eslint": "^3.19.0", | ||
"eslint": "^3.19.0 || ^4.3.0", | ||
"eslint-plugin-jsx-a11y": "^5.1.1", | ||
"eslint-plugin-import": "^2.6.1", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-react": "^7.1.0" | ||
@@ -74,0 +76,0 @@ }, |
@@ -191,3 +191,12 @@ module.exports = { | ||
}], | ||
// ensure <a> tags are valid | ||
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/0745af376cdc8686d85a361ce36952b1fb1ccf6e/docs/rules/anchor-is-valid.md | ||
// TODO: enable, semver-major | ||
'jsx-a11y/anchor-is-valid': ['off', { | ||
components: ['Link'], | ||
specialLink: [], | ||
aspects: ['noHref', 'invalidHref', 'preferButton'], | ||
}], | ||
}, | ||
}; |
@@ -51,2 +51,7 @@ module.exports = { | ||
// Validate closing tag location in JSX | ||
// https://github.com/yannickcr/eslint-plugin-react/blob/9e13ae2c51e44872b45cc15bf1ac3a72105bdd0e/docs/rules/jsx-closing-tag-location.md | ||
// TODO: enable, semver-minor | ||
'react/jsx-closing-tag-location': 'off', | ||
// Enforce or disallow spaces inside of curly braces in JSX attributes | ||
@@ -319,2 +324,12 @@ // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md | ||
'react/void-dom-elements-no-children': 'error', | ||
// Enforce all defaultProps have a corresponding non-required PropType | ||
// https://github.com/yannickcr/eslint-plugin-react/blob/9e13ae2c51e44872b45cc15bf1ac3a72105bdd0e/docs/rules/default-props-match-prop-types.md | ||
// TODO: enable, semver-minor | ||
'react/default-props-match-prop-types': ['off', { allowRequiredDefaults: false }], | ||
// Prevent usage of shouldComponentUpdate when extending React.PureComponent | ||
// https://github.com/yannickcr/eslint-plugin-react/blob/9e13ae2c51e44872b45cc15bf1ac3a72105bdd0e/docs/rules/no-redundant-should-component-update.md | ||
// TODO: enable, semver-major | ||
'react/no-redundant-should-component-update': 'off', | ||
}, | ||
@@ -321,0 +336,0 @@ |
@@ -52,4 +52,3 @@ import test from 'tape'; | ||
renderDogs() {} | ||
render() { return <div />; } | ||
`)); | ||
render() { return <div />; }`)); | ||
@@ -56,0 +55,0 @@ t.notOk(result.warningCount, 'no warnings'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51670
568
+ Addedajv@5.5.2(transitive)
+ Addedajv-keywords@2.1.1(transitive)
+ Addedansi-escapes@3.2.0(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedchardet@0.4.2(transitive)
+ Addedcli-cursor@2.1.0(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcross-spawn@5.1.0(transitive)
+ Addedeslint@4.19.1(transitive)
+ Addedeslint-scope@3.7.3(transitive)
+ Addedeslint-visitor-keys@1.3.0(transitive)
+ Addedexternal-editor@2.2.0(transitive)
+ Addedfast-deep-equal@1.1.0(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfigures@2.0.0(transitive)
+ Addedfunctional-red-black-tree@1.0.1(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinquirer@3.3.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjson-schema-traverse@0.3.1(transitive)
+ Addedjson-stable-stringify-without-jsonify@1.0.1(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addedmute-stream@0.0.7(transitive)
+ Addedonetime@2.0.1(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedpluralize@7.0.0(transitive)
+ Addedprogress@2.0.3(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedregexpp@1.1.0(transitive)
+ Addedrestore-cursor@2.0.0(transitive)
+ Addedrun-async@2.4.1(transitive)
+ Addedrx-lite@4.0.8(transitive)
+ Addedrx-lite-aggregates@4.0.8(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedslice-ansi@1.0.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedtable@4.0.2(transitive)
+ Addedtmp@0.0.33(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedajv@4.11.8(transitive)
- Removedajv-keywords@1.5.1(transitive)
- Removedansi-escapes@1.4.0(transitive)
- Removedcli-cursor@1.0.2(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedd@1.0.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-map@0.1.5(transitive)
- Removedes6-set@0.1.6(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedes6-weak-map@2.0.3(transitive)
- Removedescope@3.6.0(transitive)
- Removedeslint@3.19.0(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedexit-hook@1.1.1(transitive)
- Removedext@1.7.0(transitive)
- Removedfigures@1.7.0(transitive)
- Removedgenerate-function@2.3.1(transitive)
- Removedgenerate-object-property@1.2.0(transitive)
- Removedglobals@9.18.0(transitive)
- Removedinquirer@0.12.0(transitive)
- Removedinterpret@1.4.0(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedis-my-ip-valid@1.0.1(transitive)
- Removedis-my-json-valid@2.20.6(transitive)
- Removedis-property@1.0.2(transitive)
- Removedjson-stable-stringify@1.1.1(transitive)
- Removedjsonify@0.0.1(transitive)
- Removedjsonpointer@5.0.1(transitive)
- Removedms@2.0.0(transitive)
- Removedmute-stream@0.0.5(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedonetime@1.1.0(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedpluralize@1.2.1(transitive)
- Removedprogress@1.1.8(transitive)
- Removedreadline2@1.0.1(transitive)
- Removedrechoir@0.6.2(transitive)
- Removedrestore-cursor@1.0.1(transitive)
- Removedrun-async@0.1.0(transitive)
- Removedrx-lite@3.1.2(transitive)
- Removedshelljs@0.7.8(transitive)
- Removedslice-ansi@0.0.4(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedtable@3.8.3(transitive)
- Removedtype@2.7.3(transitive)
- Removeduser-home@2.0.0(transitive)
- Removedxtend@4.0.2(transitive)