Skip to content

Commit 76e43df

Browse files
committed
publish
1 parent 1e30128 commit 76e43df

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# prefer-code-style
2+
3+
一套适用于 react 框架的代码风格规则。

index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict'
2+
3+
var eslint = require('./dist/eslint')
4+
var stylelint = require('./dist/stylelint')
5+
var prettier = require('./dist/prettier')
6+
7+
module.exports = {
8+
eslint,
9+
stylelint,
10+
prettier,
11+
}

package.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
22
"name": "prefer-code-style",
3-
"version": "1.0.0",
3+
"version": "0.1.0",
44
"description": "A common code style rules.",
5+
"author": "LeoKu <[email protected]>",
6+
"license": "MIT",
57
"main": "index.js",
8+
"files": [
9+
"dist",
10+
"index.js"
11+
],
612
"scripts": {
713
"build": "tsc --build tsconfig.json",
814
"lint": "yarn lint:es",
@@ -11,20 +17,22 @@
1117
},
1218
"repository": {
1319
"type": "git",
14-
"url": "https://github.com/Codennnn"
20+
"url": "https://github.com/Codennnn/prefer-code-style.git"
21+
},
22+
"homepage": "https://github.com/Codennnn/prefer-code-style",
23+
"bugs": {
24+
"url": "https://github.com/Codennnn/prefer-code-style/issues"
1525
},
1626
"keywords": [
1727
"code style",
1828
"eslint",
1929
"stylelint",
2030
"prettier"
2131
],
22-
"author": "LeoKu <[email protected]>",
23-
"license": "MIT",
2432
"devDependencies": {
25-
"eslint": "^7.25.0",
2633
"@typescript-eslint/eslint-plugin": "^4.22.0",
2734
"@typescript-eslint/parser": "^4.22.0",
35+
"eslint": "^7.25.0",
2836
"eslint-config-prettier": "^8.3.0",
2937
"eslint-plugin-import": "^2.22.1",
3038
"eslint-plugin-jsx-a11y": "^6.4.1",

0 commit comments

Comments
 (0)