@open-xchange/linter-presets 0.10.1 → 0.10.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## `0.10.3` – 2024-Nov-18
4
+
5
+ - chore: (ESLint) bump dependencies to fix ESLint v9.15 API errors
6
+
7
+ ## `0.10.2` – 2024-Nov-18
8
+
9
+ - add: (ESLint) add rule `@stylistic/jsx-indent`
10
+ - change: (ESLint) change default indentation for Vue files to 4 spaces
11
+
3
12
  ## `0.10.1` – 2024-Nov-15
4
13
 
5
14
  - chore: bump dependencies
@@ -48,6 +48,7 @@ export default function stylistic(stylisticConfig) {
48
48
  "@stylistic/jsx-curly-spacing": "error",
49
49
  "@stylistic/jsx-equals-spacing": "error",
50
50
  "@stylistic/jsx-function-call-newline": "error",
51
+ "@stylistic/jsx-indent": ["error", indent.js, { checkAttributes: true, indentLogicalExpressions: true }],
51
52
  "@stylistic/jsx-indent-props": ["error", indent.js],
52
53
  "@stylistic/jsx-one-expression-per-line": "off",
53
54
  "@stylistic/jsx-pascal-case": "error",
@@ -72,7 +72,7 @@ export function configure(options) {
72
72
  js: 4,
73
73
  json: 4,
74
74
  yaml: 2,
75
- vue: 2,
75
+ vue: 4,
76
76
  ...options?.stylistic?.indent,
77
77
  },
78
78
  };
@@ -46,7 +46,7 @@ export interface IndentOptions {
46
46
  */
47
47
  yaml?: number;
48
48
  /**
49
- * Indentation size for Vue.js files. Default value is `2`.
49
+ * Indentation size for Vue.js files. Default value is `4`.
50
50
  */
51
51
  vue?: number;
52
52
  }
@@ -45,7 +45,7 @@ function configure(options?: ConfigureOptions): Linter.Config[]
45
45
  | `stylistic.indent.js` | `number` | `4` | JavaScript and TypeScript files (including `.jsx`, `.tsx`). |
46
46
  | `stylistic.indent.json` | `number` | `4` | JSON files (`.json`). |
47
47
  | `stylistic.indent.yaml` | `number` | `2` | YAML files (`.yaml`, `.yml`). |
48
- | `stylistic.indent.vue` | `number` | `2` | Vue.js files (`.vue`). |
48
+ | `stylistic.indent.vue` | `number` | `4` | Vue.js files (`.vue`). |
49
49
  | `stylistic.semi` | `"always"\|"never"\|"off"` | `"always"` | Specifies whether to require semicolons following all statements (`"always"`), or to force to omit semicolons if possible according to ASI rules (`"never"`). |
50
50
  | `stylistic.quotes` | `"single"\|"double"\|"off"` | `"double"` | The type of the string delimiter character. |
51
51
  | `stylistic.dangle` | `"always"\|"never"\|"off"` | `"always"` | Specifies how to treat dangling commas in multiline lists. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/linter-presets",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "description": "Configuration presets for ESLint and StyleLint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@babel/plugin-proposal-decorators": "^7.25.9",
27
27
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
28
28
  "@eslint/compat": "^1.2.3",
29
- "@eslint/js": "^9.14.0",
29
+ "@eslint/js": "^9.15.0",
30
30
  "@eslint/markdown": "^6.2.1",
31
31
  "@stylistic/eslint-plugin": "^2.10.1",
32
32
  "@stylistic/eslint-plugin-migrate": "^2.10.1",
@@ -37,16 +37,16 @@
37
37
  "eslint-import-resolver-typescript": "^3.6.3",
38
38
  "eslint-plugin-chai-expect": "^3.1.0",
39
39
  "eslint-plugin-codeceptjs": "^1.3.0",
40
- "eslint-plugin-eslint-plugin": "^6.3.1",
40
+ "eslint-plugin-eslint-plugin": "^6.3.2",
41
41
  "eslint-plugin-import": "^2.31.0",
42
42
  "eslint-plugin-jest": "^28.9.0",
43
- "eslint-plugin-jest-dom": "^5.4.0",
43
+ "eslint-plugin-jest-dom": "^5.5.0",
44
44
  "eslint-plugin-jsdoc": "^50.5.0",
45
- "eslint-plugin-jsonc": "^2.18.1",
45
+ "eslint-plugin-jsonc": "^2.18.2",
46
46
  "eslint-plugin-jsx-a11y": "^6.10.2",
47
47
  "eslint-plugin-jsx-expressions": "^1.3.2",
48
48
  "eslint-plugin-license-header": "^0.6.1",
49
- "eslint-plugin-n": "^17.13.1",
49
+ "eslint-plugin-n": "^17.13.2",
50
50
  "eslint-plugin-promise": "^7.1.0",
51
51
  "eslint-plugin-react": "^7.37.2",
52
52
  "eslint-plugin-react-hooks": "^5.0.0",
@@ -62,14 +62,14 @@
62
62
  "stylelint-config-standard-less": "^3.0.1",
63
63
  "stylelint-config-standard-scss": "^13.1.0",
64
64
  "stylelint-plugin-license-header": "^1.0.3",
65
- "typescript-eslint": "^8.14.0",
65
+ "typescript-eslint": "^8.15.0",
66
66
  "vue-eslint-parser": "^9.4.3"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/confusing-browser-globals": "^1.0.3",
70
70
  "@types/picomatch": "^3.0.1",
71
- "@typescript-eslint/utils": "^8.14.0",
72
- "eslint": "^9.14.0",
71
+ "@typescript-eslint/utils": "^8.15.0",
72
+ "eslint": "^9.15.0",
73
73
  "jest": "^29.7.0",
74
74
  "rimraf": "^6.0.1",
75
75
  "stylelint": "^16.10.0",
@@ -102,8 +102,5 @@
102
102
  "vitest": {
103
103
  "optional": true
104
104
  }
105
- },
106
- "resolutions": {
107
- "semver": "^7.6.2"
108
105
  }
109
106
  }