Hoppa till innehåll

Changelog

All changes in this repository are noted here.

The format is based on Keep a Changelog, and the project uses Semantic Versioning.

  • Add node globals to node config.
  • Turn off no-console and no-process-exit in node config.
  • Put types first in the import sort order.
  • Add import settings for typescript config.
  • Adjust sort order for some attributes in Svelte components.
  • Exclude $state rune in svelte/prefer-const.
  • Set svelte/require-each-key as warning instead of error.
  • Update eslint-plugin-svelte version 3.
  • Enable svelte/html-self-closing.
  • Enable svelte/prefer-const.
  • Allow caught errors to unused in no-unused-vars.
  • Add path group override for # in import/extensions.
  • Add experimental TypeScript support in a separate config.
  • Adjust config for script modules to correct sourceType.
  • Allow underscore-dangle for __rekai.
  • Update definitions in package.json.
  • Load Svelte configuration dynamically.
  • Update references for publishing on npm.
  • Update to ESLint 9 and format configuration files to flat config.
  • Change trailingComma to ‘all’ in the Prettier configuration.
  • Add global for envision.
  • Renamed legacy to script-module-config as that is what it is used for.
  • Turn off the rule svelte/no-unused-svelte-ignore as it causes issues.
  • Remove svelte-preprocess from the installation script as it is not relevant for eslint.
  • Adjust rules for prefer-const and max-len to work better with Svelte 5.
  • New command to install dependencies and create configuration files, npx @soleil/eslint-config --setup.
  • Update settings for max-len in Svelte files as it conflicts with prettier.
  • Add exceptions for Svelte’s submodules as the import plugin cannot resolve these even though they are available.
  • Add warnings for APIs whose instances should not be imported directly but created via other APIs.
  • Ignore max-len for imports in style tags in Svelte components.
  • New plugin for linting Svelte.
  • Only load overrides for Svelte files when Svelte is installed in the project.
  • Simplify by removing the different configurations and using the same config for everything except legacy code.
  • Modernize the legacy configuration to allow limited use of ES2015+ supported by Rhino.
  • Use eslint-config-prettier in Svelte components to avoid conflicts with ESLint.
  • Remove support for Vue.
  • Allow the use of console.error() - for example, in try catch.
  • Ignore import/no-unresolved for imports starting with @sitevision/api/server, @sitevision/api/common and @sitevision/api/client as not all APIs are documented.
  • Only allow imports of Sitevision’s APIs via @sitevision/api.
  • Update paths in the global and webapp config to support the WebApps 2 structure.
  • Update peerDependencies to the latest major versions.
  • Set ecmaVersion to 2021 in the client configuration if Vue is used.
  • Add options to svelteSortOrder.
  • Typo in the rule no-return-assign in Svelte files.
  • If Vue is used in the project, set ecmaVersion to 2021 instead as the plugin uses Espree which cannot handle the same version names as ESLint.
  • Set ecmaVersion to latest to avoid updating the version every year.
  • Deprecation notice for the configurations @soleil/eslint-config/universal and @soleil/eslint-config/server
  • New configurations with clearer names: @soleil/eslint-config/webapp and @soleil/eslint-config/server-legacy
  • Allow more properties per line in an object in object-curly-newline.
  • Revert ecmaVersion to 2020.
  • More rules overlap when writing universal code.
  • Turned off import/prefer-default-export.
  • Turned off no-return-assign in Svelte components.
  • Removed linting of scripts in HTML for the server configuration for ES5 code.
  • Removed babel-eslint from dependencies.
  • Removed babel-eslint and use the standard parser with ES2020.
  • Simplified svelte.config.js, usually the plugin for globbing is not needed.
  • Added the package cache as an exception for SiteVision packages.
  • Removed incorrect configuration of a11y-no-onchange.
  • Added app_src/views/**/*.js in the server config.
  • Fixed incorrect parserOptions in the server-es6 config.
  • Changed the order of the config so the settings Svelte needs for the server side are included.
  • Dependencies needed by default are listed as peerDependencies.
  • Dependencies for framework-specific plugins need to be installed in addition to peerDependencies.
  • Support for Svelte.
  • Updated structure.
  • Update to ESLint 7.
  • Removed the configuration for Vue, now in the client.
  • Changed the rule import/extensions to ignore json files.
  • Changed the rule import/extensions to ignore vue files.
  • Changed the rule import/extensions to ignore packages, solving issues with import via alias.
  • Updated to ESLint 6.
  • Now allows a maximum of 3 attributes per line in Vue (vue/max-attributes-per-line).
  • Added server_src/api in the server to the global config.
  • Turned off global-require to allow writing require inside IIFE in src/index.js in a WebApp.
  • Added a global config that can be used in the root of a project using the standard structure and @soleil/sv-gulp-build@^3.0.0.