Skip to content

Commit 070d12e

Browse files
committed
add styles
1 parent 0d9c5c3 commit 070d12e

3 files changed

Lines changed: 281 additions & 108 deletions

File tree

astro.config.mjs

Lines changed: 71 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -14,54 +14,77 @@ const SITE = 'https://www.rwpod.com/'
1414
export default defineConfig({
1515
site: SITE,
1616
base: '/',
17-
integrations: [icon(), svelte(), sitemap({
18-
filter: page => page !== `${SITE}/archives`,
19-
changefreq: 'weekly',
20-
priority: 0.7
21-
}), AstroPWA({
22-
injectRegister: null,
23-
strategies: 'injectManifest',
24-
registerType: 'prompt',
25-
srcDir: 'src',
26-
filename: 'sw.js',
27-
base: '/',
28-
scope: '/',
29-
includeAssets: ['favicon.svg', 'favicon.ico', 'icon-192.png', 'icon-512.png', 'maskable_icon.png', 'images/plyr.svg'],
30-
injectManifest: {
31-
globPatterns: ['**/*.{css,js}']
32-
},
33-
devOptions: {
34-
enabled: true,
35-
type: 'module'
36-
},
37-
manifest: {
38-
name: 'RWpod',
39-
short_name: 'RWpod',
40-
description: 'RWpod - подкаст про Ruby та Web технології (для тих, кому подобається мислити в Ruby стилі)',
41-
theme_color: '#e2dbcb',
42-
icons: [{
43-
'src': '/icon-192.png',
44-
'type': 'image/png',
45-
'sizes': '192x192'
46-
}, {
47-
'src': '/icon-512.png',
48-
'type': 'image/png',
49-
'sizes': '512x512'
50-
}, {
51-
'src': '/maskable_icon.png',
52-
'type': 'image/png',
53-
'sizes': '1024x1024',
54-
'purpose': 'maskable'
55-
}]
56-
}
57-
})],
17+
integrations: [
18+
icon(),
19+
svelte(),
20+
sitemap({
21+
filter: (page) => page !== `${SITE}/archives`,
22+
xslURL: '/rss/sitemap.xsl',
23+
changefreq: 'weekly',
24+
priority: 0.7
25+
}),
26+
AstroPWA({
27+
injectRegister: null,
28+
strategies: 'injectManifest',
29+
registerType: 'prompt',
30+
srcDir: 'src',
31+
filename: 'sw.js',
32+
base: '/',
33+
scope: '/',
34+
includeAssets: [
35+
'favicon.svg',
36+
'favicon.ico',
37+
'icon-192.png',
38+
'icon-512.png',
39+
'maskable_icon.png',
40+
'images/plyr.svg'
41+
],
42+
injectManifest: {
43+
globPatterns: ['**/*.{css,js}']
44+
},
45+
devOptions: {
46+
enabled: true,
47+
type: 'module'
48+
},
49+
manifest: {
50+
name: 'RWpod',
51+
short_name: 'RWpod',
52+
description:
53+
'RWpod - подкаст про Ruby та Web технології (для тих, кому подобається мислити в Ruby стилі)',
54+
theme_color: '#e2dbcb',
55+
icons: [
56+
{
57+
src: '/icon-192.png',
58+
type: 'image/png',
59+
sizes: '192x192'
60+
},
61+
{
62+
src: '/icon-512.png',
63+
type: 'image/png',
64+
sizes: '512x512'
65+
},
66+
{
67+
src: '/maskable_icon.png',
68+
type: 'image/png',
69+
sizes: '1024x1024',
70+
purpose: 'maskable'
71+
}
72+
]
73+
}
74+
})
75+
],
5876
markdown: {
5977
gfm: true,
6078
extendDefaultPlugins: true,
61-
rehypePlugins: [[rehypeExternalLinks, {
62-
target: '_blank',
63-
rel: 'noopener noreferrer'
64-
}]]
79+
rehypePlugins: [
80+
[
81+
rehypeExternalLinks,
82+
{
83+
target: '_blank',
84+
rel: 'noopener noreferrer'
85+
}
86+
]
87+
]
6588
},
6689
compressHTML: true,
6790
build: {
@@ -74,13 +97,9 @@ export default defineConfig({
7497
css: {
7598
transformer: 'lightningcss',
7699
lightningcss: {
77-
targets: browserslistToTargets(browserslist(
78-
'>0.3%',
79-
'Firefox ESR',
80-
'not dead',
81-
'not ie 11',
82-
'not op_mini all'
83-
))
100+
targets: browserslistToTargets(
101+
browserslist('>0.3%', 'Firefox ESR', 'not dead', 'not ie 11', 'not op_mini all')
102+
)
84103
}
85104
},
86105
plugins: [yaml()],

eslint.config.js

Lines changed: 101 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,31 @@ export default defineConfig([
3636
rules: {
3737
'array-bracket-spacing': 2,
3838

39-
'brace-style': [2, '1tbs', {
40-
allowSingleLine: true
41-
}],
39+
'brace-style': [
40+
2,
41+
'1tbs',
42+
{
43+
allowSingleLine: true
44+
}
45+
],
4246

43-
camelcase: [2, {
44-
properties: 'never',
45-
ignoreDestructuring: false
46-
}],
47+
camelcase: [
48+
2,
49+
{
50+
properties: 'never',
51+
ignoreDestructuring: false
52+
}
53+
],
4754

4855
'comma-dangle': [2, 'never'],
4956

50-
'comma-spacing': [2, {
51-
before: false,
52-
after: true
53-
}],
57+
'comma-spacing': [
58+
2,
59+
{
60+
before: false,
61+
after: true
62+
}
63+
],
5464

5565
'comma-style': [2, 'last'],
5666
'computed-property-spacing': 2,
@@ -60,26 +70,39 @@ export default defineConfig([
6070
'eol-last': 2,
6171
eqeqeq: [2, 'allow-null'],
6272

63-
'func-style': [2, 'expression', {
64-
allowArrowFunctions: true
65-
}],
73+
'func-style': [
74+
2,
75+
'expression',
76+
{
77+
allowArrowFunctions: true
78+
}
79+
],
6680

6781
'guard-for-in': 2,
6882
'handle-callback-err': [2, '^(err|error)$'],
6983

70-
'key-spacing': [0, {
71-
align: 'value'
72-
}],
84+
'key-spacing': [
85+
0,
86+
{
87+
align: 'value'
88+
}
89+
],
7390

74-
'keyword-spacing': [2, {
75-
before: true,
76-
after: true
77-
}],
91+
'keyword-spacing': [
92+
2,
93+
{
94+
before: true,
95+
after: true
96+
}
97+
],
7898

79-
'new-cap': [2, {
80-
capIsNew: false,
81-
newIsCap: true
82-
}],
99+
'new-cap': [
100+
2,
101+
{
102+
capIsNew: false,
103+
newIsCap: true
104+
}
105+
],
83106

84107
'new-parens': 0,
85108
'no-bitwise': 0,
@@ -111,11 +134,14 @@ export default defineConfig([
111134
'no-mixed-spaces-and-tabs': 2,
112135
'no-multi-spaces': 2,
113136

114-
'no-multiple-empty-lines': [2, {
115-
max: 1,
116-
maxEOF: 0,
117-
maxBOF: 0
118-
}],
137+
'no-multiple-empty-lines': [
138+
2,
139+
{
140+
max: 1,
141+
maxEOF: 0,
142+
maxBOF: 0
143+
}
144+
],
119145

120146
'no-native-reassign': 2,
121147
'no-negated-in-lhs': 2,
@@ -144,52 +170,71 @@ export default defineConfig([
144170
'no-unreachable': 2,
145171
'no-unused-expressions': 2,
146172

147-
'no-unused-vars': [2, {
148-
vars: 'all',
149-
args: 'after-used',
150-
argsIgnorePattern: '^_',
151-
caughtErrorsIgnorePattern: '^_'
152-
}],
173+
'no-unused-vars': [
174+
2,
175+
{
176+
vars: 'all',
177+
args: 'after-used',
178+
argsIgnorePattern: '^_',
179+
caughtErrorsIgnorePattern: '^_'
180+
}
181+
],
153182

154183
'no-use-before-define': [2, 'nofunc'],
155184
'no-var': 2,
156185

157-
'no-warning-comments': [2, {
158-
terms: ['todo', 'fixme']
159-
}],
186+
'no-warning-comments': [
187+
2,
188+
{
189+
terms: ['todo', 'fixme']
190+
}
191+
],
160192

161193
'object-curly-spacing': [2, 'always'],
162194
'padded-blocks': [2, 'never'],
163195
'quote-props': [0, 'as-needed'],
164196

165-
quotes: [2, 'single', {
166-
avoidEscape: true,
167-
allowTemplateLiterals: false
168-
}],
197+
quotes: [
198+
2,
199+
'single',
200+
{
201+
avoidEscape: true,
202+
allowTemplateLiterals: false
203+
}
204+
],
169205

170206
radix: 0,
171207
semi: [2, 'never'],
172208

173-
'semi-spacing': [2, {
174-
before: false,
175-
after: true
176-
}],
209+
'semi-spacing': [
210+
2,
211+
{
212+
before: false,
213+
after: true
214+
}
215+
],
177216

178217
'space-before-blocks': [2, 'always'],
179218

180-
'space-before-function-paren': [2, {
181-
anonymous: 'never',
182-
named: 'never',
183-
asyncArrow: 'always'
184-
}],
219+
'space-before-function-paren': [
220+
2,
221+
{
222+
anonymous: 'never',
223+
named: 'never',
224+
asyncArrow: 'always'
225+
}
226+
],
185227

186228
'space-in-parens': [2, 'never'],
187229
'space-infix-ops': 2,
188230

189-
'space-unary-ops': [2, {
190-
words: true,
191-
nonwords: false
192-
}],
231+
'space-unary-ops': [
232+
2,
233+
{
234+
words: true,
235+
nonwords: false
236+
}
237+
],
193238

194239
strict: [2, 'never'],
195240
'use-isnan': 2,

0 commit comments

Comments
 (0)