Skip to content

Commit f38c173

Browse files
committed
release 0.4.1
1 parent 5d57134 commit f38c173

File tree

7 files changed

+573
-284
lines changed

7 files changed

+573
-284
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules
2+
lib

lib/prettier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
module.exports = {
3-
arrowParens: 'avoid',
3+
arrowParens: 'always',
44
bracketSpacing: true,
55
jsxBracketSameLine: false,
66
jsxSingleQuote: false,

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
{
22
"name": "prefer-code-style",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "A common code style rules.",
5-
"author": "LeoKu <[email protected]>",
5+
"keywords": [
6+
"code style",
7+
"eslint",
8+
"stylelint",
9+
"prettier"
10+
],
11+
"homepage": "https://github.com/Codennnn/prefer-code-style#readme",
12+
"bugs": {
13+
"url": "https://github.com/Codennnn/prefer-code-style/issues"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/Codennnn/prefer-code-style.git"
18+
},
619
"license": "MIT",
20+
"author": "LeoKu <[email protected]> (https://leoku.top)",
721
"main": "lib/index.js",
822
"files": [
923
"lib"
@@ -14,43 +28,29 @@
1428
"lint:es": "eslint --ignore-path \"./.eslintignore\" \"./**/*.{js,jsx,ts,tsx}\"",
1529
"test": "echo \"Error: no test specified\" && exit 1"
1630
},
17-
"homepage": "https://github.com/Codennnn/prefer-code-style#readme",
18-
"repository": {
19-
"type": "git",
20-
"url": "https://github.com/Codennnn/prefer-code-style.git"
21-
},
22-
"bugs": {
23-
"url": "https://github.com/Codennnn/prefer-code-style/issues"
24-
},
25-
"keywords": [
26-
"code style",
27-
"eslint",
28-
"stylelint",
29-
"prettier"
30-
],
3131
"dependencies": {
32-
"@babel/core": "^7.14.0",
33-
"@babel/eslint-parser": "^7.13.14",
34-
"@typescript-eslint/eslint-plugin": "^4.22.0",
35-
"@typescript-eslint/parser": "^4.22.0",
36-
"eslint": "^7.25.0",
32+
"@babel/core": "^7.15.0",
33+
"@babel/eslint-parser": "^7.15.0",
34+
"@typescript-eslint/eslint-plugin": "^4.29.3",
35+
"@typescript-eslint/parser": "^4.29.3",
36+
"eslint": "^7.32.0",
3737
"eslint-config-prettier": "^8.3.0",
38-
"eslint-plugin-import": "^2.22.1",
38+
"eslint-plugin-import": "^2.24.2",
3939
"eslint-plugin-jsx-a11y": "^6.4.1",
40-
"eslint-plugin-prettier": "^3.4.0",
41-
"eslint-plugin-react": "^7.23.2",
40+
"eslint-plugin-prettier": "^3.4.1",
41+
"eslint-plugin-react": "^7.24.0",
4242
"eslint-plugin-react-hooks": "^4.2.0",
4343
"eslint-plugin-simple-import-sort": "^7.0.0",
44-
"prettier": "^2.2.1",
45-
"stylelint": "^13.13.0",
44+
"prettier": "^2.3.2",
45+
"stylelint": "^13.13.1",
4646
"stylelint-config-prettier": "^8.0.2",
4747
"stylelint-config-rational-order": "^0.1.2",
4848
"stylelint-config-standard": "^22.0.0",
4949
"stylelint-order": "^4.1.0",
5050
"stylelint-prettier": "^1.2.0",
51-
"stylelint-scss": "^3.19.0"
51+
"stylelint-scss": "^3.20.1"
5252
},
5353
"devDependencies": {
54-
"typescript": "^4.2.4"
54+
"typescript": "^4.3.5"
5555
}
5656
}

src/eslint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const _extends = (() => {
2020
'plugin:react/recommended',
2121
'plugin:react-hooks/recommended',
2222
'plugin:prettier/recommended',
23-
].filter(el => el && typeof el === 'string')
23+
].filter((ext) => ext && typeof ext === 'string')
2424
})()
2525

2626
const rules = {

src/prettier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
arrowParens: 'avoid',
2+
arrowParens: 'always',
33
bracketSpacing: true,
44
jsxBracketSameLine: false,
55
jsxSingleQuote: false,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"skipLibCheck": true,
1010
"forceConsistentCasingInFileNames": true
1111
},
12-
"include": ["src/*.ts"]
12+
"include": ["src/*"]
1313
}

0 commit comments

Comments
 (0)