Commit 3d3b5ad4 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

script: use default prettier

parent fc136b6a
ports: ports:
- port: 8000 - port: 8000
onOpen: open-preview onOpen: open-preview
tasks: tasks:
- init: npm install - init: npm install
command: npm start command: npm start
...@@ -2,3 +2,15 @@ ...@@ -2,3 +2,15 @@
package.json package.json
.umi .umi
.umi-production .umi-production
/dist
.dockerignore
.DS_Store
.eslintignore
*.png
*.toml
docker
.editorconfig
Dockerfile*
.gitignore
.prettierignore
LICENSE
\ No newline at end of file
...@@ -9,6 +9,12 @@ ...@@ -9,6 +9,12 @@
"options": { "options": {
"parser": "json" "parser": "json"
} }
},
{
"files": "document.ejs",
"options": {
"parser": "html"
}
} }
] ]
} }
...@@ -5,10 +5,7 @@ ...@@ -5,10 +5,7 @@
"stylelint-config-rational-order", "stylelint-config-rational-order",
"stylelint-config-prettier" "stylelint-config-prettier"
], ],
"plugins": [ "plugins": ["stylelint-order", "stylelint-declaration-block-no-ignored-properties"],
"stylelint-order",
"stylelint-declaration-block-no-ignored-properties"
],
"rules": { "rules": {
"no-descending-specificity": null, "no-descending-specificity": null,
"plugin/declaration-block-no-ignored-properties": true "plugin/declaration-block-no-ignored-properties": true
......
...@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo ...@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
Examples of behavior that contributes to creating a positive environment include: Examples of behavior that contributes to creating a positive environment include:
* Using welcoming and inclusive language - Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences - Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism - Gracefully accepting constructive criticism
* Focusing on what is best for the community - Focusing on what is best for the community
* Showing empathy towards other community members - Showing empathy towards other community members
Examples of unacceptable behavior by participants include: Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or advances - The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks - Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment - Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission - Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting - Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities ## Our Responsibilities
......
...@@ -115,7 +115,6 @@ Toute forme de contribution est la bienvenue, voici quelques exemples de façons ...@@ -115,7 +115,6 @@ Toute forme de contribution est la bienvenue, voici quelques exemples de façons
- Soumettre des [issues](http://github.com/ant-design/ant-design-pro/issues) pour reporter les bugs ou poser des questions. - Soumettre des [issues](http://github.com/ant-design/ant-design-pro/issues) pour reporter les bugs ou poser des questions.
- Proposer des [pull requests](http://github.com/ant-design/ant-design-pro/pulls) pour amΓ©liorer notre code. - Proposer des [pull requests](http://github.com/ant-design/ant-design-pro/pulls) pour amΓ©liorer notre code.
<div align="center"> <div align="center">
<a href="https://www.netlify.com"> <a href="https://www.netlify.com">
<img src="https://www.netlify.com/img/global/badges/netlify-color-bg.svg"/> <img src="https://www.netlify.com/img/global/badges/netlify-color-bg.svg"/>
......
...@@ -112,4 +112,4 @@ const getAntdSerials = (color: string) => { ...@@ -112,4 +112,4 @@ const getAntdSerials = (color: string) => {
}); });
const colorPalettes = generate(color); const colorPalettes = generate(color);
return lightens.concat(colorPalettes); return lightens.concat(colorPalettes);
} };
version: "3.5" version: '3.5'
services: services:
ant-design-pro_dev: ant-design-pro_dev:
...@@ -7,7 +7,7 @@ services: ...@@ -7,7 +7,7 @@ services:
build: build:
context: ../ context: ../
dockerfile: Dockerfile.dev dockerfile: Dockerfile.dev
container_name: "ant-design-pro_dev" container_name: 'ant-design-pro_dev'
volumes: volumes:
- ../src:/usr/src/app/src - ../src:/usr/src/app/src
- ../config:/usr/src/app/config - ../config:/usr/src/app/config
......
This diff is collapsed.
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
"lint:prettier": "check-prettier lint", "lint:prettier": "check-prettier lint",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less", "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"lint:ts": "tslint -p . -c tslint.yml", "lint:ts": "tslint -p . -c tslint.yml",
"prettier": " check-prettier write", "prettier": "prettier -c --write '**/*'",
"site": "npm run fetch:blocks && npm run functions:build && umi build", "site": "npm run fetch:blocks && npm run functions:build && umi build",
"start": "umi dev", "start": "umi dev",
"start:no-mock": "cross-env MOCK=none umi dev", "start:no-mock": "cross-env MOCK=none umi dev",
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
"lint-staged": { "lint-staged": {
"**/*.less": "stylelint --syntax less", "**/*.less": "stylelint --syntax less",
"**/*.{js,jsx}": "npm run lint-staged:js", "**/*.{js,jsx}": "npm run lint-staged:js",
"**/*.{js,ts,tsx,md,json,jsx,less}": [ "**/*.{js,jsx,tsx,ts,less,md,json}": [
"npm run prettier", "prettier --write",
"git add" "git add"
], ],
"**/*.{ts,tsx}": "npm run lint-staged:ts" "**/*.{ts,tsx}": "npm run lint-staged:ts"
......
...@@ -30,18 +30,16 @@ ...@@ -30,18 +30,16 @@
font-variant: tabular-nums; font-variant: tabular-nums;
line-height: 1.5; line-height: 1.5;
list-style: none; list-style: none;
-webkit-font-feature-settings: "tnum"; -webkit-font-feature-settings: 'tnum';
font-feature-settings: "tnum"; font-feature-settings: 'tnum';
position: absolute; position: absolute;
display: none; display: none;
color: #1890ff; color: #1890ff;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
opacity: 0; opacity: 0;
-webkit-transition: -webkit-transform 0.3s -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
transition: -webkit-transform 0.3s
cubic-bezier(0.78, 0.14, 0.15, 0.86);
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86),
-webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
......
...@@ -37,7 +37,7 @@ startServer.stdout.on('data', data => { ...@@ -37,7 +37,7 @@ startServer.stdout.on('data', data => {
['test', '--', '--maxWorkers=1', '--runInBand'], ['test', '--', '--maxWorkers=1', '--runInBand'],
{ {
stdio: 'inherit', stdio: 'inherit',
} },
); );
testCmd.on('exit', code => { testCmd.on('exit', code => {
startServer.kill(); startServer.kill();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment