@qlik/eslint-config 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -177,6 +177,17 @@ export default qlik.compose(
177
177
  )
178
178
  ```
179
179
 
180
+ Using only javascript and svelte
181
+
182
+ ```js
183
+ import qlik, { recommendedJS, svelteJS } from "@qlik/eslint-config";
184
+
185
+ export default qlik.compose(
186
+ recommendedJS,
187
+ svelteJS,
188
+ )
189
+ ```
190
+
180
191
  The single configs can be useful together with the `extend` property. Below shows an example of a config
181
192
  that wants to use lint rules for node environment on a part of the code base.
182
193
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qlik/eslint-config",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Qlik's ESLint configs",
5
5
  "repository": "git@github.com:qlik-oss/dev-tools-js.git",
6
6
  "license": "ISC",
@@ -43,8 +43,8 @@
43
43
  "eslint": "^9.17.0",
44
44
  "prettier": "^3.4.2",
45
45
  "vitest": "^2.1.8",
46
- "@qlik/tsconfig": "0.3.0",
47
- "@qlik/prettier-config": "0.4.19"
46
+ "@qlik/prettier-config": "0.4.19",
47
+ "@qlik/tsconfig": "0.3.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "eslint": ">=9.0.0",
@@ -11,7 +11,7 @@ import svelteRules from "./rules/svelte.js";
11
11
  * @type {import("../types/index.js").ESLintFlatConfig}
12
12
  * config for Svelte https://github.com/sveltejs/eslint-plugin-svelte
13
13
  */
14
- const svelteSvelte = mergeConfigs(
14
+ const svelteJS = mergeConfigs(
15
15
  // base it on svelte plugin recommended config
16
16
  ...eslintPluginSvelte.configs["flat/recommended"],
17
17
  // add qlik's recommended svelte config
@@ -52,5 +52,5 @@ const svelteSvelte = mergeConfigs(
52
52
  prettier,
53
53
  );
54
54
 
55
- export default [recommendedJS, recommendedTS, svelteSvelte];
56
- export { svelteSvelte as svelte };
55
+ export default [recommendedJS, recommendedTS, svelteJS];
56
+ export { svelteJS };
package/src/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import jest from "./configs/jest.js";
4
4
  import playwright from "./configs/playwright.js";
5
5
  import react, { reactJS, reactTS } from "./configs/react.js";
6
6
  import recommended, { recommendedJS, recommendedTS } from "./configs/recommended.js";
7
- import svelte from "./configs/svelte.js";
7
+ import svelte, { svelteJS } from "./configs/svelte.js";
8
8
  import vitest from "./configs/vitest.js";
9
9
  import compose from "./utils/compose.js";
10
10
 
@@ -23,4 +23,4 @@ declare namespace qlikEslintConfig {
23
23
  }
24
24
 
25
25
  export default qlikEslintConfig;
26
- export { cjsJS, cjsTS, esmJS, esmTS, reactJS, reactTS, recommendedJS, recommendedTS };
26
+ export { cjsJS, cjsTS, esmJS, esmTS, reactJS, reactTS, recommendedJS, recommendedTS, svelteJS };
package/src/index.js CHANGED
@@ -5,7 +5,7 @@ import jest from "./configs/jest.js";
5
5
  import playwright from "./configs/playwright.js";
6
6
  import react, { reactJS, reactTS } from "./configs/react.js";
7
7
  import recommended, { recommendedJS, recommendedTS } from "./configs/recommended.js";
8
- import svelte from "./configs/svelte.js";
8
+ import svelte, { svelteJS } from "./configs/svelte.js";
9
9
  import vitest from "./configs/vitest.js";
10
10
  import compose from "./utils/compose.js";
11
11
 
@@ -28,4 +28,4 @@ const qlikEslintConfig = {
28
28
 
29
29
  export default qlikEslintConfig;
30
30
 
31
- export { cjsJS, cjsTS, esmJS, esmTS, reactJS, reactTS, recommendedJS, recommendedTS };
31
+ export { cjsJS, cjsTS, esmJS, esmTS, reactJS, reactTS, recommendedJS, recommendedTS, svelteJS };