Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit d8feaaf

Browse files
authored
feat(css-modules): initial version of css modules (#2676)
1 parent 1fcda83 commit d8feaaf

File tree

235 files changed

+7579
-6767
lines changed

Some content is hidden

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

235 files changed

+7579
-6767
lines changed

.stylelintrc.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"extends": [
3-
"stylelint-config-recommended-scss"
4-
],
5-
"plugins": [
6-
"stylelint-order",
7-
"stylelint-selector-bem-pattern"
8-
],
2+
"extends": ["stylelint-config-recommended-scss"],
3+
"plugins": ["stylelint-order", "stylelint-selector-bem-pattern"],
94
"rules": {
105
"order/properties-alphabetical-order": true,
116
"no-descending-specificity": null,
12-
"scss/at-import-partial-extension": "always"
7+
"scss/at-extend-no-missing-placeholder": null,
8+
"scss/at-import-partial-extension": "always",
9+
"selector-pseudo-class-no-unknown": [
10+
true,
11+
{ "ignorePseudoClasses": ["global"] }
12+
]
1313
}
1414
}

firebase.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@
4545
"destination": "/about/releases/",
4646
"type": "301"
4747
},
48-
{
49-
"source": "/trademark/",
50-
"destination": "/about/trademark/",
51-
"type": "301"
52-
},
5348
{
5449
"source": "/privacy/",
5550
"destination": "/about/privacy/",
@@ -59,6 +54,16 @@
5954
"source": "/security/",
6055
"destination": "/about/security/",
6156
"type": "301"
57+
},
58+
{
59+
"source": "/trademark/",
60+
"destination": "https://trademark-policy.openjsf.org/",
61+
"type": "301"
62+
},
63+
{
64+
"source": "/about/trademark/",
65+
"destination": "https://trademark-policy.openjsf.org/",
66+
"type": "301"
6267
}
6368
]
6469
}

gatsby-config.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,25 @@ const gatsbyConfig = {
2121
'gatsby-plugin-catch-links',
2222
'@skagami/gatsby-plugin-dark-mode',
2323
'gatsby-transformer-yaml',
24-
`gatsby-remark-images`,
24+
'gatsby-remark-images',
25+
'gatsby-plugin-sharp',
2526
{
2627
resolve: 'gatsby-plugin-canonical-urls',
2728
options: {
2829
siteUrl: config.siteUrl,
2930
},
3031
},
31-
'gatsby-plugin-sharp',
32-
'gatsby-plugin-sass',
32+
{
33+
resolve: 'gatsby-plugin-sass',
34+
options: {
35+
cssLoaderOptions: {
36+
modules: {
37+
namedExport: false,
38+
exportLocalsConvention: 'camelCaseOnly',
39+
},
40+
},
41+
},
42+
},
3343
{
3444
resolve: 'gatsby-source-filesystem',
3545
options: {
@@ -92,7 +102,6 @@ const gatsbyConfig = {
92102
options: {
93103
extensions: ['.mdx', '.md'],
94104
defaultLayouts: {
95-
sites: require.resolve(`./src/components/Layout/centered.tsx`),
96105
default: require.resolve(`./src/components/Layout/index.tsx`),
97106
},
98107
gatsbyRemarkPlugins: [

gatsby-node.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
7272

7373
const docTemplate = path.resolve('./src/templates/learn.tsx');
7474
const blogTemplate = path.resolve('./src/templates/blog.tsx');
75-
const blogCategoryTemplate = path.resolve('./src/templates/blogCategory.tsx');
75+
const blogCategoryTemplate = path.resolve(
76+
'./src/templates/blog-category.tsx'
77+
);
7678

7779
const [learnResult, pagesResult] = await Promise.all([
7880
graphql(createLearnQuery),

0 commit comments

Comments
 (0)