@voiceflow/oxfmt-config 1.1.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.
Files changed (2) hide show
  1. package/package.json +28 -0
  2. package/src/index.js +41 -0
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@voiceflow/oxfmt-config",
3
+ "version": "1.1.0",
4
+ "files": [
5
+ "src"
6
+ ],
7
+ "type": "module",
8
+ "main": "src/index.js",
9
+ "exports": {
10
+ ".": "./src/index.js"
11
+ },
12
+ "scripts": {
13
+ "lint": "yarn g:run-p -c lint:oxlint lint:oxfmt",
14
+ "lint:fix": "yarn g:run-p -c \"g:oxlint . --fix\" \"g:oxfmt .\"",
15
+ "lint:oxfmt": "yarn g:oxfmt --check .",
16
+ "lint:oxlint": "yarn g:oxlint ."
17
+ },
18
+ "peerDependencies": {
19
+ "oxfmt": "^0"
20
+ },
21
+ "engines": {
22
+ "node": "20"
23
+ },
24
+ "volta": {
25
+ "extends": "../../package.json"
26
+ },
27
+ "gitHead": "f9c533ccba57b82ce9c44f6420746aa4ab9c5bec"
28
+ }
package/src/index.js ADDED
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Shared oxfmt configuration for Voiceflow repositories.
3
+ *
4
+ * Consume from a JS oxfmt config (`oxfmt.config.mjs`) by importing this base
5
+ * and spreading repo-specific additions on top:
6
+ *
7
+ * import base from '@voiceflow/oxfmt-config';
8
+ *
9
+ * export default {
10
+ * ...base,
11
+ * ignorePatterns: [...base.ignorePatterns, 'repo/specific/**'],
12
+ * };
13
+ */
14
+ export default {
15
+ printWidth: 120,
16
+ tabWidth: 2,
17
+ useTabs: false,
18
+ semi: true,
19
+ singleQuote: true,
20
+ quoteProps: 'as-needed',
21
+ trailingComma: 'es5',
22
+ bracketSpacing: true,
23
+ arrowParens: 'always',
24
+ sortImports: true,
25
+ sortPackageJson: true,
26
+ ignorePatterns: [
27
+ '**/node_modules/**',
28
+ '**/build/**',
29
+ '**/dist/**',
30
+ '**/.yarn/**',
31
+ '**/.pnp.*',
32
+ '**/*.lock',
33
+ '**/.yalc/**',
34
+ '**/.turbo/**',
35
+ '**/coverage/**',
36
+ '**/.nyc_output/**',
37
+ '**/CHANGELOG.md',
38
+ '**/*.log',
39
+ '**/*.report.xml',
40
+ ],
41
+ };