Skip to content

Commit

Permalink
build: cssnano optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe committed Apr 4, 2024
1 parent edf343c commit 6b9efad
Show file tree
Hide file tree
Showing 160 changed files with 17,038 additions and 19,166 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
site/resources
132 changes: 130 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"root": true,
"env": {
"browser": true,
"node": true,
Expand All @@ -13,10 +14,137 @@
"func-call-spacing": ["warn", "never"],
"indent": ["warn", "tab", { "ignoredNodes": ["TemplateLiteral *"] }],
"linebreak-style": ["warn", "unix"],
"no-console": 0,
"no-console": ["warn", { "allow": ["warn", "error"] }],
"quotes": ["warn", "double"],
"semi": ["warn", "always"],
"space-before-blocks": ["warn", "always"]
},
"root": true
"overrides": [
{
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"extends": ["plugin:jsonc/recommended-with-jsonc"],
"rules": {
"jsonc/sort-keys": [
"warn",
{
"pathPattern": ".*", // Hits the all properties
"hasProperties": ["type"],
"order": [
"type",
"properties",
"items",
"required",
"minItems",
"additionalProperties",
"additionalItems"
]
},
{
"pathPattern": ".*",
"order": { "type": "asc" }
}
]
}
},
{
"files": ["project.json"],
"rules": {
"jsonc/sort-keys": [
"warn",
{
"pathPattern": "^$",
"order": [
"$schema",
"name",
"tags",
"implicitDependencies",
"targets"
]
},
{
"pathPattern": ".*",
"order": { "type": "asc" }
}
]
}
},
{
"files": ["package.json"],
"rules": {
"jsonc/sort-keys": [
"warn",
{
"pathPattern": "^$",
"order": [
"$schema",
"private",
"name",
"version",
"description",
"license",
"author",
"maintainers",
"contributors",
"homepage",
"repository",
"bugs",
"type",
"exports",
"main",
"module",
"browser",
"man",
"preferGlobal",
"bin",
"files",
"directories",
"scripts",
"config",
"sideEffects",
"types",
"typings",
"workspaces",
"resolutions",
"dependencies",
"bundleDependencies",
"bundledDependencies",
"peerDependencies",
"peerDependenciesMeta",
"optionalDependencies",
"devDependencies",
"keywords",
"engines",
"engineStrict",
"os",
"cpu",
"publishConfig"
]
},
{
"pathPattern": "^repository$",
"order": ["type", "url", "directory"]
},
{
"pathPattern": ".*",
"order": { "type": "asc" }
}
]
}
},
{
"files": [
"components/*/stories/*.js",
".storybook/*.js",
".storybook/**/*.js"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
}
}
}
]
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package-lock.json

# Storybook build output
.storybook/storybook-static
storybook-static
build-storybook.log

# Chromatic
Expand All @@ -30,3 +31,6 @@ chromatic.config.json

# Custom diff tool
.diff-output

.eslintcache
.stylelintcache
15 changes: 10 additions & 5 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
# Tooling config files
**/.git
**/.svn
**/.hg
**/node_modules

components/*/dist
# Static utility assets
tokens/custom-*/*.css
.storybook/storybook-static/**
generator
site/includes/*.js

# Compiled and generated files
dist
*.hbs
.storybook/storybook-static
*-generated.css

site/includes/*.js
# Template files
*.hbs

# OS generated files
.DS_Store*
ehthumbs.db
Icon?
Expand Down
10 changes: 9 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"tabWidth": 2,
"useTabs": true
"useTabs": true,
"overrides": [
{
"files": "*.css",
"options": {
"printWidth": 500
}
}
]
}
15 changes: 8 additions & 7 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Static utility assets
tokens/custom-*/*.css
generator

# Compiled and generated files
dist
.storybook/storybook-static
*-generated.css

tokens/**/*.css
node_modules/**/*.css

plugins/*/expected/*
plugins/*/fixtures/*
dist/*

components/*/dist/*
components/*/node_modules/*
plugins/*/fixtures/*

0 comments on commit 6b9efad

Please sign in to comment.