@paperless/conventions 2.0.1-beta.21 → 2.0.1-beta.211
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 +59 -36
- package/CHANGELOG.md +1671 -0
- package/commitlint.config.js +8 -0
- package/package.json +31 -32
- package/index.js +0 -3
package/.eslintrc.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
root: true,
|
|
3
|
-
ignorePatterns: [
|
|
4
|
-
plugins: [
|
|
3
|
+
ignorePatterns: ['**/*'],
|
|
4
|
+
plugins: ['@nrwl/nx', 'only-error', 'import', 'unicorn', 'ava'],
|
|
5
5
|
settings: {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
'import/parsers': {
|
|
7
|
+
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
|
8
8
|
},
|
|
9
|
-
|
|
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: [
|
|
17
|
+
files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
|
|
18
18
|
rules: {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
'import/order': [
|
|
20
|
+
'error',
|
|
21
21
|
{
|
|
22
22
|
pathGroups: [
|
|
23
23
|
{
|
|
24
|
-
pattern:
|
|
25
|
-
group:
|
|
26
|
-
position:
|
|
24
|
+
pattern: '@paperless/**',
|
|
25
|
+
group: 'external',
|
|
26
|
+
position: 'after',
|
|
27
27
|
},
|
|
28
28
|
],
|
|
29
|
-
pathGroupsExcludedImportTypes: [
|
|
30
|
-
groups: [
|
|
31
|
-
|
|
29
|
+
pathGroupsExcludedImportTypes: ['builtin'],
|
|
30
|
+
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
|
|
31
|
+
'newlines-between': 'always',
|
|
32
32
|
alphabetize: {
|
|
33
|
-
order:
|
|
33
|
+
order: 'asc',
|
|
34
34
|
caseInsensitive: true,
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
],
|
|
38
38
|
},
|
|
39
39
|
extends: [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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: [
|
|
48
|
-
|
|
49
|
-
|
|
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: [
|
|
53
|
-
extends: [
|
|
71
|
+
files: ['*.ts', '*.tsx'],
|
|
72
|
+
extends: [
|
|
73
|
+
'plugin:@nrwl/nx/typescript',
|
|
74
|
+
'plugin:unicorn/all',
|
|
75
|
+
'plugin:import/recommended',
|
|
76
|
+
],
|
|
54
77
|
rules: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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: [
|
|
69
|
-
extends: [
|
|
91
|
+
files: ['*.js', '*.jsx'],
|
|
92
|
+
extends: ['plugin:@nrwl/nx/javascript'],
|
|
70
93
|
rules: {},
|
|
71
94
|
},
|
|
72
95
|
{
|
|
73
|
-
files: [
|
|
74
|
-
extends: [
|
|
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: [
|
|
82
|
-
extends: [
|
|
104
|
+
files: ['*.json', '*.json5'],
|
|
105
|
+
extends: ['plugin:jsonc/recommended-with-jsonc'],
|
|
83
106
|
rules: {},
|
|
84
107
|
},
|
|
85
108
|
],
|