@shakuroinc/eslint-config-react 5.0.0 → 5.1.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 +66 -9
  2. package/package.json +15 -15
package/.eslintrc.js CHANGED
@@ -33,19 +33,24 @@ module.exports = {
33
33
  },
34
34
 
35
35
  rules: {
36
+ '@typescript-eslint/ban-ts-ignore': 0,
37
+ '@typescript-eslint/explicit-function-return-type': 0,
38
+ '@typescript-eslint/explicit-member-accessibility': 0,
39
+ '@typescript-eslint/explicit-module-boundary-types': 0,
40
+ '@typescript-eslint/interface-name-prefix': 0,
36
41
  '@typescript-eslint/naming-convention': [
37
42
  'error',
38
43
  {
39
44
  selector: 'default',
40
45
  format: ['PascalCase', 'camelCase'],
41
- leadingUnderscore: 'allow',
42
- trailingUnderscore: 'allow',
46
+ leadingUnderscore: 'forbid',
47
+ trailingUnderscore: 'forbid',
43
48
  },
44
49
  {
45
50
  selector: ['variable', 'property'],
46
51
  format: ['PascalCase', 'camelCase', 'UPPER_CASE'],
47
- leadingUnderscore: 'allow',
48
- trailingUnderscore: 'allow',
52
+ leadingUnderscore: 'forbid',
53
+ trailingUnderscore: 'forbid',
49
54
  },
50
55
  {
51
56
  selector: 'typeLike',
@@ -61,14 +66,66 @@ module.exports = {
61
66
  format: null,
62
67
  },
63
68
  ],
64
- '@typescript-eslint/ban-ts-ignore': 0,
65
- '@typescript-eslint/explicit-function-return-type': 0,
66
- '@typescript-eslint/explicit-member-accessibility': 0,
67
- '@typescript-eslint/explicit-module-boundary-types': 0,
68
- '@typescript-eslint/interface-name-prefix': 0,
69
69
  '@typescript-eslint/no-empty-function': 0,
70
70
  '@typescript-eslint/no-explicit-any': 0,
71
71
  '@typescript-eslint/no-object-literal-type-assertion': 0,
72
+ '@typescript-eslint/padding-line-between-statements': [
73
+ 'error',
74
+ {
75
+ blankLine: 'always',
76
+ prev: ['interface', 'type'],
77
+ next: '*',
78
+ },
79
+ { blankLine: 'always', prev: '*', next: ['return'] },
80
+ { blankLine: 'always', prev: 'function', next: 'function' },
81
+ { blankLine: 'always', prev: 'multiline-const', next: '*' },
82
+ {
83
+ blankLine: 'always',
84
+ prev: 'import',
85
+ next: [
86
+ 'interface',
87
+ 'type',
88
+ 'block',
89
+ 'block-like',
90
+ 'case',
91
+ 'class',
92
+ 'const',
93
+ 'export',
94
+ 'expression',
95
+ 'for',
96
+ 'function',
97
+ 'if',
98
+ 'let',
99
+ 'return',
100
+ 'throw',
101
+ 'try',
102
+ 'while',
103
+ ],
104
+ },
105
+ {
106
+ blankLine: 'always',
107
+ prev: [
108
+ 'import',
109
+ 'interface',
110
+ 'type',
111
+ 'block',
112
+ 'block-like',
113
+ 'case',
114
+ 'class',
115
+ 'const',
116
+ 'expression',
117
+ 'for',
118
+ 'function',
119
+ 'if',
120
+ 'let',
121
+ 'return',
122
+ 'throw',
123
+ 'try',
124
+ 'while',
125
+ ],
126
+ next: 'export',
127
+ },
128
+ ],
72
129
  'jsx-a11y/anchor-is-valid': [
73
130
  'error',
74
131
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakuroinc/eslint-config-react",
3
- "version": "5.0.0",
3
+ "version": "5.1.1",
4
4
  "main": ".eslintrc.js",
5
5
  "author": "Shakuro team",
6
6
  "license": "MIT",
@@ -10,36 +10,36 @@
10
10
  },
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
- "@typescript-eslint/eslint-plugin": "^5.43.0",
14
- "@typescript-eslint/parser": "^5.43.0",
15
- "eslint": "^8.27.0",
13
+ "@typescript-eslint/eslint-plugin": "^5.45.0",
14
+ "@typescript-eslint/parser": "^5.45.0",
15
+ "eslint": "^8.29.0",
16
16
  "eslint-config-prettier": "^8.5.0",
17
17
  "eslint-mdx": "^2.0.5",
18
18
  "eslint-plugin-jsx-a11y": "^6.6.1",
19
19
  "eslint-plugin-mdx": "^2.0.5",
20
20
  "eslint-plugin-prettier": "^4.2.1",
21
- "eslint-plugin-react": "7.31.10",
21
+ "eslint-plugin-react": "7.31.11",
22
22
  "eslint-plugin-react-hooks": "^4.6.0",
23
23
  "eslint-plugin-simple-import-sort": "^8.0.0",
24
- "eslint-plugin-tailwindcss": "^3.7.0",
25
- "prettier": "^2.7.1",
26
- "prettier-plugin-tailwindcss": "^0.1.13"
24
+ "eslint-plugin-tailwindcss": "^3.7.1",
25
+ "prettier": "^2.8.0",
26
+ "prettier-plugin-tailwindcss": "^0.2.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@typescript-eslint/eslint-plugin": "^5.43.0",
30
- "@typescript-eslint/parser": "^5.43.0",
31
- "eslint": "^8.27.0",
29
+ "@typescript-eslint/eslint-plugin": "^5.45.0",
30
+ "@typescript-eslint/parser": "^5.45.0",
31
+ "eslint": "^8.29.0",
32
32
  "eslint-config-prettier": "^8.5.0",
33
33
  "eslint-mdx": "^2.0.5",
34
34
  "eslint-plugin-jsx-a11y": "^6.6.1",
35
35
  "eslint-plugin-mdx": "^2.0.5",
36
36
  "eslint-plugin-prettier": "^4.2.1",
37
- "eslint-plugin-react": "7.31.10",
37
+ "eslint-plugin-react": "7.31.11",
38
38
  "eslint-plugin-react-hooks": "^4.6.0",
39
39
  "eslint-plugin-simple-import-sort": "^8.0.0",
40
- "eslint-plugin-tailwindcss": "^3.7.0",
41
- "prettier": "^2.7.1",
42
- "prettier-plugin-tailwindcss": "^0.1.13"
40
+ "eslint-plugin-tailwindcss": "^3.7.1",
41
+ "prettier": "^2.8.0",
42
+ "prettier-plugin-tailwindcss": "^0.2.0"
43
43
  },
44
44
  "lint-staged": {
45
45
  "*.{js,ts,tsx}": "eslint"