@maz-ui/eslint-config 4.3.2 → 4.6.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/dist/index.mjs +4 -4
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import antfu from '@antfu/eslint-config';
|
|
4
|
-
import
|
|
4
|
+
import { configs } from 'eslint-plugin-sonarjs';
|
|
5
5
|
import tailwind from 'eslint-plugin-tailwindcss';
|
|
6
6
|
import vueA11y from 'eslint-plugin-vuejs-accessibility';
|
|
7
7
|
|
|
@@ -141,7 +141,7 @@ function defineConfig(options = {}, ...userConfigs) {
|
|
|
141
141
|
...opts.rules
|
|
142
142
|
};
|
|
143
143
|
const packageJson = getPackageJson();
|
|
144
|
-
const vueDetected = packageJson?.dependencies?.vue || packageJson?.devDependencies?.vue;
|
|
144
|
+
const vueDetected = packageJson?.dependencies?.vue || packageJson?.devDependencies?.vue || packageJson?.peerDependencies?.vue;
|
|
145
145
|
if (opts.vue || vueDetected) {
|
|
146
146
|
allRules = {
|
|
147
147
|
...allRules,
|
|
@@ -150,10 +150,10 @@ function defineConfig(options = {}, ...userConfigs) {
|
|
|
150
150
|
}
|
|
151
151
|
const additionalConfigs = [];
|
|
152
152
|
if (opts.sonarjs) {
|
|
153
|
-
additionalConfigs.push(
|
|
153
|
+
additionalConfigs.push(configs.recommended);
|
|
154
154
|
additionalConfigs.push({
|
|
155
155
|
rules: {
|
|
156
|
-
...
|
|
156
|
+
...configs.recommended.rules
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
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.
|
|
4
|
+
"version": "4.6.0",
|
|
5
5
|
"description": "ESLint configuration for JavaScript/TypeScript projects",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"node": ">=18.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"eslint": "
|
|
42
|
+
"eslint": ">=9.0.0 <10.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"eslint": {
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@antfu/eslint-config": "^
|
|
51
|
-
"eslint-plugin-format": "^1.
|
|
52
|
-
"eslint-plugin-sonarjs": "^3.0.
|
|
50
|
+
"@antfu/eslint-config": "^7.2.0",
|
|
51
|
+
"eslint-plugin-format": "^1.3.1",
|
|
52
|
+
"eslint-plugin-sonarjs": "^3.0.6",
|
|
53
53
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
54
54
|
"eslint-plugin-vuejs-accessibility": "^2.4.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
58
|
-
"eslint": "^9.39.
|
|
58
|
+
"eslint": "^9.39.2",
|
|
59
59
|
"unbuild": "^3.6.1"
|
|
60
60
|
},
|
|
61
61
|
"lint-staged": {
|