Skip to content

Commit 874a898

Browse files
committed
chore: use prettier-config-atomic
1 parent 7f342da commit 874a898

25 files changed

Lines changed: 317 additions & 326 deletions

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
2-
package.json
32
package-lock.json
43
pnpm-lock.yaml
54
coverage

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,15 @@
119119
"node-ipc": "9.1.4",
120120
"npm-check-updates": "11.6.0",
121121
"prettier": "^2.3.1",
122+
"prettier-config-atomic": "^2.0.5",
122123
"rollup": "2.51.0",
123124
"rollup-plugin-atomic": "^2.3.2",
124125
"shx": "0.3.3",
125126
"solid-js": "^0.26.5",
126127
"temp": "^0.9.4",
127128
"typescript": "^4.3.2"
128129
},
130+
"prettier": "prettier-config-atomic",
129131
"providedServices": {},
130132
"consumedServices": {},
131133
"package-deps": [

pnpm-lock.yaml

Lines changed: 128 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

prettier.config.js

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

src-commons-atom/ProviderRegistry.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ export class ProviderRegistry<Provider extends Exclude<ProviderTypes, BusySignal
4646
return null
4747
}
4848

49-
/**
50-
* Iterates over all providers matching the grammar, in priority order.
51-
*/
49+
/** Iterates over all providers matching the grammar, in priority order. */
5250
*findAllProviders(grammar: string): Iterable<Provider> {
5351
for (const provider of this.providers) {
5452
if (provider.grammarScopes == null || provider.grammarScopes.indexOf(grammar) !== -1) {

src-commons-atom/editor-largeness.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import { TextEditor } from "atom"
22

33
/**
44
* Find if an editor's largeness based on the given threashold
5+
*
56
* @param editor
6-
* @param largeLineCount lineCountIfLarge threashold
7-
* @param longLineLength lineLengthIfLong threashold
8-
* @returns the largness score if editor is large. Otherwise it returns 0 (a small file)
7+
* @param largeLineCount LineCountIfLarge threashold
8+
* @param longLineLength LineLengthIfLong threashold
9+
* @returns The largness score if editor is large. Otherwise it returns 0 (a small file)
910
*/
1011
export function largeness(
1112
editor: TextEditor,
@@ -25,9 +26,10 @@ export function largeness(
2526

2627
/**
2728
* Find if an editor has a line that is longer than the given threashold
29+
*
2830
* @param editor
29-
* @param threashold largeLineCount threashold
30-
* @returns the line count if it is larger than threashold. Otherwise it returns 0 (a small file)
31+
* @param threashold LargeLineCount threashold
32+
* @returns The line count if it is larger than threashold. Otherwise it returns 0 (a small file)
3133
*/
3234
export function lineCountIfLarge(editor: TextEditor, threashold: number) {
3335
// @ts-ignore
@@ -43,10 +45,11 @@ export function lineCountIfLarge(editor: TextEditor, threashold: number) {
4345

4446
/**
4547
* Find if an editor has a line that is longer than the given threashold
48+
*
4649
* @param editor
47-
* @param threashold lineLengthForRow threashold
48-
* @param lineCount count up to this line. Default is {editor.getLineCount()}
49-
* @returns the first line length that has a length larger than threashold. If no line is found, it returns 0
50+
* @param threashold LineLengthForRow threashold
51+
* @param lineCount Count up to this line. Default is {editor.getLineCount()}
52+
* @returns The first line length that has a length larger than threashold. If no line is found, it returns 0
5053
*/
5154
export function lineLengthIfLong(editor: TextEditor, threashold: number, lineCount: number = editor.getLineCount()) {
5255
const buffer = editor.getBuffer()

0 commit comments

Comments
 (0)