@maz-ui/eslint-config 4.7.3 → 4.7.7
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +5 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -50,7 +50,7 @@ declare const sonarjsRules: {
|
|
|
50
50
|
readonly 'sonarjs/class-name': "off";
|
|
51
51
|
readonly 'sonarjs/no-nested-conditional': "off";
|
|
52
52
|
readonly 'sonarjs/sonar-no-unused-vars': "off";
|
|
53
|
-
readonly 'sonarjs/cognitive-complexity':
|
|
53
|
+
readonly 'sonarjs/cognitive-complexity': ["error", number];
|
|
54
54
|
readonly 'sonarjs/no-identical-functions': "error";
|
|
55
55
|
readonly 'sonarjs/no-collapsible-if': "error";
|
|
56
56
|
readonly 'sonarjs/prefer-immediate-return': "error";
|
package/dist/index.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ declare const sonarjsRules: {
|
|
|
50
50
|
readonly 'sonarjs/class-name': "off";
|
|
51
51
|
readonly 'sonarjs/no-nested-conditional': "off";
|
|
52
52
|
readonly 'sonarjs/sonar-no-unused-vars': "off";
|
|
53
|
-
readonly 'sonarjs/cognitive-complexity':
|
|
53
|
+
readonly 'sonarjs/cognitive-complexity': ["error", number];
|
|
54
54
|
readonly 'sonarjs/no-identical-functions': "error";
|
|
55
55
|
readonly 'sonarjs/no-collapsible-if': "error";
|
|
56
56
|
readonly 'sonarjs/prefer-immediate-return': "error";
|
package/dist/index.mjs
CHANGED
|
@@ -164,10 +164,13 @@ function defineConfig(options = {}, ...userConfigs) {
|
|
|
164
164
|
}
|
|
165
165
|
const additionalConfigs = [];
|
|
166
166
|
if (opts.sonarjs) {
|
|
167
|
-
|
|
167
|
+
const sonarjsFiles = ["**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue}"];
|
|
168
168
|
additionalConfigs.push({
|
|
169
|
+
...configs.recommended,
|
|
170
|
+
files: sonarjsFiles,
|
|
169
171
|
rules: {
|
|
170
|
-
...configs.recommended.rules
|
|
172
|
+
...configs.recommended.rules,
|
|
173
|
+
...sonarjsRules
|
|
171
174
|
}
|
|
172
175
|
});
|
|
173
176
|
additionalConfigs.push({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maz-ui/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.7.
|
|
4
|
+
"version": "4.7.7",
|
|
5
5
|
"description": "ESLint configuration for JavaScript/TypeScript projects",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@antfu/eslint-config": "^7.4.3",
|
|
46
46
|
"eslint-plugin-format": "^2.0.1",
|
|
47
|
-
"eslint-plugin-sonarjs": "^4.0.
|
|
47
|
+
"eslint-plugin-sonarjs": "^4.0.2",
|
|
48
48
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
49
49
|
"eslint-plugin-vuejs-accessibility": "^2.5.0"
|
|
50
50
|
},
|