@wishket/eslint-config-wishket 0.2.8 → 1.0.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.
@@ -2,4 +2,4 @@
2
2
  '@wishket/eslint-config-wishket': patch
3
3
  ---
4
4
 
5
- Publish with tag 0.2.8
5
+ Publish with tag 1.0.0
@@ -0,0 +1,5 @@
1
+ {
2
+ "cSpell.words": [
3
+ "setstate"
4
+ ]
5
+ }
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @wishket/eslint-plugin
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### major Changes
6
+
7
+ - @wishket/eslint-config-wishket Grand Open !!
8
+
9
+ ## 0.2.9
10
+
11
+ ### Patch Changes
12
+
13
+ - src 제거 및 index.js 경로 변경
14
+
3
15
  ## 0.2.8
4
16
 
5
17
  ### Patch Changes
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # @wishket/eslint-config-wishket
2
+
3
+ 이 패키지는 확장 가능한 공유 구성으로 Wishket의 .eslintrc를 제공합니다.
4
+
5
+ ## Usage
6
+
7
+ 1. 설치
8
+
9
+ ```sh
10
+ npm install @wishket/eslint-config-wishket --save-dev
11
+ ```
12
+
13
+ ```sh
14
+ yarn install @wishket/eslint-config-wishket --dev
15
+ ```
16
+
17
+ ```sh
18
+ pnpm add @wishket/eslint-config-wishket --save-dev
19
+ ```
20
+
21
+ 2. `.eslintrc`에 `"extends": "@wishket/eslint-config-wishket"` 추가
22
+
23
+ ```javascript
24
+ module.exports = {
25
+ extends: ["@wishket/eslint-config-wishket"],
26
+ // ...other settings
27
+ }
28
+ ```
@@ -72,4 +72,9 @@ module.exports = {
72
72
  }
73
73
  ],
74
74
  },
75
+ settings : {
76
+ react: {
77
+ version: 'detect'
78
+ }
79
+ }
75
80
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@wishket/eslint-config-wishket",
3
- "version": "0.2.8",
3
+ "version": "1.0.0",
4
4
  "description": "Wishket's eslint config",
5
- "main": "src/index.js",
5
+ "main": "index.js",
6
6
  "author": "wishket-pjw <pjw@wishket.com> (https://github.com/wishket-pjw)",
7
7
  "license": "MIT",
8
8
  "peerDependencies": {
package/src/react.js DELETED
@@ -1,92 +0,0 @@
1
- module.exports = {
2
- plugins: [
3
- '@typescript-eslint/eslint-plugin',
4
- 'prettier',
5
- 'react',
6
- 'react-hooks',
7
- 'jest',
8
- 'jest-formatting',
9
- 'jest-dom',
10
- 'testing-library',
11
- 'unused-imports',
12
- ],
13
- extends: [
14
- 'plugin:@typescript-eslint/eslint-recommended',
15
- 'plugin:@typescript-eslint/recommended',
16
- 'plugin:import/errors',
17
- 'plugin:import/warnings',
18
- 'plugin:import/typescript',
19
- 'plugin:react/recommended',
20
- 'plugin:prettier/recommended',
21
- 'plugin:jest/recommended',
22
- 'plugin:jest-formatting/recommended',
23
- 'plugin:testing-library/react',
24
- 'plugin:jest-dom/recommended',
25
- 'prettier',
26
- 'eslint:recommended'
27
- ],
28
- rules: {
29
- 'unused-imports/no-unused-imports': 'error',
30
- 'react/react-in-jsx-scope': 'off',
31
- '@typescript-eslint/interface-name-prefix': 'off',
32
- 'no-unused-vars': 'off',
33
- '@typescript-eslint/explicit-function-return-type': 'off',
34
- 'import/order': [
35
- 'error',
36
- {
37
- 'newlines-between': 'always-and-inside-groups'
38
- }
39
- ],
40
- 'prettier/prettier': 'warn',
41
- '@typescript-eslint/no-unused-vars': 'off',
42
- 'react/prop-types': [
43
- 'error',
44
- {
45
- skipUndeclared: true
46
- }
47
- ],
48
- 'no-useless-computed-key': 'error',
49
- 'array-callback-return': 'error',
50
- 'react/destructuring-assignment': 'warn',
51
- 'react/no-access-state-in-setstate': 'error',
52
- 'react-hooks/rules-of-hooks': 'error',
53
- 'react-hooks/exhaustive-deps': 'error',
54
- 'react/sort-comp': [
55
- 'warn',
56
- {
57
- order: [
58
- 'static-variables',
59
- 'static-methods',
60
- 'getters',
61
- 'setters',
62
- 'instance-variables',
63
- 'lifecycle',
64
- 'everything-else',
65
- '/^handle.+$/',
66
- '/^on.+$/',
67
- 'rendering'
68
- ],
69
- groups: {
70
- rendering: ['/^render.+$/', 'render']
71
- }
72
- }
73
- ],
74
- '@typescript-eslint/quotes': [
75
- 'warn',
76
- 'single',
77
- { avoidEscape: true, allowTemplateLiterals: true }
78
- ]
79
- },
80
- settings: {
81
- react: {
82
- version: 'detect'
83
- },
84
- 'import/parsers': {
85
- '@typescript-eslint/parser': ['.ts', '.tsx']
86
- },
87
- 'import/resolver': {
88
- typescript: {}
89
- },
90
- 'import/ignore': ['testing-utils']
91
- }
92
- }
package/src/typescript.js DELETED
@@ -1,92 +0,0 @@
1
- module.exports = {
2
- plugins: [
3
- '@typescript-eslint/eslint-plugin',
4
- 'prettier',
5
- 'react',
6
- 'react-hooks',
7
- 'jest',
8
- 'jest-formatting',
9
- 'jest-dom',
10
- 'testing-library',
11
- 'unused-imports',
12
- ],
13
- extends: [
14
- 'plugin:@typescript-eslint/eslint-recommended',
15
- 'plugin:@typescript-eslint/recommended',
16
- 'plugin:import/errors',
17
- 'plugin:import/warnings',
18
- 'plugin:import/typescript',
19
- 'plugin:react/recommended',
20
- 'plugin:prettier/recommended',
21
- 'plugin:jest/recommended',
22
- 'plugin:jest-formatting/recommended',
23
- 'plugin:testing-library/react',
24
- 'plugin:jest-dom/recommended',
25
- 'prettier',
26
- 'eslint:recommended'
27
- ],
28
- rules: {
29
- 'unused-imports/no-unused-imports': 'error',
30
- 'react/react-in-jsx-scope': 'off',
31
- '@typescript-eslint/interface-name-prefix': 'off',
32
- 'no-unused-vars': 'off',
33
- '@typescript-eslint/explicit-function-return-type': 'off',
34
- 'import/order': [
35
- 'error',
36
- {
37
- 'newlines-between': 'always-and-inside-groups'
38
- }
39
- ],
40
- 'prettier/prettier': 'warn',
41
- '@typescript-eslint/no-unused-vars': 'off',
42
- 'react/prop-types': [
43
- 'error',
44
- {
45
- skipUndeclared: true
46
- }
47
- ],
48
- 'no-useless-computed-key': 'error',
49
- 'array-callback-return': 'error',
50
- 'react/destructuring-assignment': 'warn',
51
- 'react/no-access-state-in-setstate': 'error',
52
- 'react-hooks/rules-of-hooks': 'error',
53
- 'react-hooks/exhaustive-deps': 'error',
54
- 'react/sort-comp': [
55
- 'warn',
56
- {
57
- order: [
58
- 'static-variables',
59
- 'static-methods',
60
- 'getters',
61
- 'setters',
62
- 'instance-variables',
63
- 'lifecycle',
64
- 'everything-else',
65
- '/^handle.+$/',
66
- '/^on.+$/',
67
- 'rendering'
68
- ],
69
- groups: {
70
- rendering: ['/^render.+$/', 'render']
71
- }
72
- }
73
- ],
74
- '@typescript-eslint/quotes': [
75
- 'warn',
76
- 'single',
77
- { avoidEscape: true, allowTemplateLiterals: true }
78
- ]
79
- },
80
- settings: {
81
- react: {
82
- version: 'detect'
83
- },
84
- 'import/parsers': {
85
- '@typescript-eslint/parser': ['.ts', '.tsx']
86
- },
87
- 'import/resolver': {
88
- typescript: {}
89
- },
90
- 'import/ignore': ['testing-utils']
91
- }
92
- }