agama/web/cspell.json
David Díaz ef05fe848e
chore: format web base code consistently (#1460)
## Problem

For whatever reason, the code web frontend code does not have a
consistent format.

## Solution

_Prettify_ the code by running `npx prettier . -w` after adapting the
configuration we had in `.prettierrc` and updating the list of
directories/files it should ignore via `.prettierignore` file.

What we have decided it to use as much defaults as possible, ending up
with just one override: `printWidth`. Having lines up to 100 characters
length looks a good compromise for us in terms of code readability.

To make the change possible, conflicts between ESLint and Prettier has
been solved by making use of
https://github.com/prettier/eslint-config-prettier. Something similar
with Stylelint, for which https://github.com/prettier/stylelint-prettier
has been used.
2024-07-12 13:00:46 +01:00

88 lines
1.7 KiB
JSON

{
"version": "0.2",
"language": "en",
"allowCompoundWords": false,
"ignorePaths": [
"src/languages.json",
"src/lib/cockpit.js",
"src/lib/cockpit-po-plugin.js",
"src/**/test-data/*"
],
"import": [
"@cspell/dict-css/cspell-ext.json",
"@cspell/dict-en-common-misspellings/cspell-ext.json",
"@cspell/dict-fullstack/cspell-ext.json",
"@cspell/dict-html/cspell-ext.json"
],
"dictionaryDefinitions": [
{
"name": "custom",
"words": [
"addrs",
"ahci",
"apsens",
"autoconnect",
"autologin",
"btrfs",
"ccmp",
"čeština",
"chzdev",
"dasd",
"dasds",
"devel",
"dbus",
"Deutsch",
"España",
"filecontent",
"filename",
"freedesktop",
"fullname",
"gettext",
"hicolor",
"ibft",
"ifaces",
"ipaddr",
"iscsi",
"jdoe",
"keymap",
"keymaps",
"libyui",
"lldp",
"localdomain",
"luks",
"mgmt",
"mmcblk",
"multipath",
"multiuser",
"ngettext",
"onboot",
"partitioner",
"patternfly",
"rfkill",
"sata",
"screenreader",
"sprintf",
"ssid",
"ssids",
"startup",
"subprogress",
"subvol",
"subvolume",
"subvolumes",
"svgrrc",
"scrollbox",
"teleporter",
"testfile",
"testsuite",
"textinput",
"tkip",
"udev",
"unpartitioned",
"wwpn",
"xxxs",
"zfcp"
]
}
],
"dictionaries": ["custom", "css", "en-common-misspelling", "fullstack", "html"]
}