Skip to content

Commit 10585a1

Browse files
committed
Set up prettier and integrate with eslint
1 parent 5b4d6f3 commit 10585a1

File tree

17 files changed

+1871
-146
lines changed

17 files changed

+1871
-146
lines changed

.eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module.exports = {
22
root: true,
33
// This tells ESLint to load the config from the package `eslint-config-custom`
4-
extends: ["custom"],
4+
extends: ['custom'],
55
settings: {
66
next: {
7-
rootDir: ["apps/*/"],
7+
rootDir: ['apps/*/'],
88
},
99
},
1010
};

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.next/

.prettierrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"bracketSameLine": true,
6+
"trailingComma": "es5",
7+
"endOfLine": "auto",
8+
"importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"],
9+
"importOrderSeparation": true,
10+
"importOrderSortSpecifiers": true,
11+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
12+
"pluginSearchDirs": false
13+
}

apps/docs/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
root: true,
3-
extends: ["custom"],
3+
extends: ['custom'],
44
};

apps/docs/next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
reactStrictMode: true,
33
experimental: {
4-
transpilePackages: ["@proficient/react-sdk"],
4+
transpilePackages: ['@proficient/react-sdk'],
55
},
66
};

apps/docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev --port 3001",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "TIMING=1 eslint \"src/**/*.ts*\""
1010
},
1111
"dependencies": {
1212
"@proficient/react-sdk": "*",

apps/docs/pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InteractionView } from "@proficient/react-sdk";
1+
import { InteractionView } from '@proficient/react-sdk';
22

33
export default function Docs() {
44
return (

0 commit comments

Comments
 (0)