Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-planet

Package Overview
Dependencies
Maintainers
5
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-planet - npm Package Compare versions

Comparing version 16.0.0 to 17.0.0

4

examples/react/component.js

@@ -6,3 +6,3 @@ import React from 'react';

propTypes: {
name: React.PropTypes.string.isRequired
name: React.PropTypes.string.isRequired,
},

@@ -12,5 +12,5 @@

return <div>Hello {this.props.name}</div>;
}
},
});
ReactDOM.render(<HelloMessage name="John" />, document.getElementById('root'));
module.exports = {
extends: ['prettier'],
plugins: ['prettier'],
plugins: ['prettier', 'import'],
env: {
node: true,
browser: true,
es6: true
es6: true,
},

@@ -13,7 +13,10 @@ parserOptions: {

ecmaFeatures: {
experimentalObjectRestSpread: true
}
experimentalObjectRestSpread: true,
},
},
rules: {
'prettier/prettier': ['error', {singleQuote: true, bracketSpacing: false}],
'prettier/prettier': [
'error',
{singleQuote: true, bracketSpacing: false, trailingComma: 'es5'},
],
'array-callback-return': 'error',

@@ -25,2 +28,5 @@ 'block-scoped-var': 'error',

eqeqeq: 'error',
'import/no-unresolved': ['error', {commonjs: true}],
'import/named': 'error',
'import/default': 'error',
'no-case-declarations': 'error',

@@ -63,4 +69,4 @@ 'no-cond-assign': 'error',

'valid-typeof': 'error',
'prefer-const': 'error'
}
'prefer-const': 'error',
},
};
{
"name": "eslint-config-planet",
"version": "16.0.0",
"version": "17.0.0",
"description": "ESLint config for Planet projects",

@@ -19,3 +19,5 @@ "main": "index.js",

"eslint": "^4.6.1",
"eslint-plugin-react": "^7.3.0"
"eslint-plugin-react": "^7.3.0",
"react": "^16.4.1",
"react-dom": "^16.4.1"
},

@@ -27,2 +29,3 @@ "peerDependencies": {

"eslint-config-prettier": "^2.6.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-prettier": "^2.3.1",

@@ -29,0 +32,0 @@ "prettier": "^1.7.4"

@@ -6,4 +6,4 @@ module.exports = {

ecmaFeatures: {
jsx: true
}
jsx: true,
},
},

@@ -28,4 +28,4 @@ rules: {

'react/react-in-jsx-scope': 'error',
'react/sort-prop-types': 'off'
}
'react/sort-prop-types': 'off',
},
};
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