@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
package/src/configs/react.js
CHANGED
|
@@ -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": "
|
|
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",
|