@saashub/qoq-prettier 0.9.4 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +2 -2
- package/src/config.js +0 -5
- package/src/config.spec.js +0 -12
- package/src/index.js +0 -4
package/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
## Rationale
|
7
7
|
|
8
|
-
Beign tired of setting up [Prettier](https://www.npmjs.com/package/prettier) all over again for new projects
|
8
|
+
Beign tired of setting up [Prettier](https://www.npmjs.com/package/prettier) all over again for new projects, we created some base template.
|
9
9
|
|
10
10
|
## Install
|
11
11
|
|
@@ -25,7 +25,7 @@ module.exports = {
|
|
25
25
|
};
|
26
26
|
```
|
27
27
|
|
28
|
-
### For
|
28
|
+
### For ESM
|
29
29
|
|
30
30
|
```js
|
31
31
|
import config from '@saashub/qoq-prettier/config';
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@saashub/qoq-prettier",
|
3
3
|
"type": "module",
|
4
4
|
"license": "MIT",
|
5
|
-
"version": "0.
|
5
|
+
"version": "0.11.0",
|
6
6
|
"main": "./index.json",
|
7
7
|
"exports": {
|
8
8
|
".": {
|
@@ -35,5 +35,5 @@
|
|
35
35
|
"directory": "packages/prettier"
|
36
36
|
},
|
37
37
|
"homepage": "https://github.com/saashub-it/qoq/tree/master/packages/prettier",
|
38
|
-
"gitHead": "
|
38
|
+
"gitHead": "1c4b02e30bbddf9dbf58c442532cf5cef35414c1"
|
39
39
|
}
|
package/src/config.js
DELETED
package/src/config.spec.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import { describe, test, expect } from 'vitest';
|
2
|
-
|
3
|
-
import config from './config';
|
4
|
-
import * as prettier from 'prettier';
|
5
|
-
|
6
|
-
describe('config', () => {
|
7
|
-
test('can execute Pretieer with config', () => {
|
8
|
-
expect(
|
9
|
-
async () => await prettier.check('foo ( );', { ...config, parser: 'babel' })
|
10
|
-
).not.toThrowError();
|
11
|
-
});
|
12
|
-
});
|
package/src/index.js
DELETED