@egy186/eslint-config 0.99.1 → 0.100.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/modules.js CHANGED
@@ -35,7 +35,7 @@ module.exports = {
35
35
  'import/no-named-default': 'error',
36
36
  'import/no-named-export': 'off',
37
37
  'import/no-namespace': 'error',
38
- 'import/no-nodejs-modules': 'error',
38
+ 'import/no-nodejs-modules': 'off',
39
39
  'import/no-relative-packages': 'error',
40
40
  'import/no-relative-parent-imports': 'off',
41
41
  'import/no-restricted-paths': 'off',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@egy186/eslint-config",
3
3
  "description": "Eslint shareable config",
4
- "version": "0.99.1",
4
+ "version": "0.100.0",
5
5
  "author": "egy186",
6
6
  "bugs": {
7
7
  "url": "https://github.com/egy186/eslint-config/issues"
@@ -10,11 +10,11 @@
10
10
  "lodash": "^4.17.21"
11
11
  },
12
12
  "devDependencies": {
13
- "@eslint-stylistic/metadata": "~1.0.1",
14
- "@stylistic/eslint-plugin": "~1.0.1",
15
- "@typescript-eslint/eslint-plugin": "~6.10.0",
16
- "@typescript-eslint/parser": "~6.10.0",
17
- "eslint": "~8.53.0",
13
+ "@eslint-stylistic/metadata": "~1.4.0",
14
+ "@stylistic/eslint-plugin": "~1.4.0",
15
+ "@typescript-eslint/eslint-plugin": "~6.12.0",
16
+ "@typescript-eslint/parser": "~6.12.0",
17
+ "eslint": "~8.54.0",
18
18
  "eslint-plugin-import": "~2.29.0",
19
19
  "eslint-plugin-jest": "~27.6.0",
20
20
  "eslint-plugin-jsdoc": "~46.9.0",
@@ -23,7 +23,7 @@
23
23
  "eslint-plugin-react-hooks": "~4.6.0",
24
24
  "husky": "^8.0.1",
25
25
  "require-dir": "^1.2.0",
26
- "typescript": "~5.2.2"
26
+ "typescript": "~5.3.2"
27
27
  },
28
28
  "engines": {
29
29
  "node": ">=16.19.1"
@@ -48,9 +48,9 @@
48
48
  "license": "MIT",
49
49
  "main": "index.js",
50
50
  "peerDependencies": {
51
- "@stylistic/eslint-plugin": "^1.0.1",
52
- "@typescript-eslint/eslint-plugin": "^6.9.0",
53
- "@typescript-eslint/parser": "^6.9.0",
51
+ "@stylistic/eslint-plugin": "^1.2.0",
52
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
53
+ "@typescript-eslint/parser": "^6.11.0",
54
54
  "eslint": "^8.50.0",
55
55
  "eslint-plugin-import": "^2.27.4",
56
56
  "eslint-plugin-jest": "^27.3.0",
package/react.js CHANGED
@@ -1,7 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- parserOptions: { ecmaFeatures: { jsx: true } },
4
+ parserOptions: {
5
+ ecmaFeatures: { jsx: true },
6
+ jsxPragma: null
7
+ },
5
8
  plugins: ['react', 'react-hooks'],
6
9
  rules: {
7
10
  'react-hooks/exhaustive-deps': 'error',
@@ -80,7 +83,7 @@ module.exports = {
80
83
  'react/jsx-props-no-spreading': 'off',
81
84
  'react/jsx-sort-props': 'off', // Migrated to @stylistic/jsx-sort-props
82
85
  'react/jsx-tag-spacing': 'off', // Migrated to @stylistic/jsx-tag-spacing
83
- 'react/jsx-uses-react': 'error',
86
+ 'react/jsx-uses-react': 'off',
84
87
  'react/jsx-uses-vars': 'error',
85
88
  'react/jsx-wrap-multilines': 'off', // Migrated to @stylistic/jsx-wrap-multilines
86
89
  'react/no-access-state-in-setstate': 'error',
@@ -119,7 +122,7 @@ module.exports = {
119
122
  'react/prefer-read-only-props': 'error',
120
123
  'react/prefer-stateless-function': 'error',
121
124
  'react/prop-types': 'error',
122
- 'react/react-in-jsx-scope': 'error',
125
+ 'react/react-in-jsx-scope': 'off',
123
126
  'react/require-default-props': 'error',
124
127
  'react/require-optimization': 'error',
125
128
  'react/require-render-return': 'error',
package/stylistic.js CHANGED
@@ -40,8 +40,9 @@ module.exports = {
40
40
  '@stylistic/computed-property-spacing': ['error', 'never'],
41
41
  '@stylistic/dot-location': ['error', 'property'],
42
42
  '@stylistic/eol-last': 'error',
43
- '@stylistic/func-call-spacing': ['error', 'never'],
43
+ '@stylistic/func-call-spacing': ['error', 'never'], // Alias of `@stylistic/function-call-spacing`
44
44
  '@stylistic/function-call-argument-newline': ['error', 'consistent'],
45
+ '@stylistic/function-call-spacing': ['error', 'never'],
45
46
  '@stylistic/function-paren-newline': ['error', 'multiline'],
46
47
  '@stylistic/generator-star-spacing': ['error', 'after'],
47
48
  '@stylistic/implicit-arrow-linebreak': ['error', 'beside'],
package/typescript.js CHANGED
@@ -126,6 +126,7 @@ module.exports = {
126
126
  '@typescript-eslint/no-unsafe-enum-comparison': 'error',
127
127
  '@typescript-eslint/no-unsafe-member-access': 'error',
128
128
  '@typescript-eslint/no-unsafe-return': 'error',
129
+ '@typescript-eslint/no-unsafe-unary-minus': 'error',
129
130
  '@typescript-eslint/no-unused-expressions': ['error', { enforceForJSX: true }],
130
131
  '@typescript-eslint/no-unused-vars': 'error',
131
132
  '@typescript-eslint/no-use-before-define': 'error',