eslint-config-cityssm 2.0.0 → 2.1.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/eslint-config-cityssm.js +17 -1
- package/eslint-config-cityssm.ts +19 -1
- package/package.json +20 -7
package/eslint-config-cityssm.js
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = {
|
|
|
35
35
|
'plugin:promise/recommended',
|
|
36
36
|
'plugin:regexp/recommended',
|
|
37
37
|
'plugin:security/recommended-legacy',
|
|
38
|
-
'plugin:sonarjs/recommended',
|
|
38
|
+
'plugin:sonarjs/recommended-legacy',
|
|
39
39
|
'plugin:unicorn/recommended',
|
|
40
40
|
'plugin:@typescript-eslint/recommended'
|
|
41
41
|
],
|
|
@@ -73,6 +73,22 @@ module.exports = {
|
|
|
73
73
|
'n/no-missing-import': 'off',
|
|
74
74
|
'no-extra-semi': 'off',
|
|
75
75
|
'no-secrets/no-secrets': 'error',
|
|
76
|
+
'no-unsanitized/method': [
|
|
77
|
+
'error',
|
|
78
|
+
{
|
|
79
|
+
escape: {
|
|
80
|
+
methods: ['cityssm.escapeHTML']
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
'no-unsanitized/property': [
|
|
85
|
+
'error',
|
|
86
|
+
{
|
|
87
|
+
escape: {
|
|
88
|
+
methods: ['cityssm.escapeHTML']
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
],
|
|
76
92
|
'sonarjs/cognitive-complexity': ['warn', 20],
|
|
77
93
|
'sonarjs/no-duplicate-string': 'warn',
|
|
78
94
|
'sort-imports': [
|
package/eslint-config-cityssm.ts
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = {
|
|
|
36
36
|
'plugin:promise/recommended',
|
|
37
37
|
'plugin:regexp/recommended',
|
|
38
38
|
'plugin:security/recommended-legacy',
|
|
39
|
-
'plugin:sonarjs/recommended',
|
|
39
|
+
'plugin:sonarjs/recommended-legacy',
|
|
40
40
|
'plugin:unicorn/recommended',
|
|
41
41
|
'plugin:@typescript-eslint/recommended'
|
|
42
42
|
],
|
|
@@ -79,6 +79,24 @@ module.exports = {
|
|
|
79
79
|
'no-extra-semi': 'off',
|
|
80
80
|
'no-secrets/no-secrets': 'error',
|
|
81
81
|
|
|
82
|
+
'no-unsanitized/method': [
|
|
83
|
+
'error',
|
|
84
|
+
{
|
|
85
|
+
escape: {
|
|
86
|
+
methods: ['cityssm.escapeHTML']
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
|
|
91
|
+
'no-unsanitized/property': [
|
|
92
|
+
'error',
|
|
93
|
+
{
|
|
94
|
+
escape: {
|
|
95
|
+
methods: ['cityssm.escapeHTML']
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
|
|
82
100
|
'sonarjs/cognitive-complexity': ['warn', 20],
|
|
83
101
|
'sonarjs/no-duplicate-string': 'warn',
|
|
84
102
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-cityssm",
|
|
3
3
|
"description": "ESLint rules used in the City of Sault Ste. Marie's TypeScript projects.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"main": "eslint-config-cityssm.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "node ./test/runEslint.mjs",
|
|
@@ -9,7 +9,20 @@
|
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
11
11
|
"eslint-config",
|
|
12
|
-
"eslintconfig"
|
|
12
|
+
"eslintconfig",
|
|
13
|
+
"eslint-plugin",
|
|
14
|
+
"eslint-plugin-eslint-comments",
|
|
15
|
+
"eslint-plugin-import",
|
|
16
|
+
"eslint-plugin-jsdoc",
|
|
17
|
+
"eslint-plugin-n",
|
|
18
|
+
"eslint-plugin-no-secrets",
|
|
19
|
+
"eslint-plugin-no-unsanitized",
|
|
20
|
+
"eslint-plugin-promise",
|
|
21
|
+
"eslint-plugin-regexp",
|
|
22
|
+
"eslint-plugin-security",
|
|
23
|
+
"eslint-plugin-sonarjs",
|
|
24
|
+
"eslint-plugin-unicorn",
|
|
25
|
+
"typescript-eslint"
|
|
13
26
|
],
|
|
14
27
|
"repository": {
|
|
15
28
|
"type": "git",
|
|
@@ -27,17 +40,17 @@
|
|
|
27
40
|
"eslint-config-love": "^47.0.0",
|
|
28
41
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
29
42
|
"eslint-plugin-import": "^2.29.1",
|
|
30
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
43
|
+
"eslint-plugin-jsdoc": "^48.2.4",
|
|
31
44
|
"eslint-plugin-n": "^16.6.2",
|
|
32
|
-
"eslint-plugin-no-secrets": "^0.
|
|
45
|
+
"eslint-plugin-no-secrets": "^1.0.2",
|
|
33
46
|
"eslint-plugin-no-unsanitized": "^4.0.2",
|
|
34
47
|
"eslint-plugin-promise": "^6.1.1",
|
|
35
48
|
"eslint-plugin-regexp": "^2.5.0",
|
|
36
49
|
"eslint-plugin-security": "^3.0.0",
|
|
37
|
-
"eslint-plugin-sonarjs": "^0.
|
|
38
|
-
"eslint-plugin-unicorn": "^
|
|
50
|
+
"eslint-plugin-sonarjs": "^1.0.3",
|
|
51
|
+
"eslint-plugin-unicorn": "^53.0.0"
|
|
39
52
|
},
|
|
40
53
|
"devDependencies": {
|
|
41
|
-
"@types/node": "^20.12.
|
|
54
|
+
"@types/node": "^20.12.11"
|
|
42
55
|
}
|
|
43
56
|
}
|