Skip to content

Commit

Permalink
fixed some linter configs and tailwind/postcss build error
Browse files Browse the repository at this point in the history
  • Loading branch information
rafawendel committed May 26, 2020
1 parent 368476c commit 9998017
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,18 @@
"react"
],
"rules": {
"prettier/prettier": "error",
"prettier/prettier": ["error", {}, {
"usePrettierrc": true
}],
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": "off",
"import/prefer-default-export": "off",
"react/no-array-index-key": "off",
// "react/jsx-wrap-multilines": ["error", {"declaration": false, "assignment": false}],
"indent": ["error", 2],
"arrow-parens": ["error", "as-needed"]
"arrow-parens": ["error", "as-needed"],
"no-console": "off",
"react/jsx-props-no-spreading": "off"
// "jsx-quotes": [
// "error",
// "prefer-double"
Expand Down
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"printWidth": 100,
"singleQuote": true
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "none"
}
3 changes: 0 additions & 3 deletions assets/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
12 changes: 12 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
build: {
postcss: {
preset: {
features: {
// Fixes: https://github.com/tailwindcss/tailwindcss/issues/1190#issuecomment-546621554
'focus-within-pseudo-class': false
}
}
}
}
};
5 changes: 4 additions & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const tailwindcss = require('tailwindcss');
// const tailwindcss = require('tailwindcss');

module.exports = {
// plugins: [
Expand All @@ -11,3 +11,6 @@ module.exports = {
// ]
plugins: ['tailwindcss', 'postcss-preset-env']
};

// "@fullhuman/postcss-purgecss": "^2.2.0",
// "autoprefixer": "9.6.1",

0 comments on commit 9998017

Please sign in to comment.