eslint-config-simplesense 1.1.0 → 2.0.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
@@ -1,4 +1,34 @@
1
1
  Changelog
2
+ ## [2.0.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.2.0...2.0.0) (2021-12-01)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * **npm:** Compatible with eslint version 8
8
+
9
+ * **npm:** update dependencies ([1b5b299](https://github.com/simplesenseio/eslint-config-simplesense/commit/1b5b2999429a60802443cd10ccf593cc2023dfcf)), closes [SI-1201171801561261](https://app.asana.com/0/0/1201171801561261)
10
+
11
+ ## [1.2.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.1.2...1.2.0) (2021-11-08)
12
+
13
+
14
+ ### Features
15
+
16
+ * adds a global for spyFn ([7c47bdb](https://github.com/simplesenseio/eslint-config-simplesense/commit/7c47bdb0be3eb592ebb021cb9ac10b15f3127e4d)), closes [SI-1201331635004549](https://app.asana.com/0/0/1201331635004549)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * vuepress missing hash-sum module error ([4213662](https://github.com/simplesenseio/eslint-config-simplesense/commit/42136623fd4237c411eef917aba07656a71537f2))
22
+
23
+ ### [1.1.2](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.1.1...1.1.2) (2021-09-29)
24
+
25
+ ### [1.1.1](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.1.0...1.1.1) (2021-09-14)
26
+
27
+
28
+ ### Code Refactoring
29
+
30
+ * allow underscore-dangle with super ([2ef4ecc](https://github.com/simplesenseio/eslint-config-simplesense/commit/2ef4ecc4cffeb5e046f034d08cf212406760c788))
31
+
2
32
  ## [1.1.0](https://github.com/simplesenseio/eslint-config-simplesense/compare/1.0.6...1.1.0) (2021-09-13)
3
33
 
4
34
 
package/index.js CHANGED
@@ -76,5 +76,8 @@
76
76
  },
77
77
  },
78
78
  ],
79
+ globals: {
80
+ spyFn: true,
81
+ },
79
82
  };
80
83
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-simplesense",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "ESLint Config for SimpleSense Styles",
5
5
  "keywords": [
6
6
  "eslint",
@@ -28,11 +28,11 @@
28
28
  "docs:clean": "rm -rf docs/.vuepress/dist ./dist",
29
29
  "docs:dev": "npm run docs:clean && npm run docs:generate && vuepress dev docs",
30
30
  "docs:generate": "node scripts/generate-docs.js",
31
- "docs:nojekyll": "touch dist/.nojekyll",
32
31
  "docs:mv": "mv docs/.vuepress/dist ./",
32
+ "docs:nojekyll": "touch dist/.nojekyll",
33
33
  "lint": "npm run lint:package-json && npm run lint:eslint",
34
- "lint:package-json": "sort-package-json",
35
34
  "lint:eslint": "eslint --config index.js --fix '**/*.{js,vue,yaml,yml}'",
35
+ "lint:package-json": "sort-package-json",
36
36
  "test": "jest"
37
37
  },
38
38
  "jest": {
@@ -41,28 +41,38 @@
41
41
  "index.js",
42
42
  "plugins/*.js"
43
43
  ],
44
+ "moduleNameMapper": {
45
+ "eslint/use-at-your-own-risk": "eslint/lib/unsupported-api"
46
+ },
47
+ "setupFiles": [
48
+ "<rootDir>/test/setup/global-functions.js"
49
+ ],
44
50
  "verbose": true
45
51
  },
46
52
  "dependencies": {
47
53
  "eslint-plugin-array-func": "^3.1.7",
48
54
  "eslint-plugin-eslint-comments": "^3.2.0",
49
- "eslint-plugin-import": "^2.24.2",
55
+ "eslint-plugin-import": "^2.25.3",
50
56
  "eslint-plugin-no-use-extend-native": "^0.5.0",
51
57
  "eslint-plugin-node": "^11.1.0",
52
58
  "eslint-plugin-optimize-regex": "^1.2.1",
53
- "eslint-plugin-regexp": "^1.1.0",
59
+ "eslint-plugin-regexp": "^1.5.1",
54
60
  "eslint-plugin-security": "^1.4.0",
55
- "eslint-plugin-sonarjs": "^0.10.0",
56
- "eslint-plugin-unicorn": "^36.0.0",
57
- "eslint-plugin-vue": "^7.17.0",
58
- "eslint-plugin-yml": "^0.10.1"
61
+ "eslint-plugin-sonarjs": "^0.11.0",
62
+ "eslint-plugin-unicorn": "^39.0.0",
63
+ "eslint-plugin-vue": "^8.1.1",
64
+ "eslint-plugin-yml": "^0.12.0"
59
65
  },
60
66
  "devDependencies": {
61
67
  "@vuepress/plugin-pwa": "^1.8.2",
62
- "eslint": "^7.32.0",
63
- "jest": "^27.2.0",
64
- "sort-package-json": "^1.51.0",
68
+ "eslint": "^8.3.0",
69
+ "hash-sum": "^2.0.0",
70
+ "jest": "^27.4.3",
71
+ "sort-package-json": "^1.53.1",
65
72
  "vuepress": "^1.8.2",
66
73
  "vuepress-theme-default-prefers-color-scheme": "^2.0.0"
74
+ },
75
+ "peerDependencies": {
76
+ "eslint": ">=8.0.0"
67
77
  }
68
78
  }
@@ -113,7 +113,7 @@
113
113
  'no-throw-literal': ['error'],
114
114
  'no-trailing-spaces': ['error'],
115
115
  'no-undef-init': ['error'],
116
- 'no-underscore-dangle': [ 'error', { allowAfterThis: true, enforceInMethodNames: false }],
116
+ 'no-underscore-dangle': [ 'error', { allowAfterSuper: true, allowAfterThis: true, enforceInMethodNames: false }],
117
117
  'no-unneeded-ternary': ['error'],
118
118
  'no-unreachable-loop': ['error'],
119
119
  'no-unsafe-negation': ['error'],
@@ -43,7 +43,6 @@
43
43
  'unicorn/prefer-string-starts-ends-with': ['error'],
44
44
  'unicorn/prefer-string-trim-start-end': ['error'],
45
45
  'unicorn/prefer-type-error': ['error'],
46
- // not yet released
47
46
  'unicorn/require-array-join-separator': ['error'],
48
47
  'unicorn/require-number-to-fixed-digits-argument': ['error'],
49
48
  'unicorn/throw-new-error': ['error'],