xo 1.2.1 → 1.2.2

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.
@@ -49,11 +49,13 @@ export function xoToEslintConfig(flatXoConfig, { prettierOptions = {} } = {}) {
49
49
  // eslint-disable-next-line @typescript-eslint/naming-convention
50
50
  { SwitchCase: 1 },
51
51
  ];
52
+ eslintConfigItem.rules['@stylistic/indent-binary-ops'] = ['error', spaces];
52
53
  }
53
54
  else if (xoConfigItem.space === false) {
54
55
  // If a user sets this to false for a small subset of files for some reason,
55
56
  // then we need to set them back to their original values.
56
57
  eslintConfigItem.rules['@stylistic/indent'] = configXoTypescript[1]?.rules?.['@stylistic/indent'];
58
+ eslintConfigItem.rules['@stylistic/indent-binary-ops'] = configXoTypescript[1]?.rules?.['@stylistic/indent-binary-ops'];
57
59
  }
58
60
  if (xoConfigItem.react) {
59
61
  // Ensure the files applied to the React config are the same as the config they are derived from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xo",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "JavaScript/TypeScript linter (ESLint wrapper) with great defaults",
5
5
  "license": "MIT",
6
6
  "repository": "xojs/xo",