@qlik/eslint-config 1.1.5 → 1.1.6
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 +11 -0
- package/package.json +3 -3
- package/src/configs/svelte.js +3 -3
- package/src/index.js +2 -2
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.
|
|
3
|
+
"version": "1.1.6",
|
|
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/
|
|
47
|
-
"@qlik/
|
|
46
|
+
"@qlik/prettier-config": "0.4.19",
|
|
47
|
+
"@qlik/tsconfig": "0.3.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"eslint": ">=9.0.0",
|
package/src/configs/svelte.js
CHANGED
|
@@ -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
|
|
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,
|
|
56
|
-
export {
|
|
55
|
+
export default [recommendedJS, recommendedTS, svelteJS];
|
|
56
|
+
export { 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 };
|