@paperless/conventions 1.49.4 → 1.49.6

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 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
- parserOptions: {
3
- project: './tsconfig.json',
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: ['*.html'],
19
- extends: ['plugin:@angular-eslint/template/recommended'],
17
+ files: ["*.ts", "*.tsx", "*.js", "*.jsx"],
20
18
  rules: {
21
- 'no-tabs': 0,
22
- /**
23
- * Any template/HTML related rules you wish to use/reconfigure over and above the
24
- * recommended set provided by the @angular-eslint project would go here.
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,21 @@
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
+ plugins: ['prettier-plugin-tailwindcss'],
19
+ };
20
+
21
+ module.exports = config;
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
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.6](https://github.com/Employes/Paperless/compare/v1.49.5...v1.49.6) (2024-09-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **conventions/prettier:** Add tailwindcss plugin ([d84a672](https://github.com/Employes/Paperless/commit/d84a672beee9ba44bcf9745da4b393dd6e31c7d7))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.49.5](https://github.com/Employes/Paperless/compare/v1.49.4...v1.49.5) (2024-09-04)
18
+
19
+ **Note:** Version bump only for package @paperless/conventions
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.49.4](https://github.com/Employes/Paperless/compare/v1.49.3...v1.49.4) (2024-08-21)
7
26
 
8
27
  **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",
4
+ "version": "1.49.6",
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/eslint-plugin": "16.0.1",
18
- "@angular-eslint/eslint-plugin-template": "16.0.1",
19
- "@angular-eslint/template-parser": "16.0.1",
20
- "@stencil/eslint-plugin": "0.4.0",
21
- "@typescript-eslint/eslint-plugin": "5.59.5",
22
- "@typescript-eslint/parser": "5.59.5",
23
- "eslint": "8.40.0",
24
- "eslint-plugin-react": "7.32.2",
25
- "prettier": "3.2.4",
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/eslint-plugin": "^13.2.1 || ^14.0.0 || ^15.0.0 || ^16.0.0",
30
- "@angular-eslint/eslint-plugin-template": "^13.2.1 || ^14.0.0 || ^15.0.0 || ^16.0.0",
31
- "@angular-eslint/template-parser": "^13.2.1 || ^14.0.0 || ^15.0.0 || ^16.0.0",
32
- "@stencil/eslint-plugin": "^0.4.0",
33
- "@typescript-eslint/eslint-plugin": "^5.19.0",
34
- "@typescript-eslint/parser": "^5.19.0",
35
- "eslint": "^8.13.0",
36
- "eslint-plugin-react": "^7.29.4",
37
- "prettier": "^3.2.4",
38
- "prettier-plugin-tailwindcss": "^0.2.1",
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
  }
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- // plugins: [require('prettier-plugin-tailwindcss')],
3
- trailingComma: 'es5',
4
- useTabs: true,
5
- tabs: true,
6
- tabWidth: 4,
7
- singleQuote: true,
8
- printWidth: 80,
9
- };