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

eslint-plugin-radar

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-radar - npm Package Compare versions

Comparing version

to
0.2.1

LICENSE-LGPL3.0-only.txt

24

CHANGES.md
# CHANGES for `eslint-plugin-radar`
## 0.2.1
- License: Update license file name to reflect license type is specifically
LGPL-3.0-only
- npm: Change `license` to non-deprecated SPDX identifier, `LGPL-3.0-only`
as per:
<https://github.com/SonarSource/eslint-plugin-sonarjs/issues/190>)
**Dev-focused:**
- Linting: Apply prettier to MD files and reapply latest to whole project
- npm: Revert back to using fixed rather than self-referential version of
`eslint-plugin-radar` for self-linting (was adding to file space)
## 0.2.0
- Enhancement: add 'meta.docs' (@Loxos)
- License: Rename file name to reflect license type and add extension
- Enhancement: add `meta.docs` (@Loxos)
- License: Rename file name to reflect license type (LGPL-3) and add extension
- Docs: Add `CHANGES.md`

@@ -17,3 +31,2 @@

- License: Add headers to hidden files
- Optimization: Add "use strict" for CJS files
- npm: Add ESLint 7 to peerDeps.

@@ -27,8 +40,9 @@ - npm: Bump engines to avoid EOL versions (Node >=10)

- Optimization: Add "use strict" for CJS eslint files
- Linting: Apply latest `prettier` (adding `.prettierignore` to avoid applying
to test sources); apply latest `eslint-plugin-import`
to test sources); apply latest `eslint-plugin-import`
- Linting: Check hidden files
- Linting: Check all files by default, ignoring test sources and lib
- Linting: Create separate ignore file for ruling (which lints nested
`node_modules`)
`node_modules`)
- Testing: Ensure test-ci script runs (now that Node 8 is removed)

@@ -35,0 +49,0 @@ - Travis: Bump Node versions to 12 and 14

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-3776

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1479

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-3923

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1066

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-3981

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1192

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1871

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-4143

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-930

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1862

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1764

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-4144

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1940

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1751

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1125

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-3626

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-3972

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1301

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-4030

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-3699

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1940

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1488

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-2428

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1126

@@ -7,6 +7,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -19,4 +19,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -23,0 +23,0 @@ // https://jira.sonarsource.com/browse/RSPEC-1264

@@ -9,6 +9,6 @@ "use strict";

*
* This program is free software; you can redistribute it and/or
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* License as published by the Free Software Foundation,
* version 3.
*

@@ -21,4 +21,4 @@ * This program is distributed in the hope that it will be useful,

* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

@@ -25,0 +25,0 @@ exports.collectionConstructor = ["Array", "Map", "Set", "WeakSet", "WeakMap"];

{
"name": "eslint-plugin-radar",
"version": "0.2.0",
"version": "0.2.1",
"author": "Brett Zamir",

@@ -10,3 +10,3 @@ "contributors": [],

"repository": "https://github.com/es-joy/eslint-plugin-radar",
"license": "LGPL-3.0",
"license": "LGPL-3.0-only",
"keywords": [

@@ -25,17 +25,6 @@ "radar",

},
"scripts": {
"prettier": "prettier --list-different \"{src,tests}/**/*.{js,ts}\"",
"eslint": "eslint --ext js,ts .",
"lint": "yarn eslint && yarn prettier",
"typecheck": "tsc -p tsconfig.json",
"precommit": "lint-staged && yarn typecheck",
"build": "rimraf lib && tsc -d -p tsconfig-src.json",
"prepack": "yarn build",
"ruling": "ts-node ruling/index.ts",
"jest": "jest",
"test": "jest --coverage"
},
"peerDependencies": {
"eslint": ">= 3.0.0 <= 7.x.x"
},
"dependencies": {},
"devDependencies": {

@@ -55,3 +44,3 @@ "@types/eslint": "7.2.6",

"eslint-plugin-notice": "0.9.10",
"eslint-plugin-radar": "file:.",
"eslint-plugin-radar": "^0.2.0",
"jest": "26.6.3",

@@ -101,7 +90,18 @@ "lint-staged": "10.5.3",

],
"*.json": [
"*.{json,md}": [
"prettier --write"
]
},
"dependencies": {}
"scripts": {
"prettier": "prettier --list-different \"{src,tests}/**/*.{js,ts}\"",
"eslint": "eslint --ext js,ts .",
"lint": "yarn eslint && yarn prettier",
"typecheck": "tsc -p tsconfig.json",
"precommit": "lint-staged && yarn typecheck",
"build": "rimraf lib && tsc -d -p tsconfig-src.json",
"prepack": "yarn build",
"ruling": "ts-node ruling/index.ts",
"jest": "jest",
"test": "jest --coverage"
}
}

@@ -14,9 +14,9 @@ # eslint-plugin-radar [![npm version](https://badge.fury.io/js/eslint-plugin-radar.svg)](https://badge.fury.io/js/eslint-plugin-radar) [![Build Status](https://travis-ci.com/es-joy/eslint-plugin-radar.svg?branch=master)](https://travis-ci.com/es-joy/eslint-plugin-radar) [![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=eslint-plugin-radar&metric=alert_status)](https://sonarcloud.io/dashboard?id=eslint-plugin-radar) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=eslint-plugin-radar&metric=coverage)](https://sonarcloud.io/dashboard?id=eslint-plugin-radar)

* All branches in a conditional structure should not have exactly the same implementation ([`no-all-duplicated-branches`])
* Collection elements should not be replaced unconditionally ([`no-element-overwrite`])
* Function calls should not pass extra arguments ([`no-extra-arguments`])
* Related "if/else if" statements should not have the same condition ([`no-identical-conditions`])
* Identical expressions should not be used on both sides of a binary operator ([`no-identical-expressions`])
* Loops with at most one iteration should be refactored ([`no-one-iteration-loop`])
* The output of functions that don't return anything should not be used ([`no-use-of-empty-return-value`])
- All branches in a conditional structure should not have exactly the same implementation ([`no-all-duplicated-branches`])
- Collection elements should not be replaced unconditionally ([`no-element-overwrite`])
- Function calls should not pass extra arguments ([`no-extra-arguments`])
- Related "if/else if" statements should not have the same condition ([`no-identical-conditions`])
- Identical expressions should not be used on both sides of a binary operator ([`no-identical-expressions`])
- Loops with at most one iteration should be refactored ([`no-one-iteration-loop`])
- The output of functions that don't return anything should not be used ([`no-use-of-empty-return-value`])

@@ -27,20 +27,20 @@ ### Code Smell Detection :pig:

* Cognitive Complexity of functions should not be too high ([`cognitive-complexity`])
* "switch" statements should not have too many "case" clauses ([`max-switch-cases`])
* Collapsible "if" statements should be merged ([`no-collapsible-if`])
* Collection sizes and array length comparisons should make sense ([`no-collection-size-mischeck`])
* String literals should not be duplicated ([`no-duplicate-string`])
* Two branches in a conditional structure should not have exactly the same implementation ([`no-duplicated-branches`])
* Functions should not have identical implementations ([`no-identical-functions`])
* Boolean checks should not be inverted ([`no-inverted-boolean-check`]) (:wrench: *fixable*)
* Boolean literals should not be redundant ([`no-redundant-boolean`])
* Jump statements should not be redundant ([`no-redundant-jump`])
* Conditionals should start on new lines ([`no-same-line-conditional`])
* "switch" statements should have at least 3 "case" clauses ([`no-small-switch`])
* Collection and array contents should be used ([`no-unused-collection`])
* "catch" clauses should do more than rethrow ([`no-useless-catch`])
* Local variables should not be declared and then immediately returned or thrown ([`prefer-immediate-return`]) (:wrench: *fixable*)
* Object literal syntax should be used ([`prefer-object-literal`])
* Return of boolean expressions should not be wrapped into an "if-then-else" statement ([`prefer-single-boolean-return`])
* A "while" loop should be used instead of a "for" loop ([`prefer-while`]) (:wrench: *fixable*)
- Cognitive Complexity of functions should not be too high ([`cognitive-complexity`])
- "switch" statements should not have too many "case" clauses ([`max-switch-cases`])
- Collapsible "if" statements should be merged ([`no-collapsible-if`])
- Collection sizes and array length comparisons should make sense ([`no-collection-size-mischeck`])
- String literals should not be duplicated ([`no-duplicate-string`])
- Two branches in a conditional structure should not have exactly the same implementation ([`no-duplicated-branches`])
- Functions should not have identical implementations ([`no-identical-functions`])
- Boolean checks should not be inverted ([`no-inverted-boolean-check`]) (:wrench: _fixable_)
- Boolean literals should not be redundant ([`no-redundant-boolean`])
- Jump statements should not be redundant ([`no-redundant-jump`])
- Conditionals should start on new lines ([`no-same-line-conditional`])
- "switch" statements should have at least 3 "case" clauses ([`no-small-switch`])
- Collection and array contents should be used ([`no-unused-collection`])
- "catch" clauses should do more than rethrow ([`no-useless-catch`])
- Local variables should not be declared and then immediately returned or thrown ([`prefer-immediate-return`]) (:wrench: _fixable_)
- Object literal syntax should be used ([`prefer-object-literal`])
- Return of boolean expressions should not be wrapped into an "if-then-else" statement ([`prefer-single-boolean-return`])
- A "while" loop should be used instead of a "for" loop ([`prefer-while`]) (:wrench: _fixable_)

@@ -79,4 +79,4 @@ [`cognitive-complexity`]: ./docs/rules/cognitive-complexity.md

* If you don't have ESLint yet configured for your project, follow [these instructions](https://github.com/eslint/eslint#installation-and-usage).
* Install `eslint-plugin-radar` using `npm` (or `yarn`) for you project or globally:
- If you don't have ESLint yet configured for your project, follow [these instructions](https://github.com/eslint/eslint#installation-and-usage).
- Install `eslint-plugin-radar` using `npm` (or `yarn`) for you project or globally:

@@ -88,3 +88,3 @@ ```sh

* Add `eslint-plugin-radar` to the `plugins` option of your `.eslintrc`:
- Add `eslint-plugin-radar` to the `plugins` option of your `.eslintrc`:

@@ -97,3 +97,3 @@ ```json

* Add `plugin:radar/recommended` to the `extends` option to enable all recommended rules:
- Add `plugin:radar/recommended` to the `extends` option to enable all recommended rules:

@@ -106,3 +106,3 @@ ```json

* or enable only some rules manually:
- or enable only some rules manually:

@@ -109,0 +109,0 @@ ```javascript