Skip to content

Commit 0dffced

Browse files
authored
chore: setup prettier for code formatting and eslint (#605)
1 parent 4f4254d commit 0dffced

File tree

270 files changed

+15171
-12650
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+15171
-12650
lines changed

.eslintignore

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

.eslintrc.yml

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

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
test/fixtures/**
2+
package.json
3+
package-lock.json

.prettierrc.js

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
module.exports = {
1+
// prettier.config.js, .prettierrc.js, prettier.config.cjs, or .prettierrc.cjs
2+
3+
/**
4+
* @see https://prettier.io/docs/configuration
5+
* @type {import("prettier").Config}
6+
*/
7+
const config = {
8+
trailingComma: 'es5',
9+
tabWidth: 4,
210
semi: true,
311
singleQuote: true,
4-
bracketSpacing: true,
5-
trailingComma: 'all',
12+
overrides: [
13+
{
14+
files: '*.json',
15+
options: {
16+
useTabs: false,
17+
},
18+
},
19+
],
620
};
21+
22+
module.exports = config;

docs/autocomplete.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ USAGE
1414
$ box autocomplete [SHELL] [-r]
1515
1616
ARGUMENTS
17-
SHELL (zsh|bash|powershell) Shell type
17+
[SHELL] (zsh|bash|powershell) Shell type
1818
1919
FLAGS
2020
-r, --refresh-cache Refresh cache (ignores displaying instructions)
@@ -34,4 +34,4 @@ EXAMPLES
3434
$ box autocomplete --refresh-cache
3535
```
3636

37-
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.18/src/commands/autocomplete/index.js)_
37+
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.38/src/commands/autocomplete/index.js)_

0 commit comments

Comments
 (0)