@ornikar/eslint-config 18.9.0 → 18.12.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 CHANGED
@@ -3,6 +3,49 @@
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.12.0](https://github.com/ornikar/eslint-configs/compare/v18.11.0...v18.12.0) (2022-06-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * tests override extends from parent configs [no issue] ([#325](https://github.com/ornikar/eslint-configs/issues/325)) ([5364d72](https://github.com/ornikar/eslint-configs/commit/5364d72b10b105d6d6c1f8925578821a15db516c))
12
+
13
+
14
+ ### Features
15
+
16
+ * **eslint-config:** no-array-push-push [no issue] ([#324](https://github.com/ornikar/eslint-configs/issues/324)) ([88bc3d9](https://github.com/ornikar/eslint-configs/commit/88bc3d93c8ff2ff139ff7cb6f9c7adea8fb0390c))
17
+
18
+
19
+
20
+
21
+
22
+ # [18.11.0](https://github.com/ornikar/eslint-configs/compare/v18.10.0...v18.11.0) (2022-06-07)
23
+
24
+
25
+ ### Features
26
+
27
+ * disable no-process-exit rule from eslint-plugin-node [no issue] ([#322](https://github.com/ornikar/eslint-configs/issues/322)) ([f51fd2c](https://github.com/ornikar/eslint-configs/commit/f51fd2c5deecdda56d8746c1e8ab951ca5e9e0dc))
28
+
29
+
30
+
31
+
32
+
33
+ # [18.10.0](https://github.com/ornikar/eslint-configs/compare/v18.9.0...v18.10.0) (2022-05-31)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **eslint-config:** allow non-linteral fs filename for tests ([31cc2f3](https://github.com/ornikar/eslint-configs/commit/31cc2f3d98a415956122a315ec742ed30120865e))
39
+
40
+
41
+ ### Features
42
+
43
+ * **eslint-config:** prefer-native-coercion-functions ([#311](https://github.com/ornikar/eslint-configs/issues/311)) ([ecb42c7](https://github.com/ornikar/eslint-configs/commit/ecb42c7146cee49d705357bfe29e68d7438c1859))
44
+
45
+
46
+
47
+
48
+
6
49
  # [18.9.0](https://github.com/ornikar/eslint-configs/compare/v18.8.0...v18.9.0) (2022-05-31)
7
50
 
8
51
 
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@ornikar/eslint-config",
3
- "version": "18.9.0",
3
+ "version": "18.12.0",
4
4
  "description": "eslint config files",
5
- "repository": "ornikar/eslint-configs",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/ornikar/eslint-configs.git",
8
+ "directory": "@ornikar/eslint-config"
9
+ },
6
10
  "main": "index.js",
7
11
  "license": "ISC",
8
12
  "engines": {
@@ -30,5 +34,5 @@
30
34
  "eslint": "8.16.0",
31
35
  "prettier": "2.6.2"
32
36
  },
33
- "gitHead": "73961ae24c60cc850315d92ec574694e2175685b"
37
+ "gitHead": "7b75be7ac2f3b1a8e1e4a9c3c5ff47814675ae2c"
34
38
  }
@@ -15,8 +15,9 @@ module.exports = {
15
15
  // Use for-of instead of for
16
16
  'unicorn/no-for-loop': 'error',
17
17
 
18
- // allow process.exit
18
+ // allow process.exit, disallowed when not used in script via https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-process-exit.md
19
19
  'no-process-exit': 'off',
20
+ 'n/no-process-exit': 'off',
20
21
 
21
22
  // Allow for-of, now supported by node 6
22
23
  'no-restricted-syntax': [
package/rules/unicorn.js CHANGED
@@ -215,7 +215,7 @@ const formTree = shallow(tree.find(x => FormWithApiCall(x)).prop('children')());
215
215
  'unicorn/no-array-for-each': 'off',
216
216
 
217
217
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-push-push.md
218
- 'unicorn/no-array-push-push': 'off',
218
+ 'unicorn/no-array-push-push': 'error',
219
219
 
220
220
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-this-assignment.md
221
221
  'unicorn/no-this-assignment': 'off',
@@ -290,6 +290,6 @@ const formTree = shallow(tree.find(x => FormWithApiCall(x)).prop('children')());
290
290
  'unicorn/no-unreadable-iife': 'off',
291
291
 
292
292
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-native-coercion-functions.md
293
- 'unicorn/prefer-native-coercion-functions': 'off',
293
+ 'unicorn/prefer-native-coercion-functions': 'error',
294
294
  },
295
295
  };
package/tests-override.js CHANGED
@@ -5,7 +5,7 @@ module.exports = {
5
5
  jest: true,
6
6
  },
7
7
 
8
- extends: ['.', './rules/jest'].map(require.resolve),
8
+ extends: ['./rules/jest'].map(require.resolve),
9
9
 
10
10
  rules: {
11
11
  // Allow to use devDependencies
@@ -15,5 +15,9 @@ module.exports = {
15
15
  devDependencies: true,
16
16
  },
17
17
  ],
18
+
19
+ // Allow non-literal fs filename for tests
20
+ 'security/detect-non-literal-fs-filename': 'off',
21
+ 'security/detect-non-literal-require': 'off',
18
22
  },
19
23
  };