@cenk1cenk2/eslint-config 2.2.4 → 2.3.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.3.0](https://github.com/cenk1cenk2/eslint-config/compare/v2.2.4...v2.3.0) (2022-01-31)
2
+
3
+
4
+ ### Features
5
+
6
+ * relax some rules ([c6243e7](https://github.com/cenk1cenk2/eslint-config/commit/c6243e72fd409b7c0d81c5111e166deb2e030c17))
7
+
1
8
  ## [2.2.4](https://github.com/cenk1cenk2/eslint-config/compare/v2.2.3...v2.2.4) (2022-01-30)
2
9
 
3
10
 
@@ -0,0 +1,7 @@
1
+ /** @type {import("eslint").Linter.Config} */
2
+ module.exports = {
3
+ rules: {
4
+ 'import/no-extraneous-dependencies': 'error',
5
+ 'import/exports-last': 'error'
6
+ }
7
+ }
package/import.js CHANGED
@@ -36,7 +36,6 @@ module.exports = {
36
36
  }
37
37
  ],
38
38
  'import/export': 'error',
39
- 'import/exports-last': 'error',
40
39
  'import/no-extraneous-dependencies': 'error',
41
40
  'import/no-self-import': 'error',
42
41
  'import/no-useless-path-segments': 'error'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/eslint-config",
3
- "version": "2.2.4",
3
+ "version": "2.3.0",
4
4
  "description": "Eslint configuration for my taste.",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/cenk1cenk2/eslint-config",
package/typescript.js CHANGED
@@ -160,28 +160,28 @@ module.exports = {
160
160
  // 'set',
161
161
 
162
162
  // Methods
163
- 'public-static-method',
164
- 'protected-static-method',
165
- 'private-static-method',
163
+ // 'public-static-method',
164
+ // 'protected-static-method',
165
+ // 'private-static-method',
166
+ //
167
+ // 'public-instance-method',
168
+ // 'protected-instance-method',
169
+ // 'private-instance-method',
170
+ 'static-method',
166
171
 
167
- 'public-instance-method',
168
- 'protected-instance-method',
169
- 'private-instance-method',
172
+ 'public-method',
173
+ // 'public-decorated-method',
174
+ 'protected-method',
175
+ // 'protected-decorated-method',
176
+ 'private-method',
177
+ // 'private-decorated-method',
170
178
 
171
179
  'public-abstract-method',
172
180
  'protected-abstract-method',
173
181
  'private-abstract-method',
174
182
 
175
- 'public-method',
176
- 'public-decorated-method',
177
- 'protected-method',
178
- 'protected-decorated-method',
179
- 'private-method',
180
- 'private-decorated-method',
181
-
182
- 'static-method',
183
- 'instance-method',
184
- 'decorated-method',
183
+ // 'instance-method',
184
+ // 'decorated-method',
185
185
  'abstract-method',
186
186
 
187
187
  'method'
@@ -221,7 +221,7 @@ module.exports = {
221
221
 
222
222
  {
223
223
  selector: 'property',
224
- format: [ 'camelCase', 'UPPER_CASE' ]
224
+ format: [ 'camelCase', 'UPPER_CASE', 'snake_case' ]
225
225
  },
226
226
 
227
227
  {
@@ -233,7 +233,7 @@ module.exports = {
233
233
 
234
234
  {
235
235
  selector: 'enumMember',
236
- format: [ 'UPPER_CASE' ]
236
+ format: [ 'UPPER_CASE', 'camelCase' ]
237
237
  },
238
238
 
239
239
  {
@@ -299,8 +299,8 @@ module.exports = {
299
299
  {
300
300
  allowConstructorOnly: true,
301
301
  allowEmpty: false,
302
- allowStaticOnly: false,
303
- allowWithDecorator: false
302
+ allowStaticOnly: true,
303
+ allowWithDecorator: true
304
304
  }
305
305
  ],
306
306
  '@typescript-eslint/no-inferrable-types': 'error',