@bratislava/eslint-config 0.6.0 → 0.8.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/index.js +10 -2
- package/package.json +3 -1
package/index.js
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import eslint from "@eslint/js";
|
|
9
|
+
import markdown from "@eslint/markdown";
|
|
9
10
|
import prettier from "eslint-config-prettier";
|
|
11
|
+
import importPlugin from "eslint-plugin-import";
|
|
10
12
|
import noUnsanitized from "eslint-plugin-no-unsanitized";
|
|
11
13
|
import security from "eslint-plugin-security";
|
|
12
14
|
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
@@ -38,6 +40,7 @@ export const typescriptRules = {
|
|
|
38
40
|
"@typescript-eslint/no-loop-func": "error",
|
|
39
41
|
"no-shadow": "off",
|
|
40
42
|
"@typescript-eslint/no-shadow": "error",
|
|
43
|
+
"require-await": "off",
|
|
41
44
|
"@typescript-eslint/require-await": "error",
|
|
42
45
|
|
|
43
46
|
// Other @typescript-eslint rules
|
|
@@ -99,7 +102,6 @@ export const eslintRules = {
|
|
|
99
102
|
"prefer-const": "error",
|
|
100
103
|
"prefer-object-spread": "error",
|
|
101
104
|
"prefer-template": "error",
|
|
102
|
-
"require-await": "error",
|
|
103
105
|
yoda: "error",
|
|
104
106
|
};
|
|
105
107
|
|
|
@@ -115,7 +117,7 @@ export const sonarjsRules = {
|
|
|
115
117
|
"sonarjs/no-nested-conditional": "off",
|
|
116
118
|
"sonarjs/no-unused-vars": "off", // handled by @typescript-eslint/no-unused-vars
|
|
117
119
|
"sonarjs/fixme-tag": "warn",
|
|
118
|
-
"sonarjs/deprecation": "
|
|
120
|
+
"sonarjs/deprecation": "off", // handled by @typescript-eslint/no-deprecated
|
|
119
121
|
};
|
|
120
122
|
|
|
121
123
|
/**
|
|
@@ -143,6 +145,12 @@ export const baseConfig = [
|
|
|
143
145
|
security.configs.recommended,
|
|
144
146
|
noUnsanitized.configs.recommended,
|
|
145
147
|
sonarjs.configs.recommended,
|
|
148
|
+
...markdown.configs.recommended,
|
|
149
|
+
{
|
|
150
|
+
plugins: {
|
|
151
|
+
import: importPlugin,
|
|
152
|
+
},
|
|
153
|
+
},
|
|
146
154
|
{
|
|
147
155
|
languageOptions: {
|
|
148
156
|
parserOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bratislava/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Base ESLint configuration for Bratislava projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@eslint/js": "9.34.0",
|
|
32
|
+
"@eslint/markdown": "6.6.0",
|
|
32
33
|
"eslint-config-prettier": "10.1.8",
|
|
34
|
+
"eslint-plugin-import": "2.32.0",
|
|
33
35
|
"eslint-plugin-no-unsanitized": "4.1.4",
|
|
34
36
|
"eslint-plugin-security": "3.0.1",
|
|
35
37
|
"eslint-plugin-simple-import-sort": "12.1.1",
|