eslint-config-cityssm 1.2.2 → 1.4.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 +10 -1
- package/eslint-config-cityssm.ts +12 -1
- package/package.json +11 -10
package/eslint-config-cityssm.js
CHANGED
|
@@ -14,6 +14,7 @@ module.exports = {
|
|
|
14
14
|
'@typescript-eslint',
|
|
15
15
|
'eslint-comments',
|
|
16
16
|
'import',
|
|
17
|
+
'jsdoc',
|
|
17
18
|
'n',
|
|
18
19
|
'regexp',
|
|
19
20
|
'security',
|
|
@@ -26,10 +27,11 @@ module.exports = {
|
|
|
26
27
|
'plugin:eslint-comments/recommended',
|
|
27
28
|
'plugin:import/recommended',
|
|
28
29
|
'plugin:import/typescript',
|
|
30
|
+
'plugin:jsdoc/recommended',
|
|
29
31
|
'plugin:n/recommended',
|
|
30
32
|
'plugin:promise/recommended',
|
|
31
33
|
'plugin:regexp/recommended',
|
|
32
|
-
'plugin:security/recommended',
|
|
34
|
+
'plugin:security/recommended-legacy',
|
|
33
35
|
'plugin:sonarjs/recommended',
|
|
34
36
|
'plugin:unicorn/recommended',
|
|
35
37
|
'plugin:@typescript-eslint/recommended'
|
|
@@ -63,10 +65,17 @@ module.exports = {
|
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
],
|
|
68
|
+
'jsdoc/require-jsdoc': ['warn', { publicOnly: true }],
|
|
66
69
|
'n/no-missing-import': 'off',
|
|
67
70
|
'no-extra-semi': 'off',
|
|
68
71
|
'sonarjs/cognitive-complexity': ['warn', 20],
|
|
69
72
|
'sonarjs/no-duplicate-string': 'warn',
|
|
73
|
+
'sort-imports': [
|
|
74
|
+
'error',
|
|
75
|
+
{
|
|
76
|
+
ignoreDeclarationSort: true
|
|
77
|
+
}
|
|
78
|
+
],
|
|
70
79
|
'unicorn/consistent-function-scoping': 'warn',
|
|
71
80
|
'unicorn/empty-brace-spaces': 'off',
|
|
72
81
|
'unicorn/filename-case': [
|
package/eslint-config-cityssm.ts
CHANGED
|
@@ -15,6 +15,7 @@ module.exports = {
|
|
|
15
15
|
'@typescript-eslint',
|
|
16
16
|
'eslint-comments',
|
|
17
17
|
'import',
|
|
18
|
+
'jsdoc',
|
|
18
19
|
'n',
|
|
19
20
|
'regexp',
|
|
20
21
|
'security',
|
|
@@ -27,10 +28,11 @@ module.exports = {
|
|
|
27
28
|
'plugin:eslint-comments/recommended',
|
|
28
29
|
'plugin:import/recommended',
|
|
29
30
|
'plugin:import/typescript',
|
|
31
|
+
'plugin:jsdoc/recommended',
|
|
30
32
|
'plugin:n/recommended',
|
|
31
33
|
'plugin:promise/recommended',
|
|
32
34
|
'plugin:regexp/recommended',
|
|
33
|
-
'plugin:security/recommended',
|
|
35
|
+
'plugin:security/recommended-legacy',
|
|
34
36
|
'plugin:sonarjs/recommended',
|
|
35
37
|
'plugin:unicorn/recommended',
|
|
36
38
|
'plugin:@typescript-eslint/recommended'
|
|
@@ -66,6 +68,8 @@ module.exports = {
|
|
|
66
68
|
}
|
|
67
69
|
],
|
|
68
70
|
|
|
71
|
+
'jsdoc/require-jsdoc': ['warn', { publicOnly: true }],
|
|
72
|
+
|
|
69
73
|
'n/no-missing-import': 'off',
|
|
70
74
|
|
|
71
75
|
'no-extra-semi': 'off',
|
|
@@ -73,6 +77,13 @@ module.exports = {
|
|
|
73
77
|
'sonarjs/cognitive-complexity': ['warn', 20],
|
|
74
78
|
'sonarjs/no-duplicate-string': 'warn',
|
|
75
79
|
|
|
80
|
+
'sort-imports': [
|
|
81
|
+
'error',
|
|
82
|
+
{
|
|
83
|
+
ignoreDeclarationSort: true
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
|
|
76
87
|
'unicorn/consistent-function-scoping': 'warn',
|
|
77
88
|
'unicorn/empty-brace-spaces': 'off',
|
|
78
89
|
'unicorn/filename-case': [
|
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": "1.
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"main": "eslint-config-cityssm.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "node ./test/runEslint.mjs",
|
|
@@ -22,19 +22,20 @@
|
|
|
22
22
|
"author": "The Corporation of the City of Sault Ste. Marie",
|
|
23
23
|
"license": "Unlicense",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
26
|
-
"@typescript-eslint/parser": "^6.
|
|
27
|
-
"eslint-config-standard-with-typescript": "^
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
26
|
+
"@typescript-eslint/parser": "^6.18.1",
|
|
27
|
+
"eslint-config-standard-with-typescript": "^43.0.0",
|
|
28
28
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
29
|
-
"eslint-plugin-import": "^2.29.
|
|
30
|
-
"eslint-plugin-
|
|
29
|
+
"eslint-plugin-import": "^2.29.1",
|
|
30
|
+
"eslint-plugin-jsdoc": "^48.0.2",
|
|
31
|
+
"eslint-plugin-n": "^16.6.2",
|
|
31
32
|
"eslint-plugin-promise": "^6.1.1",
|
|
32
|
-
"eslint-plugin-regexp": "^2.
|
|
33
|
-
"eslint-plugin-security": "^1.
|
|
33
|
+
"eslint-plugin-regexp": "^2.2.0",
|
|
34
|
+
"eslint-plugin-security": "^2.1.0",
|
|
34
35
|
"eslint-plugin-sonarjs": "^0.23.0",
|
|
35
|
-
"eslint-plugin-unicorn": "^
|
|
36
|
+
"eslint-plugin-unicorn": "^50.0.1"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^20.10.
|
|
39
|
+
"@types/node": "^20.10.8"
|
|
39
40
|
}
|
|
40
41
|
}
|