You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by li...@apache.org on 2024/02/23 07:27:14 UTC
(incubator-seata-website) branch docusaurus updated: optimize: optimize code style check (#847)
This is an automated email from the ASF dual-hosted git repository.
liuqiufeng pushed a commit to branch docusaurus
in repository https://gitbox.apache.org/repos/asf/incubator-seata-website.git
The following commit(s) were added to refs/heads/docusaurus by this push:
new 75061d1deb optimize: optimize code style check (#847)
75061d1deb is described below
commit 75061d1deb30077c3380c60bd2a8e635ad561fdb
Author: liuqiufeng <77...@qq.com>
AuthorDate: Fri Feb 23 15:27:10 2024 +0800
optimize: optimize code style check (#847)
---
.editorconfig | 10 ++++++
.eslintrc | 13 +++++++-
package-lock.json | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
package.json | 1 +
4 files changed, 119 insertions(+), 1 deletion(-)
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..d347e50972
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,10 @@
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+max_line_length = 120
\ No newline at end of file
diff --git a/.eslintrc b/.eslintrc
index 1383844451..d94fcb109f 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,3 +1,14 @@
{
- "extends": ["plugin:@docusaurus/recommended"]
+ "extends": ["plugin:@docusaurus/recommended"],
+ "parser": "@typescript-eslint/parser",
+ "parserOptions": {
+ "ecmaVersion": 6,
+ "sourceType": "module"
+ },
+ "rules": {
+ "strict": 2,
+ "quotes": [2, "single"],
+ "semi": [2, "always"],
+ "no-trailing-spaces": 2
+ }
}
diff --git a/package-lock.json b/package-lock.json
index c669e9b844..74d8784fc1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -30,6 +30,7 @@
"@docusaurus/types": "^3.1.1",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
+ "@typescript-eslint/parser": "^7.0.2",
"algolia-sitemap": "^2.2.1",
"markdownlint": "^0.33.0",
"markdownlint-cli": "^0.39.0",
@@ -3897,6 +3898,89 @@
"resolved": "https://registry.npmmirror.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz",
"integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ=="
},
+ "node_modules/@typescript-eslint/parser": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-7.0.2.tgz",
+ "integrity": "sha512-GdwfDglCxSmU+QTS9vhz2Sop46ebNCXpPPvsByK7hu0rFGRHL+AusKQJ7SoN+LbLh6APFpQwHKmDSwN35Z700Q==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "7.0.2",
+ "@typescript-eslint/types": "7.0.2",
+ "@typescript-eslint/typescript-estree": "7.0.2",
+ "@typescript-eslint/visitor-keys": "7.0.2",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "peerDependencies": {
+ "eslint": "^8.56.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-7.0.2.tgz",
+ "integrity": "sha512-l6sa2jF3h+qgN2qUMjVR3uCNGjWw4ahGfzIYsCtFrQJCjhbrDPdiihYT8FnnqFwsWX+20hK592yX9I2rxKTP4g==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/types": "7.0.2",
+ "@typescript-eslint/visitor-keys": "7.0.2"
+ },
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-7.0.2.tgz",
+ "integrity": "sha512-ZzcCQHj4JaXFjdOql6adYV4B/oFOFjPOC9XYwCaZFRvqN8Llfvv4gSxrkQkd2u4Ci62i2c6W6gkDwQJDaRc4nA==",
+ "dev": true,
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.0.2.tgz",
+ "integrity": "sha512-3AMc8khTcELFWcKcPc0xiLviEvvfzATpdPj/DXuOGIdQIIFybf4DMT1vKRbuAEOFMwhWt7NFLXRkbjsvKZQyvw==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/types": "7.0.2",
+ "@typescript-eslint/visitor-keys": "7.0.2",
+ "debug": "^4.3.4",
+ "globby": "^11.1.0",
+ "is-glob": "^4.0.3",
+ "minimatch": "9.0.3",
+ "semver": "^7.5.4",
+ "ts-api-utils": "^1.0.1"
+ },
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.0.2.tgz",
+ "integrity": "sha512-8Y+YiBmqPighbm5xA2k4wKTxRzx9EkBu7Rlw+WHqMvRJ3RPz/BMBO9b2ru0LUNmXg120PHUXD5+SWFy2R8DqlQ==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/types": "7.0.2",
+ "eslint-visitor-keys": "^3.4.1"
+ },
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ }
+ },
"node_modules/@typescript-eslint/scope-manager": {
"version": "5.62.0",
"resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz",
@@ -13486,6 +13570,18 @@
"resolved": "https://registry.npmmirror.com/trough/-/trough-2.2.0.tgz",
"integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw=="
},
+ "node_modules/ts-api-utils": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/ts-api-utils/-/ts-api-utils-1.2.1.tgz",
+ "integrity": "sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA==",
+ "dev": true,
+ "engines": {
+ "node": ">=16"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.2.0"
+ }
+ },
"node_modules/tslib": {
"version": "2.6.2",
"resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.6.2.tgz",
diff --git a/package.json b/package.json
index fb1d207553..11b31eeec6 100644
--- a/package.json
+++ b/package.json
@@ -38,6 +38,7 @@
"@docusaurus/types": "^3.1.1",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
+ "@typescript-eslint/parser": "^7.0.2",
"algolia-sitemap": "^2.2.1",
"markdownlint": "^0.33.0",
"markdownlint-cli": "^0.39.0",
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org