@useinsider/eslint-config 1.0.0-alpha.2 → 1.0.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/eslint-config",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-beta.2",
4
4
  "keywords": [
5
5
  "useinsider",
6
6
  "eslint",
@@ -13,9 +13,13 @@ module.exports = {
13
13
  'guard-for-in': 'error',
14
14
  'handle-callback-err': ['error'],
15
15
  'import/extensions': ['error', {
16
+ css: 'always',
16
17
  js: 'never',
17
18
  json: 'always',
18
19
  jsx: 'never',
20
+ sass: 'always',
21
+ scss: 'always',
22
+ svg: 'always',
19
23
  ts: 'never',
20
24
  tsx: 'never',
21
25
  vue: 'always',
@@ -64,6 +68,7 @@ module.exports = {
64
68
  }],
65
69
  'no-invalid-regexp': ['error'],
66
70
  'no-iterator': ['error'],
71
+ 'no-mixed-operators': 'off',
67
72
  'no-multi-str': ['error'],
68
73
  'no-native-reassign': 'error',
69
74
  'no-nested-ternary': ['error'],
@@ -24,6 +24,10 @@ module.exports = {
24
24
  '@stylistic/implicit-arrow-linebreak': ['error', 'beside'],
25
25
  '@stylistic/indent': ['error', 4, {
26
26
  SwitchCase: 1,
27
+ ignoredNodes: [
28
+ 'PropertyDefinition[decorators]',
29
+ 'TSUnionType',
30
+ ],
27
31
  }],
28
32
  '@stylistic/key-spacing': ['error'],
29
33
  '@stylistic/keyword-spacing': ['error'],
@@ -24,13 +24,7 @@ module.exports = {
24
24
  'no-useless-constructor': 'off',
25
25
  '@typescript-eslint/no-useless-constructor': 'error',
26
26
  '@typescript-eslint/array-type': ['error', { default: 'array', readonly: 'array' }],
27
- '@typescript-eslint/indent': ['error', 4, {
28
- SwitchCase: 1,
29
- ignoredNodes: [
30
- 'PropertyDefinition[decorators]',
31
- 'TSUnionType',
32
- ],
33
- }],
27
+ '@typescript-eslint/indent': 'off',
34
28
  semi: 'off',
35
29
  '@typescript-eslint/semi': ['error', 'always'],
36
30
  '@typescript-eslint/no-misused-promises': ['error', {
@@ -42,9 +36,5 @@ module.exports = {
42
36
  '@typescript-eslint/lines-between-class-members': ['error', 'always', {
43
37
  exceptAfterSingleLine: true,
44
38
  }],
45
-
46
- // TODO enable after SD-80950
47
- '@typescript-eslint/no-empty-function': 'off',
48
- '@typescript-eslint/no-explicit-any': 'off',
49
39
  },
50
40
  };
@@ -28,6 +28,8 @@ module.exports = {
28
28
  'jsdoc/require-param': 'off',
29
29
  'jsdoc/require-jsdoc': 'off',
30
30
  'jsdoc/require-returns': 'off',
31
+ 'jsdoc/require-param-type': 'off',
32
+ 'jsdoc/check-param-names': 'off',
31
33
  },
32
34
  settings: {
33
35
  jsdoc: {
@@ -26,12 +26,13 @@ module.exports = {
26
26
  ecmaFeatures: {
27
27
  jsx: true,
28
28
  },
29
- extraFileExtensions: ['.vue'],
30
29
  },
31
30
  rules: {
32
31
  'jsdoc/require-param': 'off',
33
32
  'jsdoc/require-jsdoc': 'off',
34
33
  'jsdoc/require-returns': 'off',
34
+ 'jsdoc/require-param-type': 'off',
35
+ 'jsdoc/check-param-names': 'off',
35
36
  },
36
37
  settings: {
37
38
  jsdoc: {
@@ -30,4 +30,20 @@ module.exports = {
30
30
  },
31
31
  extraFileExtensions: ['.vue'],
32
32
  },
33
+ rules: {
34
+ 'jsdoc/require-param': 'off',
35
+ 'jsdoc/require-jsdoc': 'off',
36
+ 'jsdoc/require-returns': 'off',
37
+ 'jsdoc/require-param-type': 'off',
38
+ 'jsdoc/check-param-names': 'off',
39
+ },
40
+ settings: {
41
+ jsdoc: {
42
+ mode: 'typescript',
43
+ tagNamePreference: {
44
+ callback: 'watch',
45
+ desc: 'use',
46
+ },
47
+ },
48
+ },
33
49
  };