🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@poool/eslint-plugin

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poool/eslint-plugin - npm Package Compare versions

Comparing version

to
1.4.0

docs/rules/no-unneeded-ternary.md

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [1.4.0](https://github.com/p3ol/eslint-config/compare/v1.3.6...v1.4.0) (2020-11-25)
### Features
* **plugin:** extend no-unneeded-ternary for expression statements ([ce64c32](https://github.com/p3ol/eslint-config/commit/ce64c328ae56ff1c568c27f9c9f7532b072fe5bb))
## [1.3.3](https://github.com/p3ol/eslint-config/compare/v1.3.2...v1.3.3) (2020-11-02)

@@ -8,0 +19,0 @@

3

lib/index.js

@@ -9,2 +9,3 @@ const OFF = 0;

'no-extra-parens': require('./rules/no-extra-parens'),
'no-unneeded-ternary': require('./rules/no-unneeded-ternary'),
},

@@ -22,2 +23,4 @@ configs: {

'@poool/camelcase': [ERROR, { allow: ['^UNSAFE_'] }],
'no-unneeded-ternary': OFF,
'@poool/no-unneeded-ternary': ERROR,
},

@@ -24,0 +27,0 @@ },

8

package.json
{
"name": "@poool/eslint-plugin",
"version": "1.3.3",
"version": "1.4.0",
"description": "Custom set of ESLint rules we need and enforce at Poool",

@@ -17,4 +17,4 @@ "main": "lib/index.js",

"devDependencies": {
"eslint": "7.12.1",
"jest": "26.6.2"
"eslint": "7.14.0",
"jest": "26.6.3"
},

@@ -30,3 +30,3 @@ "dependencies": {

},
"gitHead": "361f6498882bf43b3b33740cbe500f1fd7fce3fb"
"gitHead": "6a080c2feb59eaa74c979f62c65fc695d27f93d5"
}

@@ -27,3 +27,5 @@ # Poool ESLint Plugin

"no-extra-parens": "off",
"@poool/no-extra-parens": "error"
"@poool/no-extra-parens": "error",
"no-unneeded-ternary": "off",
"@poool/no-unneeded-ternary": "error"
}

@@ -39,2 +41,3 @@ }

| `@poool/no-extra-parens` | [`no-extra-parens`](https://eslint.org/docs/rules/no-extra-parens), but allows conditional spreads to be wrapped with parentheses | [documentation](https://github.com/p3ol/eslint-config/tree/master/packages/eslint-plugin/docs/rules/no-extra-parens.md) |
| `@poool/no-unneeded-ternary` | [`no-unneeded-ternary`](https://eslint.org/docs/rules/no-unneeded-ternary), but with an extra condition to disallow ternary expressions as expression statements | [documentation](https://github.com/p3ol/eslint-config/tree/master/packages/eslint-plugin/docs/rules/no-unneeded-ternary.md) |

@@ -41,0 +44,0 @@ ## Shareable configurations

@@ -6,3 +6,2 @@ const { RuleTester } = require('eslint');

const runner = new RuleTester({
parser: require.resolve('@babel/eslint-parser'),
parserOptions: { ecmaVersion: 2020 },

@@ -9,0 +8,0 @@ });

Sorry, the diff of this file is not supported yet