Skip to content

Commit e924e94

Browse files
committed
Remove prettier.config.js
Remove references to prettier.config.js Lint code
1 parent 91eb01b commit e924e94

File tree

4 files changed

+12
-26
lines changed

4 files changed

+12
-26
lines changed

eslint.config.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ module.exports = {
3939
{
4040
preferType: {
4141
any: "*",
42-
object: "Object"
42+
Boolean: "boolean",
43+
Number: "number",
44+
Object: "object",
45+
String: "string",
46+
return: "returns"
4347
},
4448
requireReturnType: true,
4549
requireParamDescription: true,
@@ -49,11 +53,6 @@ module.exports = {
4953
quotes: ["error", "double", { avoidEscape: true }],
5054
"jsx-quotes": ["error", "prefer-single"],
5155
"filenames/match-exported": ["error", "kebab"],
52-
"prettier/prettier": [
53-
"error",
54-
{
55-
parser: "typescript"
56-
}
57-
]
56+
"prettier/prettier": "error"
5857
}
5958
};

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"license": "MIT",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"name": "eslint-config-typescript",
55
"description": "An opinionated set of ESLint rules for TypeScript projects",
66
"author": "Patricio Trevino <patricio@weirdpattern.com>",
@@ -50,9 +50,9 @@
5050
},
5151
"scripts": {
5252
"format": "npm run format:root && npm run format:src && npm run format:specs",
53-
"format:root": "prettier --write --config prettier.config.js ./*.js",
54-
"format:src": "prettier --write --config prettier.config.js ./src/{,**}/*.js",
55-
"format:specs": "prettier --write --config prettier.config.js ./specs/{,**}/*.js",
53+
"format:root": "prettier --write ./*.js",
54+
"format:src": "prettier --write ./src/{,**}/*.js",
55+
"format:specs": "prettier --write ./specs/{,**}/*.js",
5656
"lint": "npm run lint:root && npm run lint:src && npm run lint:specs",
5757
"lint:root": "eslint --config eslint.config.js ./*.js",
5858
"lint:src": "eslint --config eslint.config.js ./src/{,**}/*.js",
@@ -65,7 +65,7 @@
6565
},
6666
"lint-staged": {
6767
"*.js{,x}": [
68-
"prettier --write --config prettier.config.js",
68+
"prettier --write",
6969
"git add"
7070
]
7171
}

prettier.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
module.exports = {
1212
/**
1313
* Gets the ESLint overridden eslint:recommended + others rules.
14-
* @returns {Object}
14+
* @returns {object}
1515
* The ESLint overridden eslint:recommended + others rules.
1616
*/
1717
getESLintConfig() {

0 commit comments

Comments
 (0)