@10stars/config 4.2.0 → 4.2.1

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/.eslintrc.js +12 -21
  2. package/package.json +1 -1
package/.eslintrc.js CHANGED
@@ -30,11 +30,11 @@ const allowedMagicNumbers = (() => {
30
30
  })()
31
31
 
32
32
  const reactUseHooks = [
33
- "useUpdateEffect",
34
- "useIsomorphicLayoutEffect",
35
- "useDeepCompareEffect",
36
- "useShallowCompareEffect",
37
- "useCustomCompareEffect",
33
+ `useUpdateEffect`,
34
+ `useIsomorphicLayoutEffect`,
35
+ `useDeepCompareEffect`,
36
+ `useShallowCompareEffect`,
37
+ `useCustomCompareEffect`,
38
38
  ]
39
39
 
40
40
  const type = {
@@ -61,12 +61,12 @@ module.exports = {
61
61
  jest: true,
62
62
  },
63
63
  extends: [
64
- "eslint:recommended",
65
- "plugin:@typescript-eslint/recommended",
66
- "plugin:@typescript-eslint/recommended-requiring-type-checking",
67
- "plugin:react/recommended",
68
- "plugin:react-hooks/recommended",
69
- "plugin:regexp/recommended",
64
+ `eslint:recommended`,
65
+ `plugin:@typescript-eslint/recommended`,
66
+ `plugin:@typescript-eslint/recommended-requiring-type-checking`,
67
+ `plugin:react/recommended`,
68
+ `plugin:react-hooks/recommended`,
69
+ `plugin:regexp/recommended`,
70
70
 
71
71
  // "plugin:import/typescript",
72
72
  // "plugin:import/warnings",
@@ -121,7 +121,7 @@ module.exports = {
121
121
  "react-hooks/exhaustive-deps": [
122
122
  type.warning,
123
123
  {
124
- additionalHooks: `(${reactUseHooks.join("|")})`,
124
+ additionalHooks: `(${reactUseHooks.join(`|`)})`,
125
125
  },
126
126
  ],
127
127
  /**
@@ -154,15 +154,6 @@ module.exports = {
154
154
  type.warning, // @see https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#differences-between-type-aliases-and-interfaces
155
155
  `type`, // there are many drawbacks in using `interface` over `type`. It saves time to use `type` everywhere
156
156
  ],
157
- "@typescript-eslint/naming-convention": [
158
- type.error,
159
- {
160
- selector: `variable`,
161
- types: [`boolean`],
162
- format: [`PascalCase`],
163
- prefix: [`is`, `should`, `has`, `can`, `did`, `will`],
164
- },
165
- ],
166
157
  "no-magic-numbers": type.ignore,
167
158
  "@typescript-eslint/no-magic-numbers": [
168
159
  type.warning,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "name": "@10stars/config",
7
7
  "description": "10stars.dev Shareable Configs",
8
- "version": "4.2.0",
8
+ "version": "4.2.1",
9
9
  "author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
10
10
  "keywords": [
11
11
  "config"