@qlik/eslint-config 1.0.2 → 1.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qlik/eslint-config",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Qlik's ESLint configs",
5
5
  "repository": "git@github.com:qlik-oss/dev-tools-js.git",
6
6
  "license": "ISC",
@@ -52,7 +52,7 @@ const reactConfig = {
52
52
  */
53
53
  const reactJS = mergeConfigs(reactConfig, {
54
54
  name: "react-js",
55
- files: ["**/*.jsx"],
55
+ files: ["**/*.js", "**/*.jsx"],
56
56
  rules: {
57
57
  // turn on/off or modify js rules necessary for react
58
58
  "react/jsx-filename-extension": [2, { extensions: [".js", ".jsx"] }],
@@ -64,7 +64,7 @@ const reactJS = mergeConfigs(reactConfig, {
64
64
  */
65
65
  const reactTS = mergeConfigs(reactConfig, {
66
66
  name: "react-ts",
67
- files: ["**/*.tsx"],
67
+ files: ["**/*.ts", "**/*.tsx"],
68
68
  rules: {
69
69
  // turn on/off or modify js/ts rules necessary for react
70
70
  "react/jsx-filename-extension": [2, { extensions: [".js", ".jsx", ".ts", ".tsx"] }],
@@ -27,7 +27,7 @@ const rules = {
27
27
  "import-x/no-named-as-default": "error",
28
28
  // warn on accessing default export property names that are also named exports
29
29
  // https://github.com/un-ts/eslint-plugin-import-x/blob/master/docs/rules/no-named-as-default-member.md
30
- "import-x/no-named-as-default-member": "error",
30
+ "import-x/no-named-as-default-member": "off",
31
31
  // disallow use of jsdoc-marked-deprecated imports
32
32
  // https://github.com/un-ts/eslint-plugin-import-x/blob/master/docs/rules/no-deprecated.md
33
33
  "import-x/no-deprecated": "warn",
@@ -5,6 +5,8 @@
5
5
  */
6
6
  const rules = {
7
7
  // TODO use eslint-plugin-n https://github.com/eslint-community/eslint-plugin-n
8
+
9
+ // console.logs are useful in node scripts
8
10
  "no-console": "off",
9
11
  };
10
12