@morgs32/eslint-config 2.0.5 → 2.0.6

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 +8 -40
  2. package/package.json +1 -1
package/.eslintrc.js CHANGED
@@ -1,16 +1,11 @@
1
1
  // @ts-check
2
2
  module.exports = {
3
- extends: [
4
- 'next/core-web-vitals'
5
- ],
6
- ignorePatterns: [
7
- '**/lib',
8
- '**/dist',
9
- ],
3
+ extends: ['next/core-web-vitals'],
4
+ ignorePatterns: ['**/lib', '**/dist'],
10
5
  settings: {
11
6
  react: {
12
- version: 'detect'
13
- }
7
+ version: 'detect',
8
+ },
14
9
  },
15
10
  plugins: [
16
11
  'import',
@@ -22,45 +17,20 @@ module.exports = {
22
17
  'jest',
23
18
  'testing-library',
24
19
  ],
25
-
20
+
26
21
  rules: {
27
- 'spaced-comment': ['error', 'always', { 'markers': ['/'] }],
22
+ 'spaced-comment': ['error', 'always', { markers: ['/'] }],
28
23
  'unused-imports/no-unused-imports': 'error',
29
- 'comma-spacing': ['error', { 'before': false, 'after': true }],
24
+ 'comma-spacing': ['error', { before: false, after: true }],
30
25
  'react/jsx-indent': ['error', 2],
31
26
  'space-infix-ops': ['error'],
32
27
  quotes: ['error', 'single'],
33
28
  'space-before-blocks': 'error',
34
29
  'keyword-spacing': 'error',
35
30
  'object-curly-spacing': ['error', 'always'],
36
- 'object-curly-newline': [
37
- 'error',
38
- {
39
- ObjectExpression: {
40
- multiline: true,
41
- minProperties: 3,
42
- consistent: true,
43
- },
44
- ObjectPattern: {
45
- multiline: true,
46
- minProperties: 3,
47
- consistent: true,
48
- },
49
- ImportDeclaration: {
50
- multiline: true,
51
- minProperties: 3,
52
- consistent: true,
53
- },
54
- ExportDeclaration: {
55
- multiline: true,
56
- minProperties: 3,
57
- consistent: true,
58
- },
59
- },
60
- ],
61
31
  'react/jsx-indent-props': [2, 2],
62
32
  'react/jsx-first-prop-new-line': [2, 'multiline'],
63
-
33
+
64
34
  // https://github.com/facebook/create-react-app/blob/main/packages/eslint-config-react-app/index.js
65
35
  'array-callback-return': 'warn',
66
36
  'default-case': ['warn', { commentPattern: '^no default$' }],
@@ -248,7 +218,6 @@ module.exports = {
248
218
 
249
219
  // https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks
250
220
  'react-hooks/rules-of-hooks': 'error',
251
-
252
221
  },
253
222
  overrides: [
254
223
  {
@@ -300,7 +269,6 @@ module.exports = {
300
269
  },
301
270
  },
302
271
 
303
-
304
272
  // https://github.com/facebook/create-react-app/blob/main/packages/eslint-config-react-app/index.js
305
273
  {
306
274
  files: ['**/*.ts?(x)'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morgs32/eslint-config",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "",
5
5
  "main": ".eslintrc.js",
6
6
  "files": [