Skip to content

Commit

Permalink
feat: Bumping deps and fixing usage of TailwindCSS plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mryechkin committed Jun 30, 2022
1 parent 2eaac87 commit a8d210e
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 25 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ This will install the shared config, as well as its peer dependencies:
- eslint-plugin-react
- eslint-plugin-react-hooks
- eslint-plugin-simple-import-sort
- eslint-plugin-tailwindcss
- prettier
- prettier-plugin-tailwindcss

Expand Down Expand Up @@ -120,7 +121,7 @@ If you wish to override any [Prettier options](https://prettier.io/docs/en/optio
```jsx
// .eslintrc
{
"extends": ["@acme"],
"extends": ["acme"],
"rules": {
"prettier/prettier": [
"error",
Expand Down
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ const next = require('./lib/next.js');
const react = require('./lib/react.js');

module.exports = {
extends: ['airbnb', 'airbnb/hooks', 'plugin:prettier/recommended'],
extends: [
'airbnb',
'airbnb/hooks',
'plugin:prettier/recommended',
'plugin:tailwindcss/recommended',
],
env: {
browser: true,
commonjs: true,
Expand Down
15 changes: 5 additions & 10 deletions lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
devDependencies: true,
},
],
'import/prefer-default-export': 0,
'import/prefer-default-export': 'off',
'import/first': 'error',
'import/newline-after-import': 'error',
'import/no-duplicates': 'error',
Expand Down Expand Up @@ -33,14 +33,9 @@ module.exports = {
},
],
'simple-import-sort/exports': 'error',
'tailwindcss/classnames-order': [
'warn',
{
officialSorting: true,
},
],
'tailwindcss/classnames-order': 'off',
'no-console': 'warn',
'no-nested-ternary': 0,
'no-underscore-dangle': 0,
'no-use-before-define': 0,
'no-nested-ternary': 'off',
'no-underscore-dangle': 'off',
'no-use-before-define': 'off',
};
4 changes: 2 additions & 2 deletions lib/next.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
// Next.js overrides
'jsx-a11y/href-no-hash': 0,
'jsx-a11y/href-no-hash': 'off',
'jsx-a11y/anchor-is-valid': [
'error',
{
Expand All @@ -9,5 +9,5 @@ module.exports = {
aspects: ['invalidHref', 'preferButton'],
},
],
'react/react-in-jsx-scope': 0,
'react/react-in-jsx-scope': 'off',
};
4 changes: 2 additions & 2 deletions lib/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ module.exports = {
extensions: ['.js', '.jsx'],
},
],
'react/jsx-props-no-spreading': 0,
'react/prop-types': 0,
'react/jsx-props-no-spreading': 'off',
'react/prop-types': 'off',
};
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-acme",
"version": "1.3.1",
"version": "1.4.0",
"description": "ESLint + Prettier config for React (Next.js)",
"main": "index.js",
"files": [
Expand All @@ -14,19 +14,19 @@
"lint:fix": "eslint --fix"
},
"peerDependencies": {
"eslint": "^8.13.0",
"eslint": "^8.18.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.4.0",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-tailwindcss": "^3.5.0",
"prettier": "^2.6.2",
"prettier-plugin-tailwindcss": "^0.1.8"
"eslint-plugin-tailwindcss": "^3.6.0",
"prettier": "^2.7.1",
"prettier-plugin-tailwindcss": "^0.1.11"
},
"keywords": [
"config",
Expand Down

0 comments on commit a8d210e

Please sign in to comment.