@widergy/eslint-config 1.0.3 → 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 +14 -0
- package/package.json +1 -1
- package/src/javascript.js +6 -9
- package/src/react-native.js +7 -9
- package/src/react.js +7 -9
- package/src/rules/baseRules.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [1.0.4](https://github.com/widergy/eslint-config/compare/v1.0.3...v1.0.4) (2026-02-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* [DEV-766] tsconfig ([#13](https://github.com/widergy/eslint-config/issues/13)) ([29705cd](https://github.com/widergy/eslint-config/commit/29705cd0476b01fb6b043054d9392c5f32397dbd))
|
|
14
|
+
|
|
1
15
|
## [1.0.3](https://github.com/widergy/eslint-config/compare/v1.0.2...v1.0.3) (2026-02-10)
|
|
2
16
|
|
|
3
17
|
|
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,10 +94,14 @@ export default defineConfig([
|
|
|
101
94
|
languageOptions: {
|
|
102
95
|
parser: tseslint.parser,
|
|
103
96
|
parserOptions: {
|
|
104
|
-
|
|
105
|
-
|
|
97
|
+
ecmaFeatures: {
|
|
98
|
+
jsx: true,
|
|
99
|
+
},
|
|
106
100
|
},
|
|
107
101
|
},
|
|
102
|
+
plugins: {
|
|
103
|
+
"@typescript-eslint": tseslint.plugin,
|
|
104
|
+
},
|
|
108
105
|
name: "widergy/javascript-ts",
|
|
109
106
|
rules: {
|
|
110
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,10 +118,14 @@ export default defineConfig([
|
|
|
124
118
|
languageOptions: {
|
|
125
119
|
parser: tseslint.parser,
|
|
126
120
|
parserOptions: {
|
|
127
|
-
|
|
128
|
-
|
|
121
|
+
ecmaFeatures: {
|
|
122
|
+
jsx: true,
|
|
123
|
+
},
|
|
129
124
|
},
|
|
130
125
|
},
|
|
126
|
+
plugins: {
|
|
127
|
+
"@typescript-eslint": tseslint.plugin,
|
|
128
|
+
},
|
|
131
129
|
name: "widergy/react-native-ts",
|
|
132
130
|
rules: {
|
|
133
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,10 +114,14 @@ export default defineConfig([
|
|
|
120
114
|
languageOptions: {
|
|
121
115
|
parser: tseslint.parser,
|
|
122
116
|
parserOptions: {
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
ecmaFeatures: {
|
|
118
|
+
jsx: true,
|
|
119
|
+
},
|
|
125
120
|
},
|
|
126
121
|
},
|
|
122
|
+
plugins: {
|
|
123
|
+
"@typescript-eslint": tseslint.plugin,
|
|
124
|
+
},
|
|
127
125
|
name: "widergy/react-web-ts",
|
|
128
126
|
rules: {
|
|
129
127
|
...tsOnlyRules,
|