@paperless/conventions 2.0.1-beta.21 → 2.0.1-beta.210

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/.eslintrc.js CHANGED
@@ -1,12 +1,12 @@
1
1
  module.exports = {
2
2
  root: true,
3
- ignorePatterns: ["**/*"],
4
- plugins: ["@nrwl/nx", "only-error", "import", "unicorn", "ava"],
3
+ ignorePatterns: ['**/*'],
4
+ plugins: ['@nrwl/nx', 'only-error', 'import', 'unicorn', 'ava'],
5
5
  settings: {
6
- "import/parsers": {
7
- "@typescript-eslint/parser": [".ts", ".tsx"],
6
+ 'import/parsers': {
7
+ '@typescript-eslint/parser': ['.ts', '.tsx'],
8
8
  },
9
- "import/resolver": {
9
+ 'import/resolver': {
10
10
  typescript: {
11
11
  alwaysTryTypes: true,
12
12
  },
@@ -14,50 +14,73 @@ module.exports = {
14
14
  },
15
15
  overrides: [
16
16
  {
17
- files: ["*.ts", "*.tsx", "*.js", "*.jsx"],
17
+ files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
18
18
  rules: {
19
- "import/order": [
20
- "error",
19
+ 'import/order': [
20
+ 'error',
21
21
  {
22
22
  pathGroups: [
23
23
  {
24
- pattern: "@paperless/**",
25
- group: "external",
26
- position: "after",
24
+ pattern: '@paperless/**',
25
+ group: 'external',
26
+ position: 'after',
27
27
  },
28
28
  ],
29
- pathGroupsExcludedImportTypes: ["builtin"],
30
- groups: ["builtin", "external", "parent", "sibling", "index"],
31
- "newlines-between": "always",
29
+ pathGroupsExcludedImportTypes: ['builtin'],
30
+ groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
31
+ 'newlines-between': 'always',
32
32
  alphabetize: {
33
- order: "asc",
33
+ order: 'asc',
34
34
  caseInsensitive: true,
35
35
  },
36
36
  },
37
37
  ],
38
38
  },
39
39
  extends: [
40
- "plugin:@angular-eslint/all",
41
- "plugin:@nrwl/nx/angular",
42
- "plugin:@angular-eslint/template/process-inline-templates",
43
- "prettier",
40
+ 'plugin:@angular-eslint/all',
41
+ 'plugin:@nrwl/nx/angular',
42
+ 'plugin:@angular-eslint/template/process-inline-templates',
43
+ 'prettier',
44
44
  ],
45
45
  },
46
46
  {
47
- files: ["*.html"],
48
- extends: ["plugin:@nrwl/nx/angular-template"],
49
- rules: {},
47
+ files: ['*.html'],
48
+ plugins: ['@angular-eslint/template'],
49
+ extends: [
50
+ 'plugin:@nrwl/nx/angular-template',
51
+ 'plugin:@angular-eslint/all',
52
+ ],
53
+ rules: {
54
+ '@angular-eslint/template/attributes-order': [
55
+ 'error',
56
+ {
57
+ alphabetical: true,
58
+ order: [
59
+ 'STRUCTURAL_DIRECTIVE',
60
+ 'TEMPLATE_REFERENCE',
61
+ 'ATTRIBUTE_BINDING',
62
+ 'INPUT_BINDING',
63
+ 'OUTPUT_BINDING',
64
+ 'TWO_WAY_BINDING',
65
+ ],
66
+ },
67
+ ],
68
+ },
50
69
  },
51
70
  {
52
- files: ["*.ts", "*.tsx"],
53
- extends: ["plugin:@nrwl/nx/typescript", "plugin:unicorn/all", "plugin:import/recommended"],
71
+ files: ['*.ts', '*.tsx'],
72
+ extends: [
73
+ 'plugin:@nrwl/nx/typescript',
74
+ 'plugin:unicorn/all',
75
+ 'plugin:import/recommended',
76
+ ],
54
77
  rules: {
55
- "unicorn/no-null": "off",
56
- "import/no-unresolved": "off",
57
- "unicorn/prevent-abbreviations": "off",
58
- "unicorn/no-nested-ternary": "off",
59
- "unicorn/consistent-function-scoping": [
60
- "error",
78
+ 'unicorn/no-null': 'off',
79
+ 'import/no-unresolved': 'off',
80
+ 'unicorn/prevent-abbreviations': 'off',
81
+ 'unicorn/no-nested-ternary': 'off',
82
+ 'unicorn/consistent-function-scoping': [
83
+ 'error',
61
84
  {
62
85
  checkArrowFunctions: false,
63
86
  },
@@ -65,21 +88,21 @@ module.exports = {
65
88
  },
66
89
  },
67
90
  {
68
- files: ["*.js", "*.jsx"],
69
- extends: ["plugin:@nrwl/nx/javascript"],
91
+ files: ['*.js', '*.jsx'],
92
+ extends: ['plugin:@nrwl/nx/javascript'],
70
93
  rules: {},
71
94
  },
72
95
  {
73
- files: ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
74
- extends: ["plugin:ava/recommended"],
96
+ files: ['*.spec.ts', '*.spec.tsx', '*.spec.js', '*.spec.jsx'],
97
+ extends: ['plugin:ava/recommended'],
75
98
  env: {
76
99
  jest: true,
77
100
  },
78
101
  rules: {},
79
102
  },
80
103
  {
81
- files: ["*.json", "*.json5"],
82
- extends: ["plugin:jsonc/recommended-with-jsonc"],
104
+ files: ['*.json', '*.json5'],
105
+ extends: ['plugin:jsonc/recommended-with-jsonc'],
83
106
  rules: {},
84
107
  },
85
108
  ],