Skip to content

Commit d258163

Browse files
authored
[qa] Switched to prettier for CSS/JS formatting
1 parent 5bbecd8 commit d258163

File tree

8 files changed

+211
-226
lines changed

8 files changed

+211
-226
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
pip install -U pip wheel setuptools
4848
pip install -U -e .[test]
4949
pip install ${{ matrix.django-version }}
50-
sudo npm install -g jshint stylelint
50+
sudo npm install -g prettier
5151
5252
- name: QA checks
5353
run: |

.jshintrc

-14
This file was deleted.

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flat_json_widget/static/flat-json-widget/js/lib/*.js

.stylelintrc.json

-20
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
1-
.flat-json-textarea textarea{ font-family: monospace }
2-
.flat-json-add-row, .flat-json-toggle-textarea{ text-decoration: none !important }
3-
.flat-json-key{
1+
.flat-json-textarea textarea {
2+
font-family: monospace;
3+
}
4+
.flat-json-add-row,
5+
.flat-json-toggle-textarea {
6+
text-decoration: none !important;
7+
}
8+
.flat-json-key {
49
width: 140px !important;
510
margin-right: 2px;
611
}
7-
.flat-json-value{
12+
.flat-json-value {
813
margin-left: 6px;
9-
width: 320px
14+
width: 320px;
1015
}
11-
.flat-json .help{
16+
.flat-json .help {
1217
margin: 0 !important;
1318
padding: 0 !important;
1419
}
1520

1621
@media screen and (max-width: 767px) {
17-
.flat-json-add-row{ margin-right: 10px }
18-
.flat-json-key{
22+
.flat-json-add-row {
23+
margin-right: 10px;
24+
}
25+
.flat-json-key {
1926
width: 25% !important;
2027
margin-right: 4px !important;
2128
flex: none !important;
2229
}
23-
.flat-json-value{
30+
.flat-json-value {
2431
width: 55% !important;
2532
margin-left: 6px !important;
2633
flex: none !important;
@@ -29,6 +36,6 @@
2936
line-height: 33px;
3037
}
3138
.flat-json-remove-row {
32-
margin-left: 5px
39+
margin-left: 5px;
3340
}
3441
}

0 commit comments

Comments
 (0)