@ornikar/eslint-config 18.5.0 → 18.7.0
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/CHANGELOG.md +22 -0
- package/_shared.js +7 -3
- package/package.json +4 -3
- package/rules/node.js +1 -0
- package/rules/security.js +22 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [18.7.0](https://github.com/ornikar/eslint-configs/compare/v18.6.0...v18.7.0) (2022-04-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add and configure eslint-plugin-security ARCH-1520 ([#298](https://github.com/ornikar/eslint-configs/issues/298)) ([9168a5e](https://github.com/ornikar/eslint-configs/commit/9168a5e66ec174570e063cebcb5eb47ea178deba))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [18.6.0](https://github.com/ornikar/eslint-configs/compare/v18.5.0...v18.6.0) (2022-04-26)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **eslint-config-typescript:** disable node/no-unsupported-features for typescript ([481cf34](https://github.com/ornikar/eslint-configs/commit/481cf34f221138b5c6691dc9031571c34f703651))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [18.5.0](https://github.com/ornikar/eslint-configs/compare/v18.4.0...v18.5.0) (2022-04-26)
|
|
7
29
|
|
|
8
30
|
|
package/_shared.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
extends: [
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
extends: [
|
|
5
|
+
'./rules/best-practices',
|
|
6
|
+
'./rules/style',
|
|
7
|
+
'./rules/sort-imports-exports',
|
|
8
|
+
'./rules/security',
|
|
9
|
+
'./rules/unicorn',
|
|
10
|
+
].map(require.resolve),
|
|
7
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ornikar/eslint-config",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.7.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"repository": "ornikar/eslint-configs",
|
|
6
6
|
"main": "index.js",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"eslint-plugin-import": "^2.25.4",
|
|
18
18
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
19
19
|
"eslint-plugin-node": "^11.1.0",
|
|
20
|
+
"eslint-plugin-security": "^1.5.0",
|
|
20
21
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
21
22
|
"eslint-plugin-unicorn": "^42.0.0"
|
|
22
23
|
},
|
|
@@ -25,8 +26,8 @@
|
|
|
25
26
|
"prettier": "^2.2.1"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
|
-
"eslint": "8.
|
|
29
|
+
"eslint": "8.14.0",
|
|
29
30
|
"prettier": "2.6.2"
|
|
30
31
|
},
|
|
31
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "7513918d688075a9910279605b719bf9632880e4"
|
|
32
33
|
}
|
package/rules/node.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
// https://github.com/nodesecurity/eslint-plugin-security
|
|
5
|
+
plugins: ['security'],
|
|
6
|
+
extends: ['plugin:security/recommended'],
|
|
7
|
+
rules: {
|
|
8
|
+
'security/detect-buffer-noassert': 'error',
|
|
9
|
+
'security/detect-child-process': 'error',
|
|
10
|
+
'security/detect-disable-mustache-escape': 'error',
|
|
11
|
+
'security/detect-eval-with-expression': 'error',
|
|
12
|
+
'security/detect-new-buffer': 'error',
|
|
13
|
+
'security/detect-no-csrf-before-method-override': 'error',
|
|
14
|
+
'security/detect-non-literal-fs-filename': 'error',
|
|
15
|
+
'security/detect-non-literal-regexp': 'error',
|
|
16
|
+
'security/detect-non-literal-require': 'error',
|
|
17
|
+
'security/detect-object-injection': 'off', // we use it when necessary and don't call it so not a security issue for us
|
|
18
|
+
'security/detect-possible-timing-attacks': 'error',
|
|
19
|
+
'security/detect-pseudoRandomBytes': 'error',
|
|
20
|
+
'security/detect-unsafe-regex': 'error',
|
|
21
|
+
},
|
|
22
|
+
};
|