Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/prettier #5702

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
66 changes: 33 additions & 33 deletions .desktop-lighthouserc.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
module.exports = {
"ci": {
"collect": {
"settings": {
"preset": "desktop"
},
"staticDistDir": "./public",
"url": [
ci: {
collect: {
settings: {
preset: "desktop"
},
staticDistDir: "./public",
url: [
"http://localhost/404/index.html?desktop",
"http://localhost/?desktop",
"http://localhost/company/about/index.html?desktop",
"http://localhost/cloud-native-management/meshery/index.html?desktop",
"http://localhost/cloud-native-management/meshmap/index.html?desktop",
"http://localhost/learn/learning-paths/index.html?desktop",
"http://localhost/learn/service-mesh-books/index.html?desktop",
"http://localhost/learn/service-mesh-workshops/index.html?desktop",
"http://localhost/learn/index.html?desktop",
"http://localhost/blog/index.html?desktop",
"http://localhost/resources/index.html?desktop",
"http://localhost/careers/index.html?desktop",
"http://localhost/community/members/index.html?desktop",
"http://localhost/community/meshmates/index.html?desktop",
"http://localhost/community/events/index.html?desktop",
"http://localhost/community/newcomers/index.html?desktop",
],
"http://localhost/cloud-native-management/meshery/index.html?desktop",
"http://localhost/cloud-native-management/meshmap/index.html?desktop",
"http://localhost/learn/learning-paths/index.html?desktop",
"http://localhost/learn/service-mesh-books/index.html?desktop",
"http://localhost/learn/service-mesh-workshops/index.html?desktop",
"http://localhost/learn/index.html?desktop",
"http://localhost/blog/index.html?desktop",
"http://localhost/resources/index.html?desktop",
"http://localhost/careers/index.html?desktop",
"http://localhost/community/members/index.html?desktop",
"http://localhost/community/meshmates/index.html?desktop",
"http://localhost/community/events/index.html?desktop",
"http://localhost/community/newcomers/index.html?desktop"
]
},
"assert": {
"assertions": {
"categories:performance": ["warn", {"minScore": .90}],
"categories:accessibility": ["warn", {"minScore": .90}],
"categories:best-practices": ["warn", {"minScore": .90}],
"categories:seo": ["warn", {"minScore": .90}],
}
},
"upload": {
"target": "temporary-public-storage",
},
assert: {
assertions: {
"categories:performance": ["warn", { minScore: 0.9 }],
"categories:accessibility": ["warn", { minScore: 0.9 }],
"categories:best-practices": ["warn", { minScore: 0.9 }],
"categories:seo": ["warn", { minScore: 0.9 }]
}
};
},
upload: {
target: "temporary-public-storage"
}
}
};
115 changes: 51 additions & 64 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,57 +1,51 @@
module.exports = {

"env": {
"browser": true,
"es6": true,
"node": true,
"amd": true
env: {
browser: true,
es6: true,
node: true,
amd: true
},
"settings": {
"react": {
"version": "detect"
settings: {
react: {
version: "detect"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
extends: ["eslint:recommended", "plugin:react/recommended"],
parser: "@babel/eslint-parser",
parserOptions: {
ecmaFeatures: {
jsx: true
},
"ecmaVersion": 2018,
"sourceType": "module"
ecmaVersion: 2018,
sourceType: "module"
},
"plugins": [
"react"
],
"rules": {
plugins: ["react"],
rules: {
"array-bracket-spacing": ["error", "never"],
"comma-style": ["error"],
"arrow-spacing": [
"error",
{
"after": true,
"before": true
after: true,
before: true
}
],
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": [
"error",
"1tbs"
],
"brace-style": ["error", "1tbs"],
"jsx-quotes": ["error", "prefer-double"],
"keyword-spacing": "error",
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true,
}],
"key-spacing": [
"error",
{
beforeColon: false,
afterColon: true
}
],
"no-unused-vars": [
"warn",
{
"varsIgnorePattern": "React"
varsIgnorePattern: "React"
}
],
"no-trailing-spaces": "error",
Expand All @@ -60,39 +54,32 @@ module.exports = {
"react/prop-types": 0,
"react/no-unescaped-entities": [0],
"react/jsx-no-duplicate-props": [0],
"indent": [
"error", 2, {
"FunctionExpression": { "parameters": "first" },
"FunctionDeclaration": { "parameters": "first" },
"MemberExpression": 1,
"SwitchCase": 1,
"outerIIFEBody": 0,
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
ignoredNodes: ["TemplateLiteral"]
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"strict": 0,
// "indent": [
// "error", 2, {
// "FunctionExpression": { "parameters": "first" },
// "FunctionDeclaration": { "parameters": "first" },
// "MemberExpression": 1,
// "SwitchCase": 1,
// "outerIIFEBody": 0,
// "VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
// ignoredNodes: ["TemplateLiteral"]
// }
// ],
"linebreak-style": ["error", "unix"],
// "quotes": [
// "error",
// "double"
// ],
semi: ["error", "always"],
strict: 0,
"valid-typeof": 0,
"space-unary-ops": [
1, {
"words": true,
"nonwords": false
1,
{
words: true,
nonwords: false
}
],
"space-infix-ops": [
"error"
]
"space-infix-ops": ["error"]
}
};
3 changes: 3 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- name: NPM Install
run: npm install

- name: Prettier Check
run: npm run format:check

- name: Build
run: npm run build

Expand Down
70 changes: 35 additions & 35 deletions .lighthouserc.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
module.exports = {
"ci": {
"collect": {
"staticDistDir": "./public",
"url" : [
"http://localhost/404.html",
"http://localhost/404/index.html",
"http://localhost",
"http://localhost/company/about/index.html",
"http://localhost/cloud-native-management/meshery/index.html",
"http://localhost/cloud-native-management/meshmap/index.html",
"http://localhost/learn/learning-paths/index.html",
"http://localhost/learn/service-mesh-books/index.html",
"http://localhost/learn/service-mesh-workshops/index.html",
"http://localhost/learn/index.html",
"http://localhost/blog/index.html",
"http://localhost/resources/index.html",
"http://localhost/careers/index.html",
"http://localhost/community/members/index.html",
"http://localhost/community/meshmates/index.html",
"http://localhost/community/events/index.html",
"http://localhost/community/newcomers/index.html",
],
},
"assert": {
"assertions": {
"categories:performance": ["warn", {"minScore": .90}],
"categories:accessibility": ["warn", {"minScore": .90}],
"categories:best-practices": ["warn", {"minScore": .90}],
"categories:seo": ["warn", {"minScore": .90}],
}
},
"upload": {
"target": "temporary-public-storage",
},
ci: {
collect: {
staticDistDir: "./public",
url: [
"http://localhost/404.html",
"http://localhost/404/index.html",
"http://localhost",
"http://localhost/company/about/index.html",
"http://localhost/cloud-native-management/meshery/index.html",
"http://localhost/cloud-native-management/meshmap/index.html",
"http://localhost/learn/learning-paths/index.html",
"http://localhost/learn/service-mesh-books/index.html",
"http://localhost/learn/service-mesh-workshops/index.html",
"http://localhost/learn/index.html",
"http://localhost/blog/index.html",
"http://localhost/resources/index.html",
"http://localhost/careers/index.html",
"http://localhost/community/members/index.html",
"http://localhost/community/meshmates/index.html",
"http://localhost/community/events/index.html",
"http://localhost/community/newcomers/index.html"
]
},
assert: {
assertions: {
"categories:performance": ["warn", { minScore: 0.9 }],
"categories:accessibility": ["warn", { minScore: 0.9 }],
"categories:best-practices": ["warn", { minScore: 0.9 }],
"categories:seo": ["warn", { minScore: 0.9 }]
}
},
upload: {
target: "temporary-public-storage"
}
};
}
};
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
static/
.github/
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"tabWidth": 2,
"printWidth": 100,
"singleQuote": false,
"trailingComma": "none"
}
12 changes: 6 additions & 6 deletions content-learn/mastering-kubernetes-for-engineers/index.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: 'Mastering Kubernetes for Engineers'
description: 'Learn how to configure your Kubernetes clusters and manage the lifecycle of your workloads'
title: "Mastering Kubernetes for Engineers"
description: "Learn how to configure your Kubernetes clusters and manage the lifecycle of your workloads"
order: 4
themeColor: '#3C494F'
cardImage: '../../src/assets/images/meshery/icon-only/meshery-logo-light.webp'
themeColor: "#3C494F"
cardImage: "../../src/assets/images/meshery/icon-only/meshery-logo-light.webp"
courses: 0
disabled: yes
---

<!--
<!--
This file is only used to render the courses list within a learning path.
Check the Learn-Layer5 folder under src/sections/, src/templates for more understanding of how the data is used
-->
-->
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,19 @@ lectures: 8
cardImage: "../../../src/assets/images/service-mesh-icons/istio-white.svg"
meshesYouLearn:
[
{
imagepath: "../../../src/assets/images/service-mesh-icons/istio.svg",
name: "Istio",
},
{
imagepath: "../../../src/assets/images/service-mesh-icons/linkerd.webp",
name: "Linkerd",
}
{ imagepath: "../../../src/assets/images/service-mesh-icons/istio.svg", name: "Istio" },
{ imagepath: "../../../src/assets/images/service-mesh-icons/linkerd.webp", name: "Linkerd" }
]
toc:
[
'getting-started',
'deploy-an-application',
'expose-services',
'observability',
'traffic-management',
'service-security-capabilities',
'webassembly-and-intelligent-data-planes',
'conclusion',
"getting-started",
"deploy-an-application",
"expose-services",
"observability",
"traffic-management",
"service-security-capabilities",
"webassembly-and-intelligent-data-planes",
"conclusion"
]
---

Expand Down
Loading