-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
124 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
extends: ["@dusk-network/eslint-config/js"], | ||
plugins: [], | ||
root: true, | ||
rules: {}, | ||
settings: {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: check | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
pull_request: | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x, 18.x, 20.x] | ||
|
||
name: Node ${{ matrix.node-version }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Installing dev dependencies | ||
run: npm install | ||
|
||
- name: Checking formatting | ||
run: npm run check | ||
|
||
- name: Linting | ||
run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
# Dependencies | ||
node_modules | ||
package-lock.json | ||
|
||
# Env files | ||
.env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import duskJsPrettierConfig from "./js/index.js"; | ||
|
||
export default { | ||
...duskJsPrettierConfig, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** @type {import("prettier").Config} */ | ||
const config = { | ||
trailingComma: "es5", | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,48 @@ | ||
{ | ||
"author": { | ||
"name": "Dusk Network B.V.", | ||
"url": "https://dusk.network/", | ||
"mail": "[email protected]" | ||
}, | ||
"bugs": "https://github.com/dusk-network/prettier-config/issues/", | ||
"contributors": [ | ||
"Kieran Hall <[email protected]>" | ||
], | ||
"description": "Prettier config used by Dusk JavaScript apps", | ||
"engines": { | ||
"node": ">=16.0.0" | ||
}, | ||
"main": "index.json", | ||
"homepage": "https://github.com/dusk-network/prettier-config/", | ||
"keywords": [ | ||
"dusk", | ||
"dusk network", | ||
"prettier", | ||
"prettierconfig" | ||
], | ||
"license": "MPL-2.0", | ||
"name": "@dusk-network/prettier-config", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dusk-network/prettier-config.git" | ||
}, | ||
"scripts": { | ||
"bump": "bump package.json package-lock.json" | ||
}, | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
"@jsdevtools/version-bump-prompt": "6.1.0" | ||
} | ||
} | ||
"author": { | ||
"name": "Dusk Network B.V.", | ||
"url": "https://dusk.network/", | ||
"mail": "[email protected]" | ||
}, | ||
"bugs": "https://github.com/dusk-network/prettier-config/issues/", | ||
"contributors": [ | ||
"Kieran Hall <[email protected]>" | ||
], | ||
"description": "Prettier config used by Dusk JavaScript apps", | ||
"engines": { | ||
"node": ">=16.0.0" | ||
}, | ||
"files": [ | ||
"js/**/*.js", | ||
"svelte/**/*.js" | ||
], | ||
"homepage": "https://github.com/dusk-network/prettier-config/", | ||
"keywords": [ | ||
"dusk", | ||
"dusk network", | ||
"prettier", | ||
"prettierconfig" | ||
], | ||
"license": "MPL-2.0", | ||
"name": "@dusk-network/prettier-config", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dusk-network/prettier-config.git" | ||
}, | ||
"scripts": { | ||
"bump": "bump package.json package-lock.json", | ||
"check": "prettier . --check", | ||
"lint": "eslint ." | ||
}, | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
"@dusk-network/eslint-config": "2.1.0", | ||
"@jsdevtools/version-bump-prompt": "6.1.0", | ||
"eslint": "8.54.0", | ||
"prettier": "3.2.5" | ||
}, | ||
"optionalDependencies": { | ||
"prettier-plugin-svelte": ">=3.2.1" | ||
}, | ||
"type": "module" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** @type {import("prettier").Config} */ | ||
const config = {}; | ||
|
||
export default config; |