@widergy/eslint-config 1.0.4 → 1.0.5
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/javascript.js +6 -8
- package/src/react-native.js +7 -8
- package/src/react.js +7 -8
- package/src/rules/baseRules.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.0.5](https://github.com/widergy/eslint-config/compare/v1.0.4...v1.0.5) (2026-02-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [DEV-766] remove typeaware rules ([#14](https://github.com/widergy/eslint-config/issues/14)) ([7fa3785](https://github.com/widergy/eslint-config/commit/7fa3785b3c8475b6a7462d3d95bcc3380ba93c3e))
|
|
7
|
+
|
|
1
8
|
## [1.0.4](https://github.com/widergy/eslint-config/compare/v1.0.3...v1.0.4) (2026-02-11)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/javascript.js
CHANGED
|
@@ -12,11 +12,6 @@ import { prettierRules } from "./rules/prettierRules.js";
|
|
|
12
12
|
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
|
|
13
13
|
import { importRules } from "./rules/importRules.js";
|
|
14
14
|
|
|
15
|
-
const tsConfigs = tseslint.configs.recommendedTypeChecked.map((config) => ({
|
|
16
|
-
...config,
|
|
17
|
-
files: ["**/*.{ts,tsx}"],
|
|
18
|
-
}));
|
|
19
|
-
|
|
20
15
|
export default defineConfig([
|
|
21
16
|
js.configs.recommended,
|
|
22
17
|
|
|
@@ -24,8 +19,6 @@ export default defineConfig([
|
|
|
24
19
|
compat.extends("plugin:import/recommended", "plugin:prettier/recommended"),
|
|
25
20
|
),
|
|
26
21
|
|
|
27
|
-
...tsConfigs,
|
|
28
|
-
|
|
29
22
|
{
|
|
30
23
|
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
31
24
|
ignores: ["node_modules/**", "dist/**", "build/**"],
|
|
@@ -101,9 +94,14 @@ export default defineConfig([
|
|
|
101
94
|
languageOptions: {
|
|
102
95
|
parser: tseslint.parser,
|
|
103
96
|
parserOptions: {
|
|
104
|
-
|
|
97
|
+
ecmaFeatures: {
|
|
98
|
+
jsx: true,
|
|
99
|
+
},
|
|
105
100
|
},
|
|
106
101
|
},
|
|
102
|
+
plugins: {
|
|
103
|
+
"@typescript-eslint": tseslint.plugin,
|
|
104
|
+
},
|
|
107
105
|
name: "widergy/javascript-ts",
|
|
108
106
|
rules: {
|
|
109
107
|
...tsOnlyRules,
|
package/src/react-native.js
CHANGED
|
@@ -18,11 +18,6 @@ import { reactRules } from "./rules/reactRules.js";
|
|
|
18
18
|
import { reactNativeRules } from "./rules/reactNativeRules.js";
|
|
19
19
|
import { reactHooksRules } from "./rules/reactHooksRules.js";
|
|
20
20
|
|
|
21
|
-
const tsConfigs = tseslint.configs.recommendedTypeChecked.map((config) => ({
|
|
22
|
-
...config,
|
|
23
|
-
files: ["**/*.{ts,tsx}"],
|
|
24
|
-
}));
|
|
25
|
-
|
|
26
21
|
export default defineConfig([
|
|
27
22
|
js.configs.recommended,
|
|
28
23
|
|
|
@@ -37,8 +32,6 @@ export default defineConfig([
|
|
|
37
32
|
),
|
|
38
33
|
),
|
|
39
34
|
|
|
40
|
-
...tsConfigs,
|
|
41
|
-
|
|
42
35
|
{
|
|
43
36
|
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
44
37
|
ignores: ["node_modules/**", "dist/**", "build/**", "ios/**", "android/**"],
|
|
@@ -48,6 +41,7 @@ export default defineConfig([
|
|
|
48
41
|
...globals.node,
|
|
49
42
|
...globals.browser,
|
|
50
43
|
__DEV__: "readonly",
|
|
44
|
+
JSX: "readonly",
|
|
51
45
|
},
|
|
52
46
|
sourceType: "module",
|
|
53
47
|
},
|
|
@@ -124,9 +118,14 @@ export default defineConfig([
|
|
|
124
118
|
languageOptions: {
|
|
125
119
|
parser: tseslint.parser,
|
|
126
120
|
parserOptions: {
|
|
127
|
-
|
|
121
|
+
ecmaFeatures: {
|
|
122
|
+
jsx: true,
|
|
123
|
+
},
|
|
128
124
|
},
|
|
129
125
|
},
|
|
126
|
+
plugins: {
|
|
127
|
+
"@typescript-eslint": tseslint.plugin,
|
|
128
|
+
},
|
|
130
129
|
name: "widergy/react-native-ts",
|
|
131
130
|
rules: {
|
|
132
131
|
...tsOnlyRules,
|
package/src/react.js
CHANGED
|
@@ -17,11 +17,6 @@ import { compat } from "./utils.js";
|
|
|
17
17
|
import { defineConfig } from "eslint/config";
|
|
18
18
|
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
|
|
19
19
|
|
|
20
|
-
const tsConfigs = tseslint.configs.recommendedTypeChecked.map((config) => ({
|
|
21
|
-
...config,
|
|
22
|
-
files: ["**/*.{ts,tsx}"],
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
20
|
export default defineConfig([
|
|
26
21
|
js.configs.recommended,
|
|
27
22
|
|
|
@@ -35,8 +30,6 @@ export default defineConfig([
|
|
|
35
30
|
),
|
|
36
31
|
),
|
|
37
32
|
|
|
38
|
-
...tsConfigs,
|
|
39
|
-
|
|
40
33
|
{
|
|
41
34
|
files: ["**/*.{js,jsx,ts,tsx}"], // add support for scss files, possibly deprecating node-sass/sass-lint for sass/stylelint
|
|
42
35
|
ignores: ["node_modules/**", "dist/**", "build/**"],
|
|
@@ -46,6 +39,7 @@ export default defineConfig([
|
|
|
46
39
|
...globals.node,
|
|
47
40
|
...globals.browser,
|
|
48
41
|
__DEV__: "readonly",
|
|
42
|
+
JSX: "readonly",
|
|
49
43
|
},
|
|
50
44
|
sourceType: "module",
|
|
51
45
|
},
|
|
@@ -120,9 +114,14 @@ export default defineConfig([
|
|
|
120
114
|
languageOptions: {
|
|
121
115
|
parser: tseslint.parser,
|
|
122
116
|
parserOptions: {
|
|
123
|
-
|
|
117
|
+
ecmaFeatures: {
|
|
118
|
+
jsx: true,
|
|
119
|
+
},
|
|
124
120
|
},
|
|
125
121
|
},
|
|
122
|
+
plugins: {
|
|
123
|
+
"@typescript-eslint": tseslint.plugin,
|
|
124
|
+
},
|
|
126
125
|
name: "widergy/react-web-ts",
|
|
127
126
|
rules: {
|
|
128
127
|
...tsOnlyRules,
|