@viclafouch/eslint-config-viclafouch 4.12.0 → 4.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viclafouch/eslint-config-viclafouch",
3
- "version": "4.12.0",
3
+ "version": "4.14.0",
4
4
  "description": "ESLint and Prettier Config from Victor de la Fouchardiere",
5
5
  "main": "index.js",
6
6
  "keywords": [
package/rules/imports.js CHANGED
@@ -45,7 +45,7 @@ module.exports = {
45
45
  '^react',
46
46
  // Anything that starts with next
47
47
  // e.g: import { useRouter } from 'next/router'
48
- '^next',
48
+ '^(next|@remix)',
49
49
  // Anything that starts with a letter
50
50
  // e.g: import Downshift from 'downshift'
51
51
  '^[a-z]',
@@ -118,7 +118,7 @@ module.exports = {
118
118
 
119
119
  // Don't do array.filter(callback)[0], use arrat.find instead
120
120
  // https://typescript-eslint.io/rules/prefer-find
121
- // '@typescript-eslint/prefer-find': 'error',
121
+ '@typescript-eslint/prefer-find': 'error',
122
122
 
123
123
  // Prefer to use String.startsWith and String.endsWith
124
124
  // https://typescript-eslint.io/rules/prefer-string-starts-ends-with
@@ -130,14 +130,10 @@ module.exports = {
130
130
 
131
131
  // No more "as Record<any, any>" in Array.reduce initial value, use generics
132
132
  // https://typescript-eslint.io/rules/prefer-reduce-type-parameter
133
- '@typescript-eslint/prefer-reduce-type-parameter': 'error',
134
-
135
- // Require Promise-like statements to be handled appropriately.
136
- // https://typescript-eslint.io/rules/no-floating-promises
137
- '@typescript-eslint/no-floating-promises': 'error',
133
+ '@typescript-eslint/prefer-reduce-type-parameter': 'error'
138
134
 
139
135
  // Prefer using nullish coalescing (??) over logical (||) when possible.
140
- '@typescript-eslint/prefer-nullish-coalescing': 'error'
136
+ // '@typescript-eslint/prefer-nullish-coalescing': 'error'
141
137
 
142
138
  // '@typescript-eslint/ban-types': [
143
139
  // 'error',