@girder/eslint-config 3.1.3 → 3.1.9
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/README.md +1 -1
- package/index.js +11 -4
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Backbone-based web clients and plugins.
|
|
|
7
7
|
Typically, users of this package should depend on
|
|
8
8
|
`@girder/eslint-config` and its peerDependencies via:
|
|
9
9
|
```bash
|
|
10
|
-
npm install --save-dev @girder/eslint-config eslint@^5 eslint-config-semistandard@^13 eslint-config-standard@^12 eslint-plugin-backbone eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard
|
|
10
|
+
npm install --save-dev @girder/eslint-config eslint@^5 eslint-config-semistandard@^13 eslint-config-standard@^12 eslint-plugin-backbone eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard
|
|
11
11
|
```
|
|
12
12
|
then add `"extends": "@girder"`
|
|
13
13
|
[to their project's local ESLint config](https://eslint.org/docs/developer-guide/shareable-configs#using-a-shareable-config).
|
package/index.js
CHANGED
|
@@ -65,7 +65,9 @@ module.exports = {
|
|
|
65
65
|
'promise/no-native': 'error',
|
|
66
66
|
'promise/no-nesting': 'error',
|
|
67
67
|
'promise/no-return-in-finally': 'error',
|
|
68
|
-
'promise/no-return-wrap': 'error'
|
|
68
|
+
'promise/no-return-wrap': 'error'
|
|
69
|
+
/*
|
|
70
|
+
* See comments below about removing underscore linting.
|
|
69
71
|
'underscore/collection-return': 'error',
|
|
70
72
|
'underscore/identity-shorthand': ['error', 'always'],
|
|
71
73
|
'underscore/jquery-each': ['error', 'never'],
|
|
@@ -88,14 +90,19 @@ module.exports = {
|
|
|
88
90
|
'underscore/prefer-underscore-typecheck': 'error',
|
|
89
91
|
'underscore/prefer-where': 'error',
|
|
90
92
|
'underscore/preferred-alias': 'error',
|
|
91
|
-
'underscore/prop-shorthand': ['error', 'always']
|
|
93
|
+
'underscore/prop-shorthand': ['error', 'always']a
|
|
94
|
+
*/
|
|
92
95
|
},
|
|
93
96
|
env: {
|
|
94
97
|
browser: true
|
|
95
98
|
},
|
|
96
99
|
plugins: [
|
|
97
|
-
'backbone'
|
|
98
|
-
|
|
100
|
+
'backbone'
|
|
101
|
+
// we had included the underscore plugin, but it is woefully out of
|
|
102
|
+
// date and has security warnings on its dependencies. Until we update
|
|
103
|
+
// to a better or newer version, disable it so that we don't pull in
|
|
104
|
+
// critically insecure packages.
|
|
105
|
+
// 'underscore'
|
|
99
106
|
],
|
|
100
107
|
settings: {
|
|
101
108
|
backbone: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girder/eslint-config",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"description": "ESLint configuration for Girder.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
"eslint-config-semistandard": ">=15.0.0",
|
|
15
15
|
"eslint-plugin-backbone": ">=2.1.1",
|
|
16
16
|
"eslint-plugin-import": ">=2.19.1",
|
|
17
|
-
"eslint-plugin-promise": ">=4.2.1"
|
|
18
|
-
"eslint-plugin-underscore": ">=0.0.10"
|
|
17
|
+
"eslint-plugin-promise": ">=4.2.1"
|
|
19
18
|
},
|
|
20
19
|
"keywords": [
|
|
21
20
|
"eslint",
|