@egy186/eslint-config 0.113.1 → 0.115.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/dist/index.d.ts CHANGED
@@ -55,6 +55,7 @@ declare const config: {
55
55
  '@stylistic/jsx-curly-spacing': "error";
56
56
  '@stylistic/jsx-equals-spacing': "error";
57
57
  '@stylistic/jsx-first-prop-new-line': "error";
58
+ '@stylistic/jsx-function-call-newline': "error";
58
59
  '@stylistic/jsx-indent': ["error", number];
59
60
  '@stylistic/jsx-indent-props': ["error", number];
60
61
  '@stylistic/jsx-max-props-per-line': "error";
@@ -77,12 +78,14 @@ declare const config: {
77
78
  after: boolean;
78
79
  before: boolean;
79
80
  }];
81
+ '@stylistic/line-comment-position': "error";
80
82
  '@stylistic/linebreak-style': "error";
81
83
  '@stylistic/lines-around-comment': "off";
82
84
  '@stylistic/lines-between-class-members': "error";
83
85
  '@stylistic/max-len': "off";
84
86
  '@stylistic/max-statements-per-line': "error";
85
87
  '@stylistic/member-delimiter-style': "error";
88
+ '@stylistic/multiline-comment-style': "error";
86
89
  '@stylistic/multiline-ternary': ["error", string];
87
90
  '@stylistic/new-parens': "error";
88
91
  '@stylistic/newline-per-chained-call': "off";
package/dist/react.d.ts CHANGED
@@ -112,7 +112,7 @@ declare const config: {
112
112
  'react/prefer-stateless-function': "error";
113
113
  'react/prop-types': "error";
114
114
  'react/react-in-jsx-scope': "off";
115
- 'react/require-default-props': "error";
115
+ 'react/require-default-props': "off";
116
116
  'react/require-optimization': "error";
117
117
  'react/require-render-return': "error";
118
118
  'react/self-closing-comp': "off";
package/dist/react.js CHANGED
@@ -30,15 +30,23 @@ const config = {
30
30
  'react/hook-use-state': 'error',
31
31
  'react/iframe-missing-sandbox': 'error',
32
32
  'react/jsx-boolean-value': 'error',
33
- 'react/jsx-child-element-spacing': 'off', // Migrated to @stylistic/jsx-child-element-spacing
34
- 'react/jsx-closing-bracket-location': 'off', // Migrated to @stylistic/jsx-closing-bracket-location
35
- 'react/jsx-closing-tag-location': 'off', // Migrated to @stylistic/jsx-closing-tag-location
36
- 'react/jsx-curly-brace-presence': 'off', // Migrated to @stylistic/jsx-curly-brace-presence
37
- 'react/jsx-curly-newline': 'off', // Migrated to @stylistic/jsx-curly-newline
38
- 'react/jsx-curly-spacing': 'off', // Migrated to @stylistic/jsx-curly-spacing
39
- 'react/jsx-equals-spacing': 'off', // Migrated to @stylistic/jsx-equals-spacing
33
+ // Migrated to @stylistic/jsx-child-element-spacing
34
+ 'react/jsx-child-element-spacing': 'off',
35
+ // Migrated to @stylistic/jsx-closing-bracket-location
36
+ 'react/jsx-closing-bracket-location': 'off',
37
+ // Migrated to @stylistic/jsx-closing-tag-location
38
+ 'react/jsx-closing-tag-location': 'off',
39
+ // Migrated to @stylistic/jsx-curly-brace-presence
40
+ 'react/jsx-curly-brace-presence': 'off',
41
+ // Migrated to @stylistic/jsx-curly-newline
42
+ 'react/jsx-curly-newline': 'off',
43
+ // Migrated to @stylistic/jsx-curly-spacing
44
+ 'react/jsx-curly-spacing': 'off',
45
+ // Migrated to @stylistic/jsx-equals-spacing
46
+ 'react/jsx-equals-spacing': 'off',
40
47
  'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }],
41
- 'react/jsx-first-prop-new-line': 'off', // Migrated to @stylistic/jsx-first-prop-new-line
48
+ // Migrated to @stylistic/jsx-first-prop-new-line
49
+ 'react/jsx-first-prop-new-line': 'off',
42
50
  'react/jsx-fragments': ['error', 'element'],
43
51
  'react/jsx-handler-names': [
44
52
  'error',
@@ -47,8 +55,10 @@ const config = {
47
55
  checkLocalVariables: true
48
56
  }
49
57
  ],
50
- 'react/jsx-indent': 'off', // Migrated to @stylistic/jsx-indent
51
- 'react/jsx-indent-props': 'off', // Migrated to @stylistic/jsx-indent-props
58
+ // Migrated to @stylistic/jsx-indent
59
+ 'react/jsx-indent': 'off',
60
+ // Migrated to @stylistic/jsx-indent-props
61
+ 'react/jsx-indent-props': 'off',
52
62
  'react/jsx-key': [
53
63
  'error',
54
64
  {
@@ -58,8 +68,10 @@ const config = {
58
68
  }
59
69
  ],
60
70
  'react/jsx-max-depth': 'error',
61
- 'react/jsx-max-props-per-line': 'off', // Migrated to @stylistic/jsx-max-props-per-line
62
- 'react/jsx-newline': 'off', // Migrated to @stylistic/jsx-newline
71
+ // Migrated to @stylistic/jsx-max-props-per-line
72
+ 'react/jsx-max-props-per-line': 'off',
73
+ // Migrated to @stylistic/jsx-newline
74
+ 'react/jsx-newline': 'off',
63
75
  'react/jsx-no-bind': 'error',
64
76
  'react/jsx-no-comment-textnodes': 'error',
65
77
  'react/jsx-no-constructed-context-values': 'error',
@@ -78,15 +90,20 @@ const config = {
78
90
  'react/jsx-no-target-blank': 'error',
79
91
  'react/jsx-no-undef': 'error',
80
92
  'react/jsx-no-useless-fragment': 'error',
81
- 'react/jsx-one-expression-per-line': 'off', // Migrated to @stylistic/jsx-one-expression-per-line
93
+ // Migrated to @stylistic/jsx-one-expression-per-line
94
+ 'react/jsx-one-expression-per-line': 'off',
82
95
  'react/jsx-pascal-case': 'error',
83
- 'react/jsx-props-no-multi-spaces': 'off', // Migrated to @stylistic/jsx-props-no-multi-spaces
96
+ // Migrated to @stylistic/jsx-props-no-multi-spaces
97
+ 'react/jsx-props-no-multi-spaces': 'off',
84
98
  'react/jsx-props-no-spreading': 'off',
85
- 'react/jsx-sort-props': 'off', // Migrated to @stylistic/jsx-sort-props
86
- 'react/jsx-tag-spacing': 'off', // Migrated to @stylistic/jsx-tag-spacing
99
+ // Migrated to @stylistic/jsx-sort-props
100
+ 'react/jsx-sort-props': 'off',
101
+ // Migrated to @stylistic/jsx-tag-spacing
102
+ 'react/jsx-tag-spacing': 'off',
87
103
  'react/jsx-uses-react': 'off',
88
104
  'react/jsx-uses-vars': 'error',
89
- 'react/jsx-wrap-multilines': 'off', // Migrated to @stylistic/jsx-wrap-multilines
105
+ // Migrated to @stylistic/jsx-wrap-multilines
106
+ 'react/jsx-wrap-multilines': 'off',
90
107
  'react/no-access-state-in-setstate': 'error',
91
108
  'react/no-adjacent-inline-elements': 'error',
92
109
  'react/no-array-index-key': 'error',
@@ -124,10 +141,11 @@ const config = {
124
141
  'react/prefer-stateless-function': 'error',
125
142
  'react/prop-types': 'error',
126
143
  'react/react-in-jsx-scope': 'off',
127
- 'react/require-default-props': 'error',
144
+ 'react/require-default-props': 'off',
128
145
  'react/require-optimization': 'error',
129
146
  'react/require-render-return': 'error',
130
- 'react/self-closing-comp': 'off', // Migrated to @stylistic/self-closing-comp
147
+ // Migrated to @stylistic/self-closing-comp
148
+ 'react/self-closing-comp': 'off',
131
149
  'react/sort-comp': [
132
150
  'error',
133
151
  {
@@ -45,6 +45,7 @@ declare const rules: {
45
45
  '@stylistic/jsx-curly-spacing': "error";
46
46
  '@stylistic/jsx-equals-spacing': "error";
47
47
  '@stylistic/jsx-first-prop-new-line': "error";
48
+ '@stylistic/jsx-function-call-newline': "error";
48
49
  '@stylistic/jsx-indent': ["error", number];
49
50
  '@stylistic/jsx-indent-props': ["error", number];
50
51
  '@stylistic/jsx-max-props-per-line': "error";
@@ -67,12 +68,14 @@ declare const rules: {
67
68
  after: boolean;
68
69
  before: boolean;
69
70
  }];
71
+ '@stylistic/line-comment-position': "error";
70
72
  '@stylistic/linebreak-style': "error";
71
73
  '@stylistic/lines-around-comment': "off";
72
74
  '@stylistic/lines-between-class-members': "error";
73
75
  '@stylistic/max-len': "off";
74
76
  '@stylistic/max-statements-per-line': "error";
75
77
  '@stylistic/member-delimiter-style': "error";
78
+ '@stylistic/multiline-comment-style': "error";
76
79
  '@stylistic/multiline-ternary': ["error", string];
77
80
  '@stylistic/new-parens': "error";
78
81
  '@stylistic/newline-per-chained-call': "off";
@@ -37,7 +37,8 @@ const rules = {
37
37
  '@stylistic/computed-property-spacing': ['error', 'never'],
38
38
  '@stylistic/dot-location': ['error', 'property'],
39
39
  '@stylistic/eol-last': 'error',
40
- '@stylistic/func-call-spacing': ['error', 'never'], // Alias of `@stylistic/function-call-spacing`
40
+ // Alias of `@stylistic/function-call-spacing`
41
+ '@stylistic/func-call-spacing': ['error', 'never'],
41
42
  '@stylistic/function-call-argument-newline': ['error', 'consistent'],
42
43
  '@stylistic/function-call-spacing': ['error', 'never'],
43
44
  '@stylistic/function-paren-newline': ['error', 'multiline'],
@@ -68,6 +69,7 @@ const rules = {
68
69
  '@stylistic/jsx-curly-spacing': 'error',
69
70
  '@stylistic/jsx-equals-spacing': 'error',
70
71
  '@stylistic/jsx-first-prop-new-line': 'error',
72
+ '@stylistic/jsx-function-call-newline': 'error',
71
73
  '@stylistic/jsx-indent': ['error', 2],
72
74
  '@stylistic/jsx-indent-props': ['error', 2],
73
75
  '@stylistic/jsx-max-props-per-line': 'error',
@@ -94,12 +96,14 @@ const rules = {
94
96
  before: true
95
97
  }
96
98
  ],
99
+ '@stylistic/line-comment-position': 'error',
97
100
  '@stylistic/linebreak-style': 'error',
98
101
  '@stylistic/lines-around-comment': 'off',
99
102
  '@stylistic/lines-between-class-members': 'error',
100
103
  '@stylistic/max-len': 'off',
101
104
  '@stylistic/max-statements-per-line': 'error',
102
105
  '@stylistic/member-delimiter-style': 'error',
106
+ '@stylistic/multiline-comment-style': 'error',
103
107
  '@stylistic/multiline-ternary': ['error', 'always-multiline'],
104
108
  '@stylistic/new-parens': 'error',
105
109
  '@stylistic/newline-per-chained-call': 'off',
@@ -101,6 +101,7 @@ declare const config: {
101
101
  '@typescript-eslint/no-unnecessary-boolean-literal-compare': "error";
102
102
  '@typescript-eslint/no-unnecessary-condition': "error";
103
103
  '@typescript-eslint/no-unnecessary-qualifier': "error";
104
+ '@typescript-eslint/no-unnecessary-template-expression': "error";
104
105
  '@typescript-eslint/no-unnecessary-type-arguments': "error";
105
106
  '@typescript-eslint/no-unnecessary-type-assertion': "error";
106
107
  '@typescript-eslint/no-unnecessary-type-constraint': "error";
@@ -119,7 +120,6 @@ declare const config: {
119
120
  '@typescript-eslint/no-use-before-define': "error";
120
121
  '@typescript-eslint/no-useless-constructor': "error";
121
122
  '@typescript-eslint/no-useless-empty-export': "error";
122
- '@typescript-eslint/no-useless-template-literals': "error";
123
123
  '@typescript-eslint/no-var-requires': "error";
124
124
  '@typescript-eslint/non-nullable-type-assertion-style': "off";
125
125
  '@typescript-eslint/only-throw-error': "error";
@@ -142,7 +142,6 @@ declare const config: {
142
142
  '@typescript-eslint/prefer-regexp-exec': "error";
143
143
  '@typescript-eslint/prefer-return-this-type': "error";
144
144
  '@typescript-eslint/prefer-string-starts-ends-with': "error";
145
- '@typescript-eslint/prefer-ts-expect-error': "error";
146
145
  '@typescript-eslint/promise-function-async': "error";
147
146
  '@typescript-eslint/require-array-sort-compare': "error";
148
147
  '@typescript-eslint/require-await': "error";
@@ -108,6 +108,7 @@ const config = {
108
108
  '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
109
109
  '@typescript-eslint/no-unnecessary-condition': 'error',
110
110
  '@typescript-eslint/no-unnecessary-qualifier': 'error',
111
+ '@typescript-eslint/no-unnecessary-template-expression': 'error',
111
112
  '@typescript-eslint/no-unnecessary-type-arguments': 'error',
112
113
  '@typescript-eslint/no-unnecessary-type-assertion': 'error',
113
114
  '@typescript-eslint/no-unnecessary-type-constraint': 'error',
@@ -124,7 +125,6 @@ const config = {
124
125
  '@typescript-eslint/no-use-before-define': 'error',
125
126
  '@typescript-eslint/no-useless-constructor': 'error',
126
127
  '@typescript-eslint/no-useless-empty-export': 'error',
127
- '@typescript-eslint/no-useless-template-literals': 'error',
128
128
  '@typescript-eslint/no-var-requires': 'error',
129
129
  '@typescript-eslint/non-nullable-type-assertion-style': 'off',
130
130
  '@typescript-eslint/only-throw-error': 'error',
@@ -147,7 +147,6 @@ const config = {
147
147
  '@typescript-eslint/prefer-regexp-exec': 'error',
148
148
  '@typescript-eslint/prefer-return-this-type': 'error',
149
149
  '@typescript-eslint/prefer-string-starts-ends-with': 'error',
150
- '@typescript-eslint/prefer-ts-expect-error': 'error',
151
150
  '@typescript-eslint/promise-function-async': 'error',
152
151
  '@typescript-eslint/require-array-sort-compare': 'error',
153
152
  '@typescript-eslint/require-await': 'error',
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@egy186/eslint-config",
3
3
  "description": "Eslint shareable config",
4
- "version": "0.113.1",
4
+ "version": "0.115.0",
5
5
  "author": "egy186",
6
6
  "bugs": {
7
7
  "url": "https://github.com/egy186/eslint-config/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@stylistic/eslint-plugin": "~1.7.0",
10
+ "@stylistic/eslint-plugin": "~2.1.0",
11
11
  "eslint-plugin-import": "~2.29.1",
12
- "eslint-plugin-jsdoc": "~48.2.1",
13
- "eslint-plugin-n": "~17.2.0"
12
+ "eslint-plugin-jsdoc": "~48.2.7",
13
+ "eslint-plugin-n": "^17.8.0"
14
14
  },
15
15
  "devDependencies": {
16
- "@eslint-stylistic/metadata": "~1.7.0",
17
- "@types/eslint": "^8.56.7",
18
- "@types/node": "^20.12.7",
19
- "@typescript-eslint/eslint-plugin": "~7.6.0",
20
- "@typescript-eslint/parser": "~7.6.0",
16
+ "@eslint-stylistic/metadata": "~2.1.0",
17
+ "@types/eslint": "^8.56.10",
18
+ "@types/node": "^20.14.2",
19
+ "@typescript-eslint/eslint-plugin": "~7.12.0",
20
+ "@typescript-eslint/parser": "~7.12.0",
21
21
  "eslint": "~8.57.0",
22
22
  "eslint-import-resolver-typescript": "~3.6.1",
23
- "eslint-plugin-jest": "~28.2.0",
24
- "eslint-plugin-react": "~7.34.1",
25
- "eslint-plugin-react-hooks": "~4.6.0",
23
+ "eslint-plugin-jest": "~28.5.0",
24
+ "eslint-plugin-react": "~7.34.2",
25
+ "eslint-plugin-react-hooks": "~4.6.2",
26
26
  "husky": "^9.0.11",
27
- "jiti": "^1.21.0",
28
- "typescript": "~5.4.4"
27
+ "jiti": "^1.21.3",
28
+ "typescript": "~5.4.5"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">=18.18.0"
@@ -47,8 +47,8 @@
47
47
  "license": "MIT",
48
48
  "main": "index.js",
49
49
  "peerDependencies": {
50
- "@typescript-eslint/eslint-plugin": "^7.4.0",
51
- "@typescript-eslint/parser": "^7.4.0",
50
+ "@typescript-eslint/eslint-plugin": "^7.12.0",
51
+ "@typescript-eslint/parser": "^7.12.0",
52
52
  "eslint": "^8.50.0",
53
53
  "eslint-import-resolver-typescript": "^3.6.1",
54
54
  "eslint-plugin-jest": "^28.2.0",