eslint-config-cityssm 3.2.0 → 5.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/README.md +5 -0
- package/eslint.config.js +1 -9
- package/eslint.config.ts +8 -3
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -47,3 +47,8 @@ export default [...eslintConfigCityssm]
|
|
|
47
47
|
- [Attendance Tracking](https://github.com/cityssm/attendance-tracking)
|
|
48
48
|
|
|
49
49
|
- [General Licence Manager](https://github.com/cityssm/general-licence-manager)
|
|
50
|
+
|
|
51
|
+
## Related Projects
|
|
52
|
+
|
|
53
|
+
**[prettier-config-cityssm](https://github.com/cityssm/prettier-config-cityssm)**<br />
|
|
54
|
+
Prettier configuration for the City of Sault Ste. Marie's projects.
|
package/eslint.config.js
CHANGED
|
@@ -9,15 +9,7 @@ import eslintPluginSecurity from 'eslint-plugin-security';
|
|
|
9
9
|
import eslintPluginSonarjs from 'eslint-plugin-sonarjs';
|
|
10
10
|
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
|
|
11
11
|
import tseslint from 'typescript-eslint';
|
|
12
|
-
export const config = tseslint.config(
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
14
|
-
eslint.configs.recommended, ...tseslint.configs.recommended, eslintPluginEslintComments.recommended, eslintPluginJsdoc.configs['flat/recommended-typescript'], eslintPluginRegexp.configs['flat/recommended'],
|
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
16
|
-
eslintPluginSecurity.configs.recommended,
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
18
|
-
eslintPluginSonarjs.configs.recommended,
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
20
|
-
eslintPluginUnicorn.configs['flat/recommended'], eslintConfigLove, {
|
|
12
|
+
export const config = tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommendedTypeChecked, ...tseslint.configs.stylisticTypeChecked, eslintPluginEslintComments.recommended, eslintPluginJsdoc.configs['flat/recommended-typescript'], eslintPluginRegexp.configs['flat/recommended'], eslintPluginSecurity.configs.recommended, eslintPluginSonarjs.configs.recommended, eslintPluginUnicorn.configs['flat/recommended'], eslintConfigLove, {
|
|
21
13
|
languageOptions: {
|
|
22
14
|
parserOptions: {
|
|
23
15
|
ecmaFeatures: { modules: true },
|
package/eslint.config.ts
CHANGED
|
@@ -14,19 +14,22 @@ export const config = tseslint.config(
|
|
|
14
14
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
15
15
|
eslint.configs.recommended,
|
|
16
16
|
|
|
17
|
-
...tseslint.configs.
|
|
17
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
18
|
+
...tseslint.configs.stylisticTypeChecked,
|
|
18
19
|
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
19
21
|
eslintPluginEslintComments.recommended,
|
|
22
|
+
|
|
20
23
|
eslintPluginJsdoc.configs['flat/recommended-typescript'],
|
|
21
24
|
eslintPluginRegexp.configs['flat/recommended'],
|
|
22
25
|
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
24
27
|
eslintPluginSecurity.configs.recommended,
|
|
25
28
|
|
|
26
29
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
27
30
|
eslintPluginSonarjs.configs.recommended,
|
|
28
31
|
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
30
33
|
eslintPluginUnicorn.configs['flat/recommended'],
|
|
31
34
|
|
|
32
35
|
eslintConfigLove,
|
|
@@ -40,6 +43,7 @@ export const config = tseslint.config(
|
|
|
40
43
|
}
|
|
41
44
|
},
|
|
42
45
|
plugins: {
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
43
47
|
'no-secrets': eslintPluginNoSecrets
|
|
44
48
|
},
|
|
45
49
|
rules: {
|
|
@@ -131,6 +135,7 @@ export const config = tseslint.config(
|
|
|
131
135
|
|
|
132
136
|
export const configWebApp = tseslint.config(...config, {
|
|
133
137
|
plugins: {
|
|
138
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
134
139
|
'no-unsanitized': eslintPluginNoUnsanitized
|
|
135
140
|
},
|
|
136
141
|
rules: {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "eslint-config-cityssm",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "ESLint rules used in the City of Sault Ste. Marie's TypeScript projects.",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "5.0.0",
|
|
6
6
|
"main": "eslint.config.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./eslint.config.js",
|
|
@@ -42,23 +42,24 @@
|
|
|
42
42
|
"license": "Unlicense",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
45
|
-
"@eslint/js": "^9.
|
|
45
|
+
"@eslint/js": "^9.5.0",
|
|
46
46
|
"eslint": "^8.57.0",
|
|
47
|
-
"eslint-config-love": "^
|
|
47
|
+
"eslint-config-love": "^53.0.0",
|
|
48
48
|
"eslint-plugin-import": "^2.29.1",
|
|
49
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
50
|
-
"eslint-plugin-n": "^17.
|
|
49
|
+
"eslint-plugin-jsdoc": "^48.2.12",
|
|
50
|
+
"eslint-plugin-n": "^17.9.0",
|
|
51
51
|
"eslint-plugin-no-secrets": "^1.0.2",
|
|
52
52
|
"eslint-plugin-no-unsanitized": "^4.0.2",
|
|
53
53
|
"eslint-plugin-promise": "^6.2.0",
|
|
54
54
|
"eslint-plugin-regexp": "^2.6.0",
|
|
55
|
-
"eslint-plugin-security": "^3.0.
|
|
55
|
+
"eslint-plugin-security": "^3.0.1",
|
|
56
56
|
"eslint-plugin-sonarjs": "^1.0.3",
|
|
57
|
-
"eslint-plugin-unicorn": "^
|
|
58
|
-
"typescript-eslint": "^7.
|
|
57
|
+
"eslint-plugin-unicorn": "^54.0.0",
|
|
58
|
+
"typescript-eslint": "^7.13.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/eslint__js": "^8.42.3",
|
|
62
|
-
"@types/node": "^20.
|
|
62
|
+
"@types/node": "^20.14.2",
|
|
63
|
+
"prettier-config-cityssm": "^1.0.0"
|
|
63
64
|
}
|
|
64
65
|
}
|