@newsteam/eslint-config 0.0.94 → 0.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ESLint plugin for enforcing newlines in ES6 import statements past a certain number of items.
|
|
4
|
+
*
|
|
5
|
+
* https://www.npmjs.com/package/eslint-plugin-import-newlines
|
|
6
|
+
*/
|
|
7
|
+
module.exports = {
|
|
8
|
+
plugins: ["import-newlines"],
|
|
9
|
+
rules: {
|
|
10
|
+
/*
|
|
11
|
+
* ESLint plugin for enforcing newlines in ES6 import statements past a certain number of items.
|
|
12
|
+
*
|
|
13
|
+
* https://www.npmjs.com/package/eslint-plugin-import-newlines
|
|
14
|
+
*/
|
|
15
|
+
"import-newlines/enforce": [
|
|
16
|
+
"error",
|
|
17
|
+
{
|
|
18
|
+
items: 2,
|
|
19
|
+
"max-len": Number.POSITIVE_INFINITY,
|
|
20
|
+
semi: false
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.95",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"types": "./lib/cjs/index.d.ts",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@types/modernizr": "3.5.3",
|
|
47
47
|
"confusing-browser-globals": "1.0.11",
|
|
48
|
-
"eslint-import-resolver-typescript": "2.5.0"
|
|
48
|
+
"eslint-import-resolver-typescript": "2.5.0",
|
|
49
|
+
"eslint-plugin-import-newlines": "^1.2.1"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@newsteam/jasmine": "0.0.40",
|