-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Prettier for formatting and format all files
Resolves #1457
- Loading branch information
1 parent
fbd6dfa
commit 4262571
Showing
239 changed files
with
3,563 additions
and
3,031 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 |
---|---|---|
@@ -1,73 +1,73 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es2022": true, | ||
"node": true | ||
env: { | ||
browser: true, | ||
es2022: true, | ||
node: true, | ||
}, | ||
"extends": [ | ||
extends: [ | ||
"@dusk-network/eslint-config/js", | ||
"@dusk-network/eslint-config/svelte" | ||
"@dusk-network/eslint-config/svelte", | ||
], | ||
"globals": { | ||
"CONFIG": false | ||
globals: { | ||
CONFIG: false, | ||
}, | ||
"overrides": [{ | ||
"files": ["*.svelte"], | ||
"rules": { | ||
"no-undef-init": 0, | ||
"svelte/require-optimized-style-attribute": 0 | ||
} | ||
}, { | ||
"files": ["*.spec.js", "*.test.js"], | ||
"rules": { | ||
"brace-style": [ | ||
"error", | ||
"1tbs", | ||
{ "allowSingleLine": true } | ||
], | ||
"jsdoc/require-jsdoc": 0, | ||
"max-len": [ | ||
"error", { | ||
"code": 110, | ||
"comments": 110, | ||
"ignorePattern": "^\\s*it\\(", | ||
"ignoreUrls": true | ||
} | ||
], | ||
"max-nested-callbacks": [ | ||
"error", | ||
5 | ||
], | ||
"max-statements": 0, | ||
"max-statements-per-line": [ | ||
"error", { | ||
"max": 2 | ||
} | ||
], | ||
"object-curly-newline": 0, | ||
"quote-props": [ | ||
"error", | ||
"consistent" | ||
], | ||
"sort-keys": 0 | ||
} | ||
}], | ||
"root": true, | ||
"settings": { | ||
overrides: [ | ||
{ | ||
files: ["*.svelte"], | ||
rules: { | ||
"no-undef-init": 0, | ||
"svelte/require-optimized-style-attribute": 0, | ||
}, | ||
}, | ||
{ | ||
files: ["*.spec.js", "*.test.js"], | ||
rules: { | ||
"brace-style": ["error", "1tbs", { allowSingleLine: true }], | ||
"jsdoc/require-jsdoc": 0, | ||
"max-len": [ | ||
"error", | ||
{ | ||
code: 110, | ||
comments: 110, | ||
ignorePattern: "^\\s*it\\(", | ||
ignoreUrls: true, | ||
}, | ||
], | ||
"max-nested-callbacks": ["error", 5], | ||
"max-statements": 0, | ||
"max-statements-per-line": [ | ||
"error", | ||
{ | ||
max: 2, | ||
}, | ||
], | ||
"object-curly-newline": 0, | ||
"quote-props": ["error", "consistent"], | ||
"sort-keys": 0, | ||
}, | ||
}, | ||
], | ||
root: true, | ||
settings: { | ||
"import/resolver": { | ||
"eslint-import-resolver-custom-alias": { | ||
"alias": { | ||
"$app": "node_modules/@sveltejs/kit/src/runtime/app", | ||
"$config": "./src/config", | ||
"$lib": "./src/lib", | ||
"@sveltejs/kit": "node_modules/@sveltejs/kit/src/exports/index.js", | ||
"@testing-library/svelte": "node_modules/@testing-library/svelte/src/index.js", | ||
"svelte/motion": "node_modules/svelte/src/runtime/motion/index.js", | ||
"svelte/store": "node_modules/svelte/src/runtime/store/index.js", | ||
"svelte/transition": "node_modules/svelte/src/runtime/transition/index.js" | ||
alias: { | ||
$app: "node_modules/@sveltejs/kit/src/runtime/app", | ||
$config: "./src/config", | ||
$lib: "./src/lib", | ||
"@sveltejs/kit": | ||
"node_modules/@sveltejs/kit/src/exports/index.js", | ||
"@testing-library/svelte": | ||
"node_modules/@testing-library/svelte/src/index.js", | ||
"svelte/motion": | ||
"node_modules/svelte/src/runtime/motion/index.js", | ||
"svelte/store": | ||
"node_modules/svelte/src/runtime/store/index.js", | ||
"svelte/transition": | ||
"node_modules/svelte/src/runtime/transition/index.js", | ||
}, | ||
"extensions": [".cjs", ".js", ".json", ".svelte"] | ||
} | ||
} | ||
} | ||
extensions: [".cjs", ".js", ".json", ".svelte"], | ||
}, | ||
}, | ||
}, | ||
}; |
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,9 @@ | ||
import duskJsPrettierConfig from "@dusk-network/prettier-config/js/index.js"; | ||
import duskSveltePrettierConfig from "@dusk-network/prettier-config/svelte/index.js"; | ||
|
||
export default { | ||
plugins: ["prettier-plugin-svelte"], | ||
overrides: [{ files: "*.svelte", options: { parser: "svelte" } }], | ||
...duskJsPrettierConfig, | ||
...duskSveltePrettierConfig, | ||
}; |
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
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
Oops, something went wrong.