@wkovacs64/eslint-config 7.1.0 → 7.2.0
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/index.js +11 -8
- package/package.json +1 -1
package/index.js
CHANGED
@@ -116,8 +116,7 @@ export const config = [
|
|
116
116
|
}
|
117
117
|
: null,
|
118
118
|
|
119
|
-
// react-hook rules are applicable in ts/js/tsx/jsx, but only with React as a
|
120
|
-
// dep
|
119
|
+
// react-hook rules are applicable in ts/js/tsx/jsx, but only with React as a dep
|
121
120
|
hasReact
|
122
121
|
? {
|
123
122
|
files: ['**/*.ts?(x)', '**/*.js?(x)'],
|
@@ -131,14 +130,18 @@ export const config = [
|
|
131
130
|
}
|
132
131
|
: null,
|
133
132
|
|
134
|
-
// JS and
|
133
|
+
// JS, JSX, and CJS files
|
135
134
|
{
|
136
|
-
files: ['**/*.js
|
135
|
+
files: ['**/*.{js,jsx,cjs}'],
|
136
|
+
// most of these rules are useful for JS but not TS because TS handles these better
|
137
137
|
rules: {
|
138
|
-
//
|
139
|
-
//
|
140
|
-
//
|
141
|
-
//
|
138
|
+
// Blocked by https://github.com/import-js/eslint-plugin-import/issues/2132
|
139
|
+
// 'import/no-unresolved': [
|
140
|
+
// ERROR,
|
141
|
+
// {
|
142
|
+
// ignore: ['^#icons/icon', '^~/icons/icon', './icons-sprite.svg'],
|
143
|
+
// },
|
144
|
+
// ],
|
142
145
|
'no-unused-vars': [
|
143
146
|
WARN,
|
144
147
|
{
|