eslint-config-makeable 10.1.0 → 10.2.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/README.md +38 -0
- package/index.mjs +10 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -74,9 +74,47 @@ export default [
|
|
|
74
74
|
];
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
## Biome
|
|
78
|
+
|
|
79
|
+
This setup requires a `biome.js` file in the project root. It is added automatically after installing this package.
|
|
80
|
+
|
|
77
81
|
Copy the .vscode folder from the newly installed node-module to the root of your directory to avoid auto-formatting conflicts with other services like prettier-extension, typescript and vscode auto-formatting.
|
|
78
82
|
The auto-formatting after save only works if the .vscode folder is in the root of the directory that is open in vscode/cursor - Even if the linting is supposed to run in a subdirectory, the .vscode folder must be in the root of the directory that is open in vscode/cursor.
|
|
79
83
|
|
|
84
|
+
The content for the .vscode/settings.json file is the following:
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
{
|
|
88
|
+
"editor.formatOnSave": true,
|
|
89
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
90
|
+
"editor.codeActionsOnSave": {
|
|
91
|
+
"source.fixAll.eslint": "explicit",
|
|
92
|
+
"source.organizeImports.biome": "never"
|
|
93
|
+
},
|
|
94
|
+
"[javascript]": {
|
|
95
|
+
"editor.defaultFormatter": "biomejs.biome"
|
|
96
|
+
},
|
|
97
|
+
"[typescript]": {
|
|
98
|
+
"editor.defaultFormatter": "biomejs.biome"
|
|
99
|
+
},
|
|
100
|
+
"[vue]": {
|
|
101
|
+
"editor.defaultFormatter": "biomejs.biome"
|
|
102
|
+
},
|
|
103
|
+
"[json]": {
|
|
104
|
+
"editor.defaultFormatter": "biomejs.biome"
|
|
105
|
+
},
|
|
106
|
+
"[jsonc]": {
|
|
107
|
+
"editor.defaultFormatter": "biomejs.biome"
|
|
108
|
+
},
|
|
109
|
+
"eslint.validate": [
|
|
110
|
+
"javascript",
|
|
111
|
+
"typescript",
|
|
112
|
+
"vue"
|
|
113
|
+
],
|
|
114
|
+
"biome.enabled": true
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
80
118
|
## Usage
|
|
81
119
|
|
|
82
120
|
The following command will show all the errors and warnings in the current project:
|
package/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import globals from 'globals';
|
|
|
5
5
|
import pluginVue from 'eslint-plugin-vue';
|
|
6
6
|
import tseslint from 'typescript-eslint';
|
|
7
7
|
import vueParser from 'vue-eslint-parser';
|
|
8
|
+
import pluginReadableTailwind from 'eslint-plugin-readable-tailwind';
|
|
8
9
|
|
|
9
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
10
11
|
const __dirname = path.dirname(__filename);
|
|
@@ -136,4 +137,13 @@ export default [
|
|
|
136
137
|
'no-unused-vars': 0
|
|
137
138
|
}
|
|
138
139
|
},
|
|
140
|
+
|
|
141
|
+
{
|
|
142
|
+
plugins: {
|
|
143
|
+
'readable-tailwind': pluginReadableTailwind,
|
|
144
|
+
},
|
|
145
|
+
rules: {
|
|
146
|
+
'readable-tailwind/sort-classes': 'warn',
|
|
147
|
+
},
|
|
148
|
+
},
|
|
139
149
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-makeable",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "ESlint config for Makeable's Typescript projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
24
24
|
"eslint-plugin-import": "^2.32.0",
|
|
25
25
|
"eslint-plugin-vue": "^10.6.2",
|
|
26
|
+
"eslint-plugin-readable-tailwind": "^2.1.0",
|
|
26
27
|
"globals": "^16.2.0",
|
|
27
28
|
"typescript-eslint": "^8.33.1",
|
|
28
29
|
"vue-eslint-parser": "^10.2.0",
|