@paperless/conventions 3.0.2 → 3.1.0
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/.prettierrc.cjs +0 -1
- package/CHANGELOG.md +11 -0
- package/eslint.config.js +22 -0
- package/package.json +2 -1
package/.prettierrc.cjs
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [3.1.0](https://github.com/Employes/Paperless/compare/v3.0.2...v3.1.0) (2026-02-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **conventions:** Add eslint-plugin-better-tailwindcss & remove prettier-tailwind ([cee9fcb](https://github.com/Employes/Paperless/commit/cee9fcbb11aa8c9de16b6c06f57af3b51eb19df2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.0.2](https://github.com/Employes/Paperless/compare/v3.0.0...v3.0.2) (2026-02-12)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @paperless/conventions
|
package/eslint.config.js
CHANGED
|
@@ -3,6 +3,7 @@ import nxPlugin from '@nx/eslint-plugin';
|
|
|
3
3
|
import earlyReturnPlugin from '@regru/eslint-plugin-prefer-early-return';
|
|
4
4
|
import angularPlugin from 'angular-eslint';
|
|
5
5
|
import { defineConfig } from 'eslint/config';
|
|
6
|
+
import eslintPluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss';
|
|
6
7
|
import importPlugin from 'eslint-plugin-import';
|
|
7
8
|
import jsoncPlugin from 'eslint-plugin-jsonc';
|
|
8
9
|
import prettierPlugin from 'eslint-plugin-prettier/recommended';
|
|
@@ -14,6 +15,7 @@ import typescriptPlugin from 'typescript-eslint';
|
|
|
14
15
|
export default defineConfig([
|
|
15
16
|
eslint.configs.recommended,
|
|
16
17
|
prettierPlugin,
|
|
18
|
+
eslintPluginBetterTailwindcss.configs['recommended-warn'],
|
|
17
19
|
...jsoncPlugin.configs['flat/recommended-with-json'],
|
|
18
20
|
...jsoncPlugin.configs['flat/recommended-with-jsonc'],
|
|
19
21
|
|
|
@@ -32,6 +34,10 @@ export default defineConfig([
|
|
|
32
34
|
typescript: true,
|
|
33
35
|
node: true,
|
|
34
36
|
},
|
|
37
|
+
'better-tailwindcss': {
|
|
38
|
+
//entryPoint: 'src/global.css',
|
|
39
|
+
tailwindConfig: 'tailwind.config.ts',
|
|
40
|
+
},
|
|
35
41
|
},
|
|
36
42
|
},
|
|
37
43
|
{
|
|
@@ -86,6 +92,15 @@ export default defineConfig([
|
|
|
86
92
|
],
|
|
87
93
|
},
|
|
88
94
|
},
|
|
95
|
+
{
|
|
96
|
+
files: ['**/*.{ts,tsx,cts,mts}'],
|
|
97
|
+
languageOptions: {
|
|
98
|
+
parser: typescriptPlugin.parser,
|
|
99
|
+
// parserOptions: {
|
|
100
|
+
// project: true,
|
|
101
|
+
// },
|
|
102
|
+
},
|
|
103
|
+
},
|
|
89
104
|
{
|
|
90
105
|
files: ['**/*.{tsx,jsx}'],
|
|
91
106
|
extends: [reactPlugin.configs.flat.recommended],
|
|
@@ -99,6 +114,13 @@ export default defineConfig([
|
|
|
99
114
|
},
|
|
100
115
|
],
|
|
101
116
|
},
|
|
117
|
+
languageOptions: {
|
|
118
|
+
parserOptions: {
|
|
119
|
+
ecmaFeatures: {
|
|
120
|
+
jsx: true,
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
102
124
|
},
|
|
103
125
|
{
|
|
104
126
|
files: ['**/*.ts'],
|
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": "3.0
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"publishConfig": {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"angular-eslint": "~19.0.0",
|
|
36
36
|
"eslint-config-prettier": "~10.1.8",
|
|
37
37
|
"eslint-import-resolver-typescript": "~4.4.4",
|
|
38
|
+
"eslint-plugin-better-tailwindcss": "~4.3.0",
|
|
38
39
|
"eslint-plugin-import": "~2.32.0",
|
|
39
40
|
"eslint-plugin-jsonc": "~2.21.0",
|
|
40
41
|
"eslint-plugin-jsx-a11y": "~6.10.2",
|