Skip to content

Commit 6bb22f3

Browse files
committed
style: lint imports order
1 parent b242103 commit 6bb22f3

33 files changed

+353
-64
lines changed

.prettierrc.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"semi": false,
3-
"singleQuote": true
3+
"singleQuote": true,
4+
"importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"],
5+
"importOrderSeparation": true,
6+
"importOrderSortSpecifiers": true,
7+
"plugins": ["@trivago/prettier-plugin-sort-imports"]
48
}

package-lock.json

+282
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"build:css": "postcss src/styles/tailwind.css -o src/styles/index.css --env production"
2222
},
2323
"dependencies": {
24+
"@sanger/ui-styling": "^4.1.0",
2425
"@vitejs/plugin-vue": "^5.0.3",
2526
"axios": "^1.6.8",
2627
"buffer": "^6.0.3",
@@ -30,14 +31,14 @@
3031
"json-server": "^0.17.4",
3132
"jsorm": "^1.3.22",
3233
"mathjs": "^12.4.1",
34+
"postcss": "^8.4.38",
35+
"tailwindcss": "3.4.3",
3336
"vite": "^5.2.11",
3437
"vue": "^3.4.21",
35-
"vue-router": "^4.3.0",
36-
"tailwindcss": "3.4.3",
37-
"postcss": "^8.4.38",
38-
"@sanger/ui-styling": "^4.1.0"
38+
"vue-router": "^4.3.0"
3939
},
4040
"devDependencies": {
41+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
4142
"@vitest/coverage-v8": "^1.6.0",
4243
"@vue/test-utils": "^2.4.6",
4344
"autoprefixer": "^10.4.19",

server.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// server.js
2-
import jsonServer from 'json-server'
32
import bodyParser from 'body-parser'
3+
import jsonServer from 'json-server'
4+
45
const server = jsonServer.create()
56
const router = jsonServer.router()
67
const middlewares = jsonServer.defaults()

src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
<script>
3333
import PageFooter from '@/components/PageFooter.vue'
34-
import PageLink from '@/components/PageLink.vue'
3534
import PageHeading from '@/components/PageHeading.vue'
35+
import PageLink from '@/components/PageLink.vue'
3636
3737
export default {
3838
name: 'App',

src/Replicates.js

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
In this case if a concentration in the replicate is above a certain threshold e.g. 20% it is
66
considered an outlier and can be removed from the replicate.
77
*/
8-
98
import * as Calculations from '@/Calculations'
109

1110
/**

0 commit comments

Comments
 (0)