eslint-config-planet
Advanced tools
Comparing version 16.0.0 to 17.0.0
@@ -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')); |
20
index.js
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', | ||
}, | ||
}; |
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
9959
140
5
4
+ Addedeslint-plugin-import@^2.13.0
+ Added@rtsao/scc@1.1.0(transitive)
+ Added@types/json5@0.0.29(transitive)
+ Addedarray-buffer-byte-length@1.0.2(transitive)
+ Addedarray-includes@3.1.8(transitive)
+ Addedarray.prototype.findlastindex@1.2.5(transitive)
+ Addedarray.prototype.flat@1.3.3(transitive)
+ Addedarray.prototype.flatmap@1.3.3(transitive)
+ Addedarraybuffer.prototype.slice@1.0.4(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addeddata-view-buffer@1.0.2(transitive)
+ Addeddata-view-byte-length@1.0.2(transitive)
+ Addeddata-view-byte-offset@1.0.1(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addeddoctrine@2.1.0(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addedes-abstract@1.23.7(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedes-set-tostringtag@2.0.3(transitive)
+ Addedes-shim-unscopables@1.0.2(transitive)
+ Addedes-to-primitive@1.3.0(transitive)
+ Addedeslint-import-resolver-node@0.3.9(transitive)
+ Addedeslint-module-utils@2.12.0(transitive)
+ Addedeslint-plugin-import@2.31.0(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedfunction.prototype.name@1.1.8(transitive)
+ Addedfunctions-have-names@1.2.3(transitive)
+ Addedget-intrinsic@1.2.6(transitive)
+ Addedget-symbol-description@1.1.0(transitive)
+ Addedglobalthis@1.0.4(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-bigints@1.1.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.2.0(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinternal-slot@1.1.0(transitive)
+ Addedis-array-buffer@3.0.5(transitive)
+ Addedis-async-function@2.0.0(transitive)
+ Addedis-bigint@1.1.0(transitive)
+ Addedis-boolean-object@1.2.1(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-core-module@2.16.1(transitive)
+ Addedis-data-view@1.0.2(transitive)
+ Addedis-date-object@1.1.0(transitive)
+ Addedis-finalizationregistry@1.1.1(transitive)
+ Addedis-generator-function@1.0.10(transitive)
+ Addedis-map@2.0.3(transitive)
+ Addedis-number-object@1.1.1(transitive)
+ Addedis-regex@1.2.1(transitive)
+ Addedis-set@2.0.3(transitive)
+ Addedis-shared-array-buffer@1.0.4(transitive)
+ Addedis-string@1.1.1(transitive)
+ Addedis-symbol@1.1.1(transitive)
+ Addedis-typed-array@1.1.15(transitive)
+ Addedis-weakmap@2.0.2(transitive)
+ Addedis-weakref@1.1.0(transitive)
+ Addedis-weakset@2.0.4(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedjson5@1.0.2(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedobject.assign@4.1.7(transitive)
+ Addedobject.fromentries@2.0.8(transitive)
+ Addedobject.groupby@1.0.3(transitive)
+ Addedobject.values@1.2.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedreflect.getprototypeof@1.0.9(transitive)
+ Addedregexp.prototype.flags@1.5.3(transitive)
+ Addedresolve@1.22.10(transitive)
+ Addedsafe-array-concat@1.1.3(transitive)
+ Addedsafe-regex-test@1.1.0(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedset-function-name@2.0.2(transitive)
+ Addedside-channel@1.1.0(transitive)
+ Addedside-channel-list@1.0.0(transitive)
+ Addedside-channel-map@1.0.1(transitive)
+ Addedside-channel-weakmap@1.0.2(transitive)
+ Addedstring.prototype.trim@1.2.10(transitive)
+ Addedstring.prototype.trimend@1.0.9(transitive)
+ Addedstring.prototype.trimstart@1.0.8(transitive)
+ Addedstrip-bom@3.0.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtsconfig-paths@3.15.0(transitive)
+ Addedtyped-array-buffer@1.0.3(transitive)
+ Addedtyped-array-byte-length@1.0.3(transitive)
+ Addedtyped-array-byte-offset@1.0.4(transitive)
+ Addedtyped-array-length@1.0.7(transitive)
+ Addedunbox-primitive@1.1.0(transitive)
+ Addedwhich-boxed-primitive@1.1.1(transitive)
+ Addedwhich-builtin-type@1.2.1(transitive)
+ Addedwhich-collection@1.0.2(transitive)
+ Addedwhich-typed-array@1.1.18(transitive)