Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
revert: feat(prettier): add prettier configs
Browse files Browse the repository at this point in the history
This reverts commit 6668f32.

BREAKING CHANGE: remove prettier configs
  • Loading branch information
ikatyang committed Jul 27, 2017
1 parent a525ecc commit 17008e5
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 34 deletions.
2 changes: 0 additions & 2 deletions .gitignore
@@ -1,4 +1,2 @@
lib/
node_modules/
/prettier.js
/prettier.d.ts
8 changes: 0 additions & 8 deletions README.md
Expand Up @@ -15,8 +15,6 @@ npm install --save-dev tslint-config-ikatyang
yarn add --dev tslint-config-ikatyang
```

**NOTE**: It's recommended to use [prettier](https://github.com/prettier/prettier) simultaneously, since this config disabled all `prettier`-related tslint rules.

## Usage

(tslint.json)
Expand All @@ -26,9 +24,3 @@ yarn add --dev tslint-config-ikatyang
"extends": "tslint-config-ikatyang"
}
```

(prettier.config.js)

```js
module.exports = require('tslint-config-ikatyang/prettier');
```
7 changes: 2 additions & 5 deletions package.json
Expand Up @@ -8,12 +8,11 @@
"author": "ikatyang",
"license": "MIT",
"scripts": {
"prepublish": "npm run build && npm run build-prettier",
"prepublish": "npm run build",
"lint": "tslint -p ./tsconfig.json --type-check",
"test": "npm run lint",
"prebuild": "rm -rf ./lib",
"build": "tsc -p ./tsconfig.build.json",
"build-prettier": "tsc -p ./tsconfig.prettier.json",
"format": "gulp format",
"format-check": "gulp format-check",
"release": "standard-version"
Expand All @@ -38,8 +37,6 @@
"tslint": "^5.5.0"
},
"files": [
"/lib/**/*",
"/prettier.js",
"/prettier.d.ts"
"/lib/**/*"
]
}
14 changes: 0 additions & 14 deletions prettier.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -5,5 +5,5 @@
"module": "commonjs",
"declaration": true
},
"include": ["src/**/*.ts", "tests/**/*.ts", "prettier.ts"]
"include": ["src/**/*.ts", "tests/**/*.ts"]
}
4 changes: 0 additions & 4 deletions tsconfig.prettier.json

This file was deleted.

0 comments on commit 17008e5

Please sign in to comment.