-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* deps: upgrade father * chore: upgrade config * style: code format use prettier * style: lint fix use eslint --fix * style: code Style * test: update case * feat: upgrade blue `#1890FF` => `#1677FF` ref: https://ant.design/docs/react/migration-v5#design-specification * style: code format use prettier * docs: update README.md
- Loading branch information
Showing
11 changed files
with
148 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,3 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin | ||
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
], | ||
env: { | ||
browser: true, | ||
node: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features | ||
sourceType: 'module', // Allows for the use of imports | ||
ecmaFeatures: { | ||
jsx: true, // Allows for the parsing of JSX | ||
}, | ||
}, | ||
rules: { | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
// e.g. "@typescript-eslint/explicit-function-return-type": "off", | ||
'@typescript-eslint/indent': ['error', 2], | ||
}, | ||
module.exports = { | ||
extends: [require.resolve('@umijs/fabric/dist/eslint')], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { defineConfig } from 'father'; | ||
|
||
export default defineConfig({ | ||
platform: 'browser', | ||
esm: { output: 'es' }, | ||
cjs: { output: 'lib' }, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
module.exports = { | ||
semi: true, | ||
trailingComma: 'all', | ||
singleQuote: true, | ||
printWidth: 120, | ||
tabWidth: 2, | ||
const fabric = require('@umijs/fabric'); | ||
|
||
module.exports = { | ||
...fabric.prettier, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,52 +2,44 @@ | |
"name": "@ant-design/colors", | ||
"version": "6.0.0", | ||
"description": "Color palettes calculator of Ant Design", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"files": [ | ||
"lib", | ||
"dist/index.js", | ||
"dist/index.esm.js", | ||
"dist/src/index.d.ts", | ||
"dist/src/generate.d.ts" | ||
], | ||
"typings": "dist/src/index.d.ts", | ||
"homepage": "https://github.com/ant-design/ant-design-colors#readme", | ||
"bugs": { | ||
"url": "https://github.com/ant-design/ant-design-colors/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ant-design/ant-design-colors.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/ant-design/ant-design-colors/issues" | ||
}, | ||
"license": "MIT", | ||
"author": "afc163 <[email protected]>", | ||
"main": "./lib/index", | ||
"module": "./es/index", | ||
"typings": "es/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"es" | ||
], | ||
"scripts": { | ||
"tsc": "tsc --noEmit", | ||
"compile": "father build --esm --cjs", | ||
"prepublishOnly": "npm run compile && np --no-cleanup --no-publish", | ||
"compile": "father build", | ||
"coverage": "npm test -- --coverage && coveralls < coverage/lcov.info", | ||
"lint": "eslint src --ext .ts", | ||
"lint:fix": "prettier --write '{src,tests}/**/*.ts'", | ||
"jest": "jest", | ||
"coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls", | ||
"test": "npm run tsc && npm run lint && npm run jest" | ||
"prepublishOnly": "npm run compile && np --no-cleanup --no-publish", | ||
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", | ||
"test": "jest" | ||
}, | ||
"author": "afc163 <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@ctrl/tinycolor": "^3.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^26.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.0.0", | ||
"@typescript-eslint/parser": "^4.7.0", | ||
"coveralls": "^3.0.3", | ||
"@umijs/fabric": "^3.0.0", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^7.1.0", | ||
"eslint-config-prettier": "^8.0.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"father": "^2.29.5", | ||
"father": "^4.1.2", | ||
"jest": "^26.0.1", | ||
"np": "^7.0.0", | ||
"prettier": "^2.0.0", | ||
"ts-jest": "^26.0.0", | ||
"typescript": "^4.0.2" | ||
}, | ||
"homepage": "https://github.com/ant-design/ant-design-colors#readme" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{ | ||
"extends": [ | ||
"config:base" | ||
] | ||
"extends": ["config:base"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.