@paperless/conventions 2.0.1-beta.15 → 2.0.1-beta.151

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,59 @@ 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
+ extends: [
49
+ 'plugin:@nrwl/nx/angular-template',
50
+ 'plugin:@angular-eslint/all',
51
+ ],
52
+ rules: {
53
+ '@angular-eslint/template/attribute-order': 'error',
54
+ },
50
55
  },
51
56
  {
52
- files: ["*.ts", "*.tsx"],
53
- extends: ["plugin:@nrwl/nx/typescript", "plugin:unicorn/all", "plugin:import/recommended"],
57
+ files: ['*.ts', '*.tsx'],
58
+ extends: [
59
+ 'plugin:@nrwl/nx/typescript',
60
+ 'plugin:unicorn/all',
61
+ 'plugin:import/recommended',
62
+ ],
54
63
  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",
64
+ 'unicorn/no-null': 'off',
65
+ 'import/no-unresolved': 'off',
66
+ 'unicorn/prevent-abbreviations': 'off',
67
+ 'unicorn/no-nested-ternary': 'off',
68
+ 'unicorn/consistent-function-scoping': [
69
+ 'error',
61
70
  {
62
71
  checkArrowFunctions: false,
63
72
  },
@@ -65,21 +74,21 @@ module.exports = {
65
74
  },
66
75
  },
67
76
  {
68
- files: ["*.js", "*.jsx"],
69
- extends: ["plugin:@nrwl/nx/javascript"],
77
+ files: ['*.js', '*.jsx'],
78
+ extends: ['plugin:@nrwl/nx/javascript'],
70
79
  rules: {},
71
80
  },
72
81
  {
73
- files: ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
74
- extends: ["plugin:ava/recommended"],
82
+ files: ['*.spec.ts', '*.spec.tsx', '*.spec.js', '*.spec.jsx'],
83
+ extends: ['plugin:ava/recommended'],
75
84
  env: {
76
85
  jest: true,
77
86
  },
78
87
  rules: {},
79
88
  },
80
89
  {
81
- files: ["*.json", "*.json5"],
82
- extends: ["plugin:jsonc/recommended-with-jsonc"],
90
+ files: ['*.json', '*.json5'],
91
+ extends: ['plugin:jsonc/recommended-with-jsonc'],
83
92
  rules: {},
84
93
  },
85
94
  ],