Skip to content

Commit 438b9bb

Browse files
committed
feat: improve prettier configuration [#1]
1 parent 94009e8 commit 438b9bb

File tree

4 files changed

+58
-59
lines changed

4 files changed

+58
-59
lines changed

.commitlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": ["@d3p1/commitlint-config"]
2+
"extends": ["@d3p1/commitlint-config"]
33
}

.devcontainer/devcontainer.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
2-
"name": "Node.js",
3-
"build": {
4-
"dockerfile": "Dockerfile"
5-
},
6-
"remoteUser": "node",
7-
"customizations": {
8-
"vscode": {
9-
"extensions": [
10-
"formulahendry.auto-rename-tag",
11-
"formulahendry.auto-close-tag",
12-
"streetsidesoftware.code-spell-checker",
13-
"github.vscode-github-actions",
14-
"eamodio.gitlens",
15-
"bierner.markdown-preview-github-styles",
16-
"DavidAnson.vscode-markdownlint"
17-
],
18-
"settings": {
19-
"editor.rulers": [80],
20-
"editor.defaultFormatter": "esbenp.prettier-vscode",
21-
"editor.formatOnSave": true
22-
}
23-
}
2+
"name": "Node.js",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"remoteUser": "node",
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"formulahendry.auto-rename-tag",
11+
"formulahendry.auto-close-tag",
12+
"streetsidesoftware.code-spell-checker",
13+
"github.vscode-github-actions",
14+
"eamodio.gitlens",
15+
"bierner.markdown-preview-github-styles",
16+
"DavidAnson.vscode-markdownlint"
17+
],
18+
"settings": {
19+
"editor.rulers": [80],
20+
"editor.defaultFormatter": "esbenp.prettier-vscode",
21+
"editor.formatOnSave": true
22+
}
2423
}
24+
}
2525
}

.prettierrc.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"tabWidth": 4,
3-
"printWidth": 80,
4-
"semi": false,
5-
"singleQuote": true,
6-
"quoteProps": "consistent",
7-
"bracketSpacing": false,
8-
"arrowParens": "always"
2+
"printWidth": 80,
3+
"semi": false,
4+
"singleQuote": true,
5+
"quoteProps": "consistent",
6+
"bracketSpacing": false,
7+
"arrowParens": "always"
98
}

package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
2-
"name": "@d3p1/base-css-template",
3-
"version": "1.2.0",
4-
"description": "A template to build things using CSS",
5-
"private": true,
6-
"type": "module",
7-
"scripts": {
8-
"format:code": "prettier --ignore-path .gitignore --check src",
9-
"format:code:fix": "npm run format:code -- --write",
10-
"refactor": "npm run format:code:fix"
11-
},
12-
"repository": {
13-
"type": "git",
14-
"url": "git+https://github.com/d3p1/base-css-template.git"
15-
},
16-
"keywords": [
17-
"template"
18-
],
19-
"author": "C. M. de Picciotto <d3p1@d3p1.dev> (https://d3p1.dev/)",
20-
"license": "MIT",
21-
"bugs": {
22-
"url": "https://github.com/d3p1/base-css-template/issues"
23-
},
24-
"homepage": "https://github.com/d3p1/base-css-template#readme",
25-
"devDependencies": {
26-
"@commitlint/cli": "^17.8.0",
27-
"@d3p1/commitlint-config": "^1.0.0",
28-
"husky": "^8.0.3",
29-
"prettier": "3.0.3"
30-
}
2+
"name": "@d3p1/base-css-template",
3+
"version": "1.2.0",
4+
"description": "A template to build things using CSS",
5+
"private": true,
6+
"type": "module",
7+
"scripts": {
8+
"format:code": "prettier --ignore-path .gitignore --check src",
9+
"format:code:fix": "npm run format:code -- --write",
10+
"refactor": "npm run format:code:fix"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/d3p1/base-css-template.git"
15+
},
16+
"keywords": [
17+
"template"
18+
],
19+
"author": "C. M. de Picciotto <d3p1@d3p1.dev> (https://d3p1.dev/)",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/d3p1/base-css-template/issues"
23+
},
24+
"homepage": "https://github.com/d3p1/base-css-template#readme",
25+
"devDependencies": {
26+
"@commitlint/cli": "^17.8.0",
27+
"@d3p1/commitlint-config": "^1.0.0",
28+
"husky": "^8.0.3",
29+
"prettier": "3.0.3"
30+
}
3131
}

0 commit comments

Comments
 (0)