eslint-config-simplesense 2.1.0 → 2.3.1

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
@@ -1,4 +1,27 @@
1
1
  Changelog
2
+ ### [2.3.1](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.3.0...2.3.1) (2022-01-23)
3
+
4
+ ## [2.3.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.2.0...2.3.0) (2022-01-04)
5
+
6
+
7
+ ### Features
8
+
9
+ * adds new unicorn rules no-thenable, no-useless-promise-resolve-reject ([dee451d](https://github.com/simplesenseio/eslint-config-simplesense/commit/dee451df2019fbff57f8e34f58f4c89666ae8579))
10
+
11
+ ## [2.2.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.1.1...2.2.0) (2021-12-27)
12
+
13
+
14
+ ### Features
15
+
16
+ * eslint-plugin-node settings for no-missing-require and no-unpublished-require ([2856955](https://github.com/simplesenseio/eslint-config-simplesense/commit/2856955b3887dd4b70d887edf397690845a96229)), closes [SI-1201495731599439](https://app.asana.com/0/0/1201495731599439)
17
+
18
+ ### [2.1.1](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.1.0...2.1.1) (2021-12-20)
19
+
20
+
21
+ ### Code Refactoring
22
+
23
+ * includes .github/actions in the ignore patterns ([856cb1d](https://github.com/simplesenseio/eslint-config-simplesense/commit/856cb1dd80dc1d42d1acd4ba404d6aa55a658464))
24
+
2
25
  ## [2.1.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/2.0.0...2.1.0) (2021-12-02)
3
26
 
4
27
 
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # SimpleSense ESLint Config
2
2
 
3
3
  [![GitHub Pages](https://img.shields.io/static/v1?label=GitHub&message=Pages&color=informational&style=flat-square&logo=github)](https://simplesenseio.github.io/eslint-config-simplesense/)
4
- [![Build](https://github.com/simplesenseio/eslint-config-simplesense/actions/workflows/build.yml/badge.svg?branch=main&style=flat-square)](https://github.com/simplesenseio/eslint-config-simplesense/actions/workflows/build.yml)
4
+ [![Build](https://github.com/simplesenseio/eslint-config-simplesense/actions/workflows/build.yaml/badge.svg?branch=main&style=flat-square)](https://github.com/simplesenseio/eslint-config-simplesense/actions/workflows/build.yaml)
5
5
 
6
6
 
7
7
  ## Generating Documentation
package/index.js CHANGED
@@ -42,6 +42,7 @@
42
42
  '!.*',
43
43
  '.cache/',
44
44
  '.git/',
45
+ '.github/actions/',
45
46
  '.npm/',
46
47
  '.nyc_output/',
47
48
  'coverage/',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-simplesense",
3
- "version": "2.1.0",
3
+ "version": "2.3.1",
4
4
  "description": "ESLint Config for SimpleSense Styles",
5
5
  "keywords": [
6
6
  "eslint",
@@ -47,29 +47,33 @@
47
47
  "setupFiles": [
48
48
  "<rootDir>/test/setup/global-functions.js"
49
49
  ],
50
+ "testPathIgnorePatterns": [
51
+ "/node_modules/",
52
+ "<rootDir>/\\.github/"
53
+ ],
50
54
  "verbose": true
51
55
  },
52
56
  "dependencies": {
53
57
  "eslint-plugin-array-func": "^3.1.7",
54
58
  "eslint-plugin-eslint-comments": "^3.2.0",
55
- "eslint-plugin-import": "^2.25.3",
59
+ "eslint-plugin-import": "^2.25.4",
56
60
  "eslint-plugin-no-use-extend-native": "^0.5.0",
57
61
  "eslint-plugin-node": "^11.1.0",
58
62
  "eslint-plugin-optimize-regex": "^1.2.1",
59
63
  "eslint-plugin-regexp": "^1.5.1",
60
64
  "eslint-plugin-security": "^1.4.0",
61
65
  "eslint-plugin-sonarjs": "^0.11.0",
62
- "eslint-plugin-unicorn": "^39.0.0",
63
- "eslint-plugin-vue": "^8.1.1",
66
+ "eslint-plugin-unicorn": "^40.1.0",
67
+ "eslint-plugin-vue": "^8.3.0",
64
68
  "eslint-plugin-yml": "^0.12.0"
65
69
  },
66
70
  "devDependencies": {
67
- "@vuepress/plugin-pwa": "^1.8.2",
68
- "eslint": "^8.3.0",
71
+ "@vuepress/plugin-pwa": "^1.9.7",
72
+ "eslint": "^8.7.0",
69
73
  "hash-sum": "^2.0.0",
70
- "jest": "^27.4.3",
74
+ "jest": "^27.4.7",
71
75
  "sort-package-json": "^1.53.1",
72
- "vuepress": "^1.8.2",
76
+ "vuepress": "^1.9.7",
73
77
  "vuepress-theme-default-prefers-color-scheme": "^2.0.0"
74
78
  },
75
79
  "peerDependencies": {
package/plugins/node.js CHANGED
@@ -4,6 +4,7 @@
4
4
  const path = require('path');
5
5
 
6
6
  const NODE_VERSION = '>=14.0.0';
7
+ const ROOT_DIR = path.resolve(__dirname, '../../../');
7
8
 
8
9
  module.exports = {
9
10
  'node/callback-return': [
@@ -21,7 +22,8 @@
21
22
  'node/no-missing-import': ['error'],
22
23
  'node/no-missing-require': [
23
24
  'error', {
24
- resolvePaths: [path.resolve(__dirname, '../../../lambda/layers/node-modules/nodejs/node_modules')],
25
+ allowModules: ['aws-sdk'],
26
+ resolvePaths: [path.resolve(__dirname, `${ ROOT_DIR }/lambda/layers/node-modules/nodejs/node_modules`)],
25
27
  },
26
28
  ],
27
29
  'node/no-mixed-requires': [ 'error', { allowCall: true, grouping: true }],
@@ -32,7 +34,13 @@
32
34
  'node/no-unsupported-features/node-builtins': [ 'error', { version: NODE_VERSION }],
33
35
  'node/no-unpublished-bin': ['error'],
34
36
  'node/no-unpublished-import': ['error'],
35
- 'node/no-unpublished-require': ['error'],
37
+ 'node/no-unpublished-require': [
38
+ 'error', {
39
+ convertPath: {
40
+ [`${ path.relative(ROOT_DIR, '/opt/nodejs') }/*`]: [ '^(.*?)/opt/nodejs/(.*?)$', 'lambda/layers/$2/nodejs/$2' ],
41
+ },
42
+ },
43
+ ],
36
44
  'node/prefer-global/buffer': [ 'error', 'always' ],
37
45
  'node/prefer-global/console': [ 'error', 'always' ],
38
46
  'node/prefer-global/process': [ 'error', 'always' ],
@@ -18,9 +18,11 @@
18
18
  'unicorn/no-instanceof-array': ['error'],
19
19
  'unicorn/no-new-array': ['error'],
20
20
  'unicorn/no-process-exit': ['error'],
21
+ 'unicorn/no-thenable': ['error'],
21
22
  'unicorn/no-this-assignment': ['error'],
22
23
  'unicorn/no-unsafe-regex': ['error'],
23
24
  'unicorn/no-unused-properties': ['error'],
25
+ 'unicorn/no-useless-promise-resolve-reject': ['error'],
24
26
  'unicorn/no-useless-undefined': ['error'],
25
27
  'unicorn/no-zero-fractions': ['error'],
26
28
  'unicorn/number-literal-case': ['error'],