Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shakapack #395

Merged
merged 12 commits into from
Mar 3, 2022
Prev Previous commit
Next Next commit
feat(eslint): add tailwindcss plugin
  • Loading branch information
gmq committed Mar 3, 2022
commit 7de3cfb5e37fb1f019f8d615ce63d79e5648ea53
5 changes: 3 additions & 2 deletions lib/potassium/assets/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["import", "jest"],
"plugins": ["import", "jest", "tailwindcss"],
"settings": {
"import/resolver": {
"node": {
@@ -21,7 +21,8 @@
"extends": [
"plugin:vue/vue3-recommended",
"@vue/typescript/recommended",
"@vue/eslint-config-typescript"
"@vue/eslint-config-typescript",
"plugin:tailwindcss/recommended"
],
"rules": {
"accessor-pairs": 0,
3 changes: 2 additions & 1 deletion lib/potassium/recipes/front_end.rb
Original file line number Diff line number Diff line change
@@ -89,7 +89,8 @@ def add_responsive_meta_tag
def setup_tailwind
run "bin/yarn add css-loader style-loader mini-css-extract-plugin @types/tailwindcss "\
"css-minimizer-webpack-plugin postcss@#{POSTCSS_VERSION} postcss-loader "\
"tailwindcss@#{TAILWINDCSS_VERSION} autoprefixer@#{AUTOPREFIXER_VERSION} sass sass-loader"
"tailwindcss@#{TAILWINDCSS_VERSION} autoprefixer@#{AUTOPREFIXER_VERSION} sass sass-loader "\
"eslint-plugin-tailwindcss"
run "npx tailwindcss init -p"
difernandez marked this conversation as resolved.
Show resolved Hide resolved
setup_client_css
remove_server_css_requires