@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.
Files changed (2) hide show
  1. package/index.js +11 -8
  2. 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 JSX files
133
+ // JS, JSX, and CJS files
135
134
  {
136
- files: ['**/*.js?(x)'],
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
- // most of these rules are useful for JS but not TS because TS handles these better
139
- // if it weren't for https://github.com/import-js/eslint-plugin-import/issues/2132
140
- // we could enable this :(
141
- // 'import/no-unresolved': ERROR,
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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wkovacs64/eslint-config",
3
- "version": "7.1.0",
3
+ "version": "7.2.0",
4
4
  "description": "@wKovacs64 ESLint config",
5
5
  "keywords": [
6
6
  "eslint",