@paperless/conventions 1.49.4 → 1.49.5
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/.editorconfig +1 -2
- package/.eslintrc.js +77 -20
- package/.prettierrc.js +20 -0
- package/CHANGELOG.md +8 -0
- package/package.json +34 -20
- package/prettier.config.js +0 -9
package/.editorconfig
CHANGED
|
@@ -4,11 +4,10 @@ root = true
|
|
|
4
4
|
[*]
|
|
5
5
|
charset = utf-8
|
|
6
6
|
indent_style = tab
|
|
7
|
-
indent_size = 4
|
|
8
7
|
insert_final_newline = true
|
|
9
8
|
trim_trailing_whitespace = true
|
|
10
9
|
max_line_length = 140
|
|
11
10
|
|
|
12
11
|
[*.md]
|
|
13
12
|
max_line_length = off
|
|
14
|
-
trim_trailing_whitespace = false
|
|
13
|
+
trim_trailing_whitespace = false
|
package/.eslintrc.js
CHANGED
|
@@ -1,29 +1,86 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
root: true,
|
|
3
|
+
ignorePatterns: ["**/*"],
|
|
4
|
+
plugins: ["@nrwl/nx", "only-error", "import", "unicorn", "ava"],
|
|
5
|
+
settings: {
|
|
6
|
+
"import/parsers": {
|
|
7
|
+
"@typescript-eslint/parser": [".ts", ".tsx"],
|
|
8
|
+
},
|
|
9
|
+
"import/resolver": {
|
|
10
|
+
typescript: {
|
|
11
|
+
alwaysTryTypes: true,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
4
14
|
},
|
|
5
|
-
plugins: ['@angular-eslint/template'],
|
|
6
|
-
extends: [
|
|
7
|
-
'eslint:recommended',
|
|
8
|
-
'plugin:@stencil/recommended',
|
|
9
|
-
'plugin:import/errors',
|
|
10
|
-
'plugin:react/recommended',
|
|
11
|
-
'plugin:jsx-a11y/recommended',
|
|
12
|
-
'plugin:prettier/recommended',
|
|
13
|
-
'plugin:@angular-eslint/recommended',
|
|
14
|
-
'plugin:@angular-eslint/template/process-inline-templates',
|
|
15
|
-
],
|
|
16
15
|
overrides: [
|
|
17
16
|
{
|
|
18
|
-
files: [
|
|
19
|
-
extends: ['plugin:@angular-eslint/template/recommended'],
|
|
17
|
+
files: ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
20
18
|
rules: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
"import/order": [
|
|
20
|
+
"error",
|
|
21
|
+
{
|
|
22
|
+
pathGroups: [
|
|
23
|
+
{
|
|
24
|
+
pattern: "@paperless/**",
|
|
25
|
+
group: "external",
|
|
26
|
+
position: "after",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
pathGroupsExcludedImportTypes: ["builtin"],
|
|
30
|
+
groups: ["builtin", "external", "parent", "sibling", "index"],
|
|
31
|
+
"newlines-between": "always",
|
|
32
|
+
alphabetize: {
|
|
33
|
+
order: "asc",
|
|
34
|
+
caseInsensitive: true,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
26
38
|
},
|
|
39
|
+
extends: [
|
|
40
|
+
"plugin:@angular-eslint/all",
|
|
41
|
+
"plugin:@nrwl/nx/angular",
|
|
42
|
+
"plugin:@angular-eslint/template/process-inline-templates",
|
|
43
|
+
"prettier",
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
files: ["*.html"],
|
|
48
|
+
extends: ["plugin:@nrwl/nx/angular-template"],
|
|
49
|
+
rules: {},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
files: ["*.ts", "*.tsx"],
|
|
53
|
+
extends: ["plugin:@nrwl/nx/typescript", "plugin:unicorn/all", "plugin:import/recommended"],
|
|
54
|
+
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",
|
|
61
|
+
{
|
|
62
|
+
checkArrowFunctions: false,
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
files: ["*.js", "*.jsx"],
|
|
69
|
+
extends: ["plugin:@nrwl/nx/javascript"],
|
|
70
|
+
rules: {},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
files: ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
|
|
74
|
+
extends: ["plugin:ava/recommended"],
|
|
75
|
+
env: {
|
|
76
|
+
jest: true,
|
|
77
|
+
},
|
|
78
|
+
rules: {},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
files: ["*.json", "*.json5"],
|
|
82
|
+
extends: ["plugin:jsonc/recommended-with-jsonc"],
|
|
83
|
+
rules: {},
|
|
27
84
|
},
|
|
28
85
|
],
|
|
29
86
|
};
|
package/.prettierrc.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// prettier.config.js, .prettierrc.js, prettier.config.mjs, or .prettierrc.mjs
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @see https://prettier.io/docs/en/configuration.html
|
|
5
|
+
* @type {import("prettier").Config}
|
|
6
|
+
*/
|
|
7
|
+
const config = {
|
|
8
|
+
printWidth: 140,
|
|
9
|
+
tabs: true,
|
|
10
|
+
semi: true,
|
|
11
|
+
singleQuote: true,
|
|
12
|
+
jsxSingleQuote: true,
|
|
13
|
+
trailingComma: "es5",
|
|
14
|
+
bracketSpacing: true,
|
|
15
|
+
bracketSameLine: true,
|
|
16
|
+
arrowParens: "avoid",
|
|
17
|
+
singleAttributePerLine: true,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default config;
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.49.5](https://github.com/Employes/Paperless/compare/v1.49.4...v1.49.5) (2024-09-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @paperless/conventions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.49.4](https://github.com/Employes/Paperless/compare/v1.49.3...v1.49.4) (2024-08-21)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @paperless/conventions
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paperless/conventions",
|
|
3
3
|
"description": "Paperless eslint, typescript & prettier recommended configuration",
|
|
4
|
-
"version": "1.49.
|
|
4
|
+
"version": "1.49.5",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"publishConfig": {
|
|
@@ -14,28 +14,42 @@
|
|
|
14
14
|
"yarn:publish": "yarn publish"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@angular-eslint/
|
|
18
|
-
"@angular-eslint/eslint-plugin
|
|
19
|
-
"@angular-eslint/template
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"eslint": "
|
|
24
|
-
"eslint
|
|
25
|
-
"
|
|
17
|
+
"@angular-eslint/builder": "15.0.0",
|
|
18
|
+
"@angular-eslint/eslint-plugin": "15.0.0",
|
|
19
|
+
"@angular-eslint/eslint-plugin-template": "15.0.0",
|
|
20
|
+
"@angular-eslint/schematics": "15.0.0",
|
|
21
|
+
"@angular-eslint/template-parser": "15.0.0",
|
|
22
|
+
"@nrwl/eslint-plugin-nx": "15.9.7",
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^5.36.1",
|
|
24
|
+
"@typescript-eslint/parser": "^5.36.1",
|
|
25
|
+
"eslint": "~8.57.0",
|
|
26
|
+
"eslint-config-prettier": "^9.1.0",
|
|
27
|
+
"eslint-import-resolver-typescript": "^3.1.5",
|
|
28
|
+
"eslint-plugin-ava": "^15.0.1",
|
|
29
|
+
"eslint-plugin-import": "^2.29.1",
|
|
30
|
+
"eslint-plugin-jsonc": "^2.16.0",
|
|
31
|
+
"eslint-plugin-only-error": "^1.0.2",
|
|
32
|
+
"eslint-plugin-unicorn": "^55.0.0",
|
|
33
|
+
"prettier": "^2.8.8",
|
|
26
34
|
"typescript": "4.6.3"
|
|
27
35
|
},
|
|
28
36
|
"peerDependencies": {
|
|
29
|
-
"@angular-eslint/
|
|
30
|
-
"@angular-eslint/eslint-plugin
|
|
31
|
-
"@angular-eslint/template
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"eslint": "^
|
|
36
|
-
"eslint
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"@angular-eslint/builder": "15.0.0",
|
|
38
|
+
"@angular-eslint/eslint-plugin": "15.0.0",
|
|
39
|
+
"@angular-eslint/eslint-plugin-template": "15.0.0",
|
|
40
|
+
"@angular-eslint/schematics": "15.0.0",
|
|
41
|
+
"@angular-eslint/template-parser": "15.0.0",
|
|
42
|
+
"@nrwl/eslint-plugin-nx": "15.9.7",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^5.36.1",
|
|
44
|
+
"@typescript-eslint/parser": "^5.36.1",
|
|
45
|
+
"eslint": "~8.57.0",
|
|
46
|
+
"eslint-plugin-ava": "^15.0.1",
|
|
47
|
+
"eslint-plugin-import": "^2.29.1",
|
|
48
|
+
"eslint-plugin-jsonc": "^2.16.0",
|
|
49
|
+
"eslint-plugin-only-error": "^1.0.2",
|
|
50
|
+
"eslint-plugin-unicorn": "^55.0.0",
|
|
51
|
+
"prettier": "^2.8.8",
|
|
52
|
+
"prettier-plugin-tailwindcss": "^0.4.1",
|
|
39
53
|
"typescript": "^4.6.3"
|
|
40
54
|
}
|
|
41
55
|
}
|