mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 00:42:15 +02:00
68313da412
* Typescript config setup * Add type annotations to components * Further type additions * And more... * Add types to actions * Add types to templates * Further type checks * Further type additons * Install fuse latest * Housekeeping * Remove old type definitions * Fix remaning type issues * Fix some failing tests * Remove types workflow * Fix failing unit tests * Resolve back space event regression * Convert cypress files to .ts * Fix eslint issues * Remove cachebusting urls * Resolve delete button bug * Resolve regression bugs * Fix lint script * Fix lint workflow * Pass args instead of object to keyboard handlers * Flatten misc reducer * Resolve keyboad action test failures * Use Pick instead of Partial * Use interfaces in action tests * Update firefox image * Incorporate #791 * Incorporate #788
67 lines
1.8 KiB
JSON
67 lines
1.8 KiB
JSON
{
|
|
"eslint.enable": true,
|
|
// prevent watch task failures on lint errors
|
|
"eslint.autoFixOnSave": true,
|
|
// switch off default VSCode formatting rules
|
|
"javascript.format.enable": false,
|
|
// Javascript prettier runs via ESLint
|
|
"prettier.disableLanguages": ["javascript"],
|
|
"[json]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[html]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[scss]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[javascript]": {
|
|
"editor.formatOnSave": false
|
|
},
|
|
"search.exclude": {
|
|
"**/node_modules": true,
|
|
"public/assets": true,
|
|
"**/coverage": true
|
|
},
|
|
// Mocha Sidebar settings
|
|
"mocha.env": {
|
|
"NODE_ENV": "test"
|
|
},
|
|
"mocha.files.glob": "src/scripts/**/*.test.js",
|
|
"mocha.requires": ["@babel/register", "./config/jsdom.js"],
|
|
// for Windows collaborators
|
|
"files.eol": "\n",
|
|
"files.encoding": "utf8",
|
|
// associations for some files this project is using
|
|
"files.associations": {
|
|
".browserslistrc": "gitignore",
|
|
".huskyrc": "jsonc",
|
|
".npmrc": "ini"
|
|
},
|
|
// We use NPM as package manager
|
|
"npm.packageManager": "npm",
|
|
"npm.autoDetect": "on",
|
|
"npm.fetchOnlinePackageInfo": true,
|
|
"eslint.packageManager": "npm",
|
|
"json.schemas": [
|
|
// Cypress related settings - https://docs.cypress.io/guides/tooling/intelligent-code-completion.html#Features-1
|
|
{
|
|
"fileMatch": ["cypress.json"],
|
|
"url": "https://on.cypress.io/cypress.schema.json"
|
|
},
|
|
// Husky config file
|
|
{
|
|
"fileMatch": [".huskyrc"],
|
|
"url": "http://json.schemastore.org/huskyrc"
|
|
},
|
|
// Prettier config
|
|
{
|
|
"fileMatch": [".prettierrc.json"],
|
|
"url": "http://json.schemastore.org/prettierrc"
|
|
}
|
|
],
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": true
|
|
}
|
|
}
|