Socket
Socket
Sign inDemoInstall

eslint-config-airbnb

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-airbnb - npm Package Compare versions

Comparing version 15.0.2 to 15.1.0

5

CHANGELOG.md

@@ -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 @@ ==================

18

package.json
{
"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');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc