Skip to content

Commit

Permalink
refactor: replaced eslint by xo eslint wrapper (#87)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mfranzke authored Oct 13, 2022
1 parent f5dab9e commit 571bec6
Show file tree
Hide file tree
Showing 12 changed files with 10,067 additions and 5,165 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cypress
scripts
**/build
**/public
**/out
4 changes: 0 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@ module.exports = {
browser: true,
es2021: true,
node: true
},
extends: ['eslint:recommended'],
rules: {
'no-console': 'error'
}
};
16 changes: 15 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
{
"trailingComma": "none"
"trailingComma": "none",
"overrides": [
{
"files": "**/*.js",
"options": {
"singleQuote": true
}
},
{
"files": "**/*.mjs",
"options": {
"singleQuote": true
}
}
]
}
3 changes: 3 additions & 0 deletions .xo-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"prettier": true
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Install Tailwind based on your framework: [Installations](https://tailwindcsscom
Instead, run this command in your project:

```bash
node ./node_modules/@db-ui/base/build/tailwind/tailwind-config-generator.js
node ./node_modules/@db-ui/base/build/tailwind/tailwind-config-generator.mjs
```

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

```bash
node ./node_modules/@db-ui/base/build/tailwind/tailwind-config-generator.js default
node ./node_modules/@db-ui/base/build/tailwind/tailwind-config-generator.mjs default
```

---
Expand Down
1 change: 1 addition & 0 deletions helpers/if-eq.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint unicorn/prefer-module: 0, eqeqeq: 0 */
module.exports = function (Handlebars) {
Handlebars.registerHelper('if_eq', function (a, b, options) {
if (a == b) {
Expand Down
5 changes: 0 additions & 5 deletions helpers/test.js

This file was deleted.

Loading

0 comments on commit 571bec6

Please sign in to comment.