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

eslint-config-cheminfo

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-cheminfo - npm Package Compare versions

Comparing version 7.1.2 to 7.2.0

8

CHANGELOG.md
# Changelog
## [7.2.0](https://www.github.com/cheminfo/eslint-config/compare/v7.1.2...v7.2.0) (2021-11-04)
### Features
* **jsdoc:** allow up to two blank lines between jsdoc and function and do not check internal functions ([f1d2f1c](https://www.github.com/cheminfo/eslint-config/commit/f1d2f1c2323b4dc130f51e448ef6412bdc4c9c20))
* verify that functions always have a blank line before and after them ([d051ae0](https://www.github.com/cheminfo/eslint-config/commit/d051ae099b6beb6e7897f9d097f0ec2f24898948))
### [7.1.2](https://www.github.com/cheminfo/eslint-config/compare/v7.1.1...v7.1.2) (2021-10-23)

@@ -4,0 +12,0 @@

42

index.js

@@ -93,3 +93,3 @@ 'use strict';

rules: {
// Possible Errors (http://eslint.org/docs/rules/#possible-errors)
//#region Possible Problems (https://eslint.org/docs/rules/#possible-problems)
'for-direction': 'error',

@@ -137,4 +137,5 @@ 'getter-return': 'error',

'valid-typeof': 'error',
//#endregion
// Best Practices (http://eslint.org/docs/rules/#best-practices)
//#region Suggestions (https://eslint.org/docs/rules/#suggestions)
'accessor-pairs': 'off',

@@ -155,2 +156,3 @@ 'array-callback-return': 'error',

'guard-for-in': 'off',
'init-declarations': 'off',
'max-classes-per-file': 'off',

@@ -161,2 +163,3 @@ 'no-alert': 'error',

'no-constructor-return': 'warn',
'no-delete-var': 'error',
'no-div-regex': 'error',

@@ -179,2 +182,3 @@ 'no-else-return': 'off',

'no-iterator': 'error',
'no-label-var': 'error',
'no-labels': 'off',

@@ -194,2 +198,3 @@ 'no-lone-blocks': 'error',

'no-redeclare': 'error',
'no-restricted-globals': 'off',
'no-restricted-properties': 'off',

@@ -202,6 +207,13 @@ 'no-return-assign': 'error',

'no-sequences': 'error',
'no-shadow': 'off',
'no-shadow-restricted-names': 'error',
'no-throw-literal': 'error',
'no-undef': 'error',
'no-undef-init': 'error',
'no-undefined': 'off',
'no-unmodified-loop-condition': 'error',
'no-unused-expressions': 'error',
'no-unused-labels': 'error',
'no-unused-vars': 'error',
'no-use-before-define': 'off',
'no-useless-call': 'error',

@@ -222,23 +234,9 @@ 'no-useless-catch': 'error',

'require-unicode-regexp': 'off',
strict: ['error', 'global'],
'vars-on-top': 'off',
'wrap-iife': ['error', 'inside'],
yoda: 'error',
//#endregion
// Strict Mode (https://eslint.org/docs/rules/#strict-mode)
strict: ['error', 'global'],
// Variables (https://eslint.org/docs/rules/#variables)
'init-declarations': 'off',
'no-delete-var': 'error',
'no-label-var': 'error',
'no-restricted-globals': 'off',
'no-shadow': 'off',
'no-shadow-restricted-names': 'error',
'no-undef': 'error',
'no-undef-init': 'error',
'no-undefined': 'off',
'no-unused-vars': 'error',
'no-use-before-define': 'off',
// Stylistic Issues (https://eslint.org/docs/rules/#stylistic-issues)
//#region Stylistic Issues (https://eslint.org/docs/rules/#stylistic-issues)
// Many are unconfigured because we use Prettier

@@ -258,6 +256,9 @@ camelcase: ['error', { properties: 'always', ignoreDestructuring: true }],

{ blankLine: 'always', prev: 'directive', next: '*' },
{ blankLine: 'always', prev: '*', next: 'function' },
{ blankLine: 'always', prev: 'function', next: '*' },
],
'unicode-bom': 'error',
//#endregion
// ECMAScript 6 (https://eslint.org/docs/rules/#ecmascript-6)
//#region ECMAScript 6 (https://eslint.org/docs/rules/#ecmascript-6)
// Many are unconfigured because we use Prettier

@@ -286,2 +287,3 @@ 'constructor-super': 'error',

'symbol-description': 'error',
//#endregion

@@ -288,0 +290,0 @@ // Import plugin (https://github.com/benmosher/eslint-plugin-import)

@@ -6,3 +6,15 @@ 'use strict';

extends: ['plugin:jsdoc/recommended'],
settings: {
jsdoc: {
ignoreInternal: true,
maxLines: 3,
},
},
rules: {
'jsdoc/require-jsdoc': [
'warn',
{
publicOnly: true,
},
],
'jsdoc/require-asterisk-prefix': 'warn',

@@ -9,0 +21,0 @@ 'jsdoc/require-description': 'warn',

{
"name": "eslint-config-cheminfo",
"version": "7.1.2",
"version": "7.2.0",
"description": "Shared ESLint config for cheminfo and ml.js projects",

@@ -5,0 +5,0 @@ "main": "index.js",

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