@croct/eslint-plugin 0.6.0 → 0.6.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.
@@ -19,6 +19,10 @@ export declare const configs: {
19
19
  '@croct/jsx-attribute-spacing': string;
20
20
  'react/jsx-wrap-multilines': string;
21
21
  'react/display-name': string;
22
+ 'react/jsx-sort-props': (string | {
23
+ noSortAlphabetically: boolean;
24
+ multiline: string;
25
+ })[];
22
26
  'jsx-quotes': string[];
23
27
  'react/jsx-newline': (string | {
24
28
  prevent: boolean;
@@ -73,7 +73,7 @@ exports.javascript = {
73
73
  'error',
74
74
  {
75
75
  items: 6,
76
- 'max-len': 100,
76
+ 'max-len': 120,
77
77
  },
78
78
  ],
79
79
  'no-smart-quotes/no-smart-quotes': 'error',
@@ -112,7 +112,7 @@ exports.javascript = {
112
112
  'max-len': [
113
113
  'error',
114
114
  {
115
- code: 100,
115
+ code: 120,
116
116
  ignoreStrings: false,
117
117
  ignoreComments: false,
118
118
  ignoreTemplateLiterals: false,
@@ -207,6 +207,8 @@ exports.javascript = {
207
207
  blankLine: 'always',
208
208
  prev: '*',
209
209
  next: [
210
+ 'break',
211
+ 'continue',
210
212
  'return',
211
213
  'if',
212
214
  'function',
@@ -5,6 +5,10 @@ export declare const react: {
5
5
  '@croct/jsx-attribute-spacing': string;
6
6
  'react/jsx-wrap-multilines': string;
7
7
  'react/display-name': string;
8
+ 'react/jsx-sort-props': (string | {
9
+ noSortAlphabetically: boolean;
10
+ multiline: string;
11
+ })[];
8
12
  'jsx-quotes': string[];
9
13
  'react/jsx-newline': (string | {
10
14
  prevent: boolean;
package/configs/react.js CHANGED
@@ -22,6 +22,13 @@ exports.react = {
22
22
  '@croct/jsx-attribute-spacing': 'error',
23
23
  'react/jsx-wrap-multilines': 'error',
24
24
  'react/display-name': 'off',
25
+ 'react/jsx-sort-props': [
26
+ 'error',
27
+ {
28
+ noSortAlphabetically: true,
29
+ multiline: 'last',
30
+ },
31
+ ],
25
32
  'jsx-quotes': [
26
33
  'error',
27
34
  'prefer-double',
package/index.d.ts CHANGED
@@ -52,6 +52,10 @@ declare const configuration: {
52
52
  '@croct/jsx-attribute-spacing': string;
53
53
  'react/jsx-wrap-multilines': string;
54
54
  'react/display-name': string;
55
+ 'react/jsx-sort-props': (string | {
56
+ noSortAlphabetically: boolean;
57
+ multiline: string;
58
+ })[];
55
59
  'jsx-quotes': string[];
56
60
  'react/jsx-newline': (string | {
57
61
  prevent: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croct/eslint-plugin",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "ESLint rules and presets applied to all Croct JavaScript projects.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -63,8 +63,8 @@
63
63
  "eslint": "^8.8",
64
64
  "eslint-plugin-eslint-plugin": "^4.1.0",
65
65
  "eslint-plugin-self": "^1.2.1",
66
- "jest": "^27.5",
67
- "ts-jest": "^27.1",
66
+ "jest": "^28.0.0",
67
+ "ts-jest": "^28.0.0-next.3",
68
68
  "typescript": "^4.5"
69
69
  },
70
70
  "peerDependencies": {