Skip to content

Commit 571bec6

Browse files
authored
refactor: replaced eslint by xo eslint wrapper (#87)
* refactor: replaced eslint by xo (opinionated eslint wrapper) and fixed xo's feedback * chore: removed obsolete test file * chore: extracted configuration * chore: making this a module accordingly
1 parent f5dab9e commit 571bec6

12 files changed

+10067
-5165
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
cypress
2-
scripts
31
**/build
42
**/public
53
**/out

.eslintrc.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,5 @@ module.exports = {
33
browser: true,
44
es2021: true,
55
node: true
6-
},
7-
extends: ['eslint:recommended'],
8-
rules: {
9-
'no-console': 'error'
106
}
117
};

.prettierrc.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
{
2-
"trailingComma": "none"
2+
"trailingComma": "none",
3+
"overrides": [
4+
{
5+
"files": "**/*.js",
6+
"options": {
7+
"singleQuote": true
8+
}
9+
},
10+
{
11+
"files": "**/*.mjs",
12+
"options": {
13+
"singleQuote": true
14+
}
15+
}
16+
]
317
}

.xo-config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"prettier": true
3+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Install Tailwind based on your framework: [Installations](https://tailwindcsscom
3030
Instead, run this command in your project:
3131

3232
```bash
33-
node ./node_modules/@db-ui/base/build/tailwind/tailwind-config-generator.js
33+
node ./node_modules/@db-ui/base/build/tailwind/tailwind-config-generator.mjs
3434
```
3535

3636
This will create your `tailwind.config.js`.
@@ -40,7 +40,7 @@ This will create your `tailwind.config.js`.
4040
If you don't want to have a customizable config, you can also use the default tailwind-config by running:
4141

4242
```bash
43-
node ./node_modules/@db-ui/base/build/tailwind/tailwind-config-generator.js default
43+
node ./node_modules/@db-ui/base/build/tailwind/tailwind-config-generator.mjs default
4444
```
4545

4646
---

helpers/if-eq.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint unicorn/prefer-module: 0, eqeqeq: 0 */
12
module.exports = function (Handlebars) {
23
Handlebars.registerHelper('if_eq', function (a, b, options) {
34
if (a == b) {

helpers/test.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)