Skip to content

Commit 5514bba

Browse files
committed
Replace prettier with oxfmt
# Conflicts: # package.json # pnpm-lock.yaml
1 parent 1837f75 commit 5514bba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+492
-409
lines changed

.oxfmtrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignorePatterns": ["composer.json"]
3+
}

.prettierrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"babel-plugin-component": "^1.1.1",
2525
"element-plus": "^2.2.25",
2626
"lodash-es": "^4.17.21",
27-
"prettier": "^2.8.0",
27+
"oxfmt": "^0.21.0",
2828
"sass": "^1.56.1",
2929
"sass-loader": "^7.1.0",
3030
"unplugin-auto-import": "^0.11.5",

pnpm-lock.yaml

Lines changed: 91 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/api/blogApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import axios from 'axios';
1+
import axios from "axios";
22

33
export default axios.create({
4-
baseURL: 'https://blog.lycee-tcg.eu/wp-json/wp',
4+
baseURL: "https://blog.lycee-tcg.eu/wp-json/wp",
55
});

resources/js/api/endpoints/articles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import blogApi from '../blogApi';
1+
import blogApi from "../blogApi";
22

33
const CATEGORY_NEWS = 2;
44

55
export async function listArticles(limit) {
66
return (
7-
await blogApi.get('/v2/posts', {
7+
await blogApi.get("/v2/posts", {
88
params: { categories: CATEGORY_NEWS, per_page: limit },
99
transformRequest(data, headers) {
10-
delete headers.common['X-Requested-With'];
10+
delete headers.common["X-Requested-With"];
1111
return data;
1212
},
1313
})

resources/js/api/endpoints/cards.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import api from '../index';
1+
import api from "../index";
22

33
export async function listCards(params) {
4-
return (await api.get('/cards', { params })).data;
4+
return (await api.get("/cards", { params })).data;
55
}
66

77
export async function showCard(cardId) {

resources/js/api/endpoints/decks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import api from '../index';
1+
import api from "../index";
22

33
export async function listDecks() {
44
return (await api.get(`/decks`)).data.data;

resources/js/api/endpoints/sets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import api from '../index';
1+
import api from "../index";
22

33
export async function listSets() {
44
return (await api.get(`/sets`)).data.data;

resources/js/api/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import axios from 'axios';
2-
import { getCookie } from '../utils/browser';
1+
import axios from "axios";
2+
import { getCookie } from "../utils/browser";
33

44
const api = axios.create({
55
baseURL: window.vars.apiBaseUrl,
66
});
77

8-
api.interceptors.request.use(config => {
8+
api.interceptors.request.use((config) => {
99
// Forward xdebug/clockwork cookies to the API.
10-
const xdebugSessionValue = getCookie('XDEBUG_SESSION');
10+
const xdebugSessionValue = getCookie("XDEBUG_SESSION");
1111
if (!config.params) {
1212
config.params = {};
1313
}

0 commit comments

Comments
 (0)