eslint-config-digiteels
Advanced tools
Comparing version 1.2.0 to 2.0.0
{ | ||
"extends": [ | ||
"./presets/es5.js", | ||
"./presets/node.js" | ||
"./ecmaVersion/5.js", | ||
"./env/node.js" | ||
] | ||
} |
{ | ||
"name": "eslint-config-digiteels", | ||
"description": "ESLint rule presets built and suggested by DigitEels", | ||
"version": "1.2.0", | ||
"description": "Custom ESLint configs based on DigitEels' style recommendations.", | ||
"version": "2.0.0", | ||
"author": "DigitEels", | ||
@@ -18,3 +18,3 @@ "bugs": { | ||
"license": "WTFPL", | ||
"main": "presets/es6.js", | ||
"main": "ecmaVersion/6.js", | ||
"peerDependencies": { | ||
@@ -30,7 +30,13 @@ "eslint": ">= 3.5.0" | ||
"lint": "eslint .", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"testonly": "mocha --compilers js:babel-core/register test/*.js", | ||
"test": "npm run lint && npm run testonly" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.16.0", | ||
"babel-plugin-transform-es2015-arrow-functions": "^6.8.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.16.0", | ||
"babel-plugin-transform-strict-mode": "^6.11.3", | ||
"babel-preset-es2016": "^6.16.0", | ||
"eslint": "^3.6.1" | ||
} | ||
} |
@@ -7,3 +7,3 @@ # eslint-config-digiteels | ||
Provides ES5 and ES6 ESLint configurations based on DigitEels' recommendations about style. | ||
Custom ESLint configs based on DigitEels' style recommendations. | ||
@@ -17,3 +17,4 @@ Heavily influenced by: | ||
Install with ESLint for development using npm (requires ESlint v3.5.0 and above): | ||
Install with ESLint for development using npm (requires [ESLint](https://github.com/eslint/eslint) | ||
v3.5.0 and above): | ||
@@ -25,3 +26,3 @@ ``` | ||
Extend your [ESLint configuration](http://eslint.org/docs/user-guide/configuring) using `digiteels` | ||
(or one of the below presets), for example: | ||
(or one of the below configs), for example: | ||
@@ -36,16 +37,16 @@ ```json | ||
## Presets | ||
## Configurations | ||
The following full configurations are included in this package: | ||
Start by extending a complete configuration for one of the following ECMAScript versions: | ||
- **ES6:** `digiteels/presets/es6` (default) | ||
- **ES5:** `digiteels/presets/es5` | ||
- **ES6:** `digiteels/ecmaVersion/6` (default) | ||
- **ES5:** `digiteels/ecmaVersion/5` | ||
The following add-on configurations are also included and should be combined with one of the | ||
configurations above: | ||
Additionally extend one or more of the following environment / framework configurations applicable | ||
to your project: | ||
- **Node.js:** `digiteels/presets/node` | ||
- **React:** `digiteels/presets/react` | ||
- **Node.js:** `digiteels/env/node` | ||
- **React:** `digiteels/env/react` | ||
An example of a Node.js project in ES6: | ||
For example, for a Node.js project using ES6: | ||
@@ -56,3 +57,3 @@ ```json | ||
"digiteels", | ||
"digiteels/presets/node" | ||
"digiteels/env/node" | ||
] | ||
@@ -59,0 +60,0 @@ } |
@@ -198,6 +198,3 @@ 'use strict'; | ||
// disallow unused expressions | ||
'no-unused-expressions': ['error', { | ||
allowShortCircuit: false, | ||
allowTernary: false, | ||
}], | ||
'no-unused-expressions': 'off', | ||
@@ -204,0 +201,0 @@ // disallow unused labels |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
36814
27
1008
1
61
6
4