@wistia/oxlint-config 1.7.1 → 1.7.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.
@@ -1,9 +1,9 @@
1
1
  import { defineConfig } from 'oxlint';
2
+ import { barrelFilesRules } from '../rules/barrel-files.mjs';
2
3
  import { baseRules } from '../rules/base.mjs';
4
+ import { customRules } from '../rules/custom.mjs';
3
5
  import { importRules } from '../rules/import.mjs';
4
6
  import { promiseRules } from '../rules/promise.mjs';
5
- import { barrelFilesRules } from '../rules/barrel-files.mjs';
6
- import { customRules } from '../rules/custom.mjs';
7
7
  import { unicornRules } from '../rules/unicorn.mjs';
8
8
 
9
9
  export default defineConfig({
package/configs/react.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineConfig } from 'oxlint';
2
- import { reactRules } from '../rules/react.mjs';
3
2
  import { reactA11yRules } from '../rules/react-a11y.mjs';
3
+ import { reactRules } from '../rules/react.mjs';
4
4
 
5
5
  export default defineConfig({
6
6
  plugins: [...reactRules.plugins, ...reactA11yRules.plugins],
@@ -1,6 +1,6 @@
1
1
  import { defineConfig } from 'oxlint';
2
- import { storybookRules } from '../rules/storybook.mjs';
3
2
  import { customRules } from '../rules/custom.mjs';
3
+ import { storybookRules } from '../rules/storybook.mjs';
4
4
 
5
5
  export default defineConfig({
6
6
  overrides: [
@@ -1,10 +1,10 @@
1
1
  import { defineConfig } from 'oxlint';
2
+ import { barrelFilesRules } from '../rules/barrel-files.mjs';
2
3
  import { baseRules } from '../rules/base.mjs';
4
+ import { customRules } from '../rules/custom.mjs';
3
5
  import { importRules } from '../rules/import.mjs';
4
6
  import { promiseRules } from '../rules/promise.mjs';
5
7
  import { typescriptRules } from '../rules/typescript.mjs';
6
- import { barrelFilesRules } from '../rules/barrel-files.mjs';
7
- import { customRules } from '../rules/custom.mjs';
8
8
  import { unicornRules } from '../rules/unicorn.mjs';
9
9
 
10
10
  export default defineConfig({
package/oxfmtConfig.mjs CHANGED
@@ -1,4 +1,27 @@
1
- import { oxfmtConfig } from './oxfmtConfig.js';
2
1
  import { defineConfig } from 'oxfmt';
3
2
 
3
+ export const oxfmtConfig = {
4
+ printWidth: 100,
5
+ singleQuote: true,
6
+ trailingComma: 'all',
7
+ singleAttributePerLine: true,
8
+ sortImports: {
9
+ groups: [
10
+ 'type-builtin',
11
+ 'type-external',
12
+ ['type-internal', 'type-parent', 'type-sibling', 'type-index'],
13
+ 'value-builtin',
14
+ 'value-external',
15
+ 'value-internal',
16
+ 'value-index',
17
+ ['value-parent', 'value-sibling'],
18
+ 'unknown',
19
+ ],
20
+ newlinesBetween: false,
21
+ },
22
+ ignorePatterns: ['node_modules/**', '.yarn/**'],
23
+ sortPackageJson: false,
24
+ };
25
+
26
+ // oxlint-disable-next-line import-x/no-default-export
4
27
  export default defineConfig(oxfmtConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/oxlint-config",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Wistia's Oxlint configurations",
5
5
  "packageManager": "yarn@4.17.1",
6
6
  "type": "module",
@@ -51,8 +51,8 @@
51
51
  "scripts": {
52
52
  "changeset": "changeset",
53
53
  "disabled": "node scripts/list-disabled-rules.mjs",
54
- "format": "oxfmt .",
55
- "format:ci": "oxfmt --check .",
54
+ "format": "oxfmt -c oxfmt.config.mjs .",
55
+ "format:ci": "oxfmt -c oxfmt.config.mjs --check .",
56
56
  "outdated": "yarn upgrade-interactive",
57
57
  "release": "changeset publish",
58
58
  "test": "vitest run --exclude test/validate-configs.test.mjs",