Skip to content

Commit

Permalink
chore: improve eslint tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Dec 1, 2023
1 parent f2c934a commit e8173a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ module.exports = {
reportUnusedDisableDirectives: true,
extends: CONFIGS,
plugins: ["@babel"],
settings: {
tailwindcss: {
callees: ["cx", "clsx"],
},
},
rules: {
"no-console": ["error", { allow: ["warn", "error"] }],
"no-unused-expressions": "off",
Expand Down
6 changes: 6 additions & 0 deletions packages/orbit-components/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require("path");
const orbitPreset = require("@kiwicom/orbit-tailwind-preset");

module.exports = {
extends: ["../../.eslintrc.cjs", "plugin:storybook/recommended"],
Expand All @@ -13,6 +14,11 @@ module.exports = {
env: {
browser: true,
},
settings: {
tailwindcss: {
config: orbitPreset(),
},
},
overrides: [
{
files: ["cypress/**/*.ts?(x)", "config/**/*.mts"],
Expand Down

0 comments on commit e8173a1

Please sign in to comment.