Skip to content

Commit a8d210e

Browse files
committed
feat: Bumping deps and fixing usage of TailwindCSS plugin
1 parent 2eaac87 commit a8d210e

File tree

6 files changed

+26
-25
lines changed

6 files changed

+26
-25
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ This will install the shared config, as well as its peer dependencies:
3434
- eslint-plugin-react
3535
- eslint-plugin-react-hooks
3636
- eslint-plugin-simple-import-sort
37+
- eslint-plugin-tailwindcss
3738
- prettier
3839
- prettier-plugin-tailwindcss
3940

@@ -120,7 +121,7 @@ If you wish to override any [Prettier options](https://prettier.io/docs/en/optio
120121
```jsx
121122
// .eslintrc
122123
{
123-
"extends": ["@acme"],
124+
"extends": ["acme"],
124125
"rules": {
125126
"prettier/prettier": [
126127
"error",

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ const next = require('./lib/next.js');
33
const react = require('./lib/react.js');
44

55
module.exports = {
6-
extends: ['airbnb', 'airbnb/hooks', 'plugin:prettier/recommended'],
6+
extends: [
7+
'airbnb',
8+
'airbnb/hooks',
9+
'plugin:prettier/recommended',
10+
'plugin:tailwindcss/recommended',
11+
],
712
env: {
813
browser: true,
914
commonjs: true,

lib/base.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
devDependencies: true,
66
},
77
],
8-
'import/prefer-default-export': 0,
8+
'import/prefer-default-export': 'off',
99
'import/first': 'error',
1010
'import/newline-after-import': 'error',
1111
'import/no-duplicates': 'error',
@@ -33,14 +33,9 @@ module.exports = {
3333
},
3434
],
3535
'simple-import-sort/exports': 'error',
36-
'tailwindcss/classnames-order': [
37-
'warn',
38-
{
39-
officialSorting: true,
40-
},
41-
],
36+
'tailwindcss/classnames-order': 'off',
4237
'no-console': 'warn',
43-
'no-nested-ternary': 0,
44-
'no-underscore-dangle': 0,
45-
'no-use-before-define': 0,
38+
'no-nested-ternary': 'off',
39+
'no-underscore-dangle': 'off',
40+
'no-use-before-define': 'off',
4641
};

lib/next.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
// Next.js overrides
3-
'jsx-a11y/href-no-hash': 0,
3+
'jsx-a11y/href-no-hash': 'off',
44
'jsx-a11y/anchor-is-valid': [
55
'error',
66
{
@@ -9,5 +9,5 @@ module.exports = {
99
aspects: ['invalidHref', 'preferButton'],
1010
},
1111
],
12-
'react/react-in-jsx-scope': 0,
12+
'react/react-in-jsx-scope': 'off',
1313
};

lib/react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ module.exports = {
55
extensions: ['.js', '.jsx'],
66
},
77
],
8-
'react/jsx-props-no-spreading': 0,
9-
'react/prop-types': 0,
8+
'react/jsx-props-no-spreading': 'off',
9+
'react/prop-types': 'off',
1010
};

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-acme",
3-
"version": "1.3.1",
3+
"version": "1.4.0",
44
"description": "ESLint + Prettier config for React (Next.js)",
55
"main": "index.js",
66
"files": [
@@ -14,19 +14,19 @@
1414
"lint:fix": "eslint --fix"
1515
},
1616
"peerDependencies": {
17-
"eslint": "^8.13.0",
17+
"eslint": "^8.18.0",
1818
"eslint-config-airbnb": "^19.0.4",
1919
"eslint-config-prettier": "^8.5.0",
2020
"eslint-import-resolver-alias": "^1.1.2",
2121
"eslint-plugin-import": "^2.26.0",
22-
"eslint-plugin-jsx-a11y": "^6.5.1",
23-
"eslint-plugin-prettier": "^4.0.0",
24-
"eslint-plugin-react": "^7.29.4",
25-
"eslint-plugin-react-hooks": "^4.4.0",
22+
"eslint-plugin-jsx-a11y": "^6.6.0",
23+
"eslint-plugin-prettier": "^4.2.1",
24+
"eslint-plugin-react": "^7.30.1",
25+
"eslint-plugin-react-hooks": "^4.6.0",
2626
"eslint-plugin-simple-import-sort": "^7.0.0",
27-
"eslint-plugin-tailwindcss": "^3.5.0",
28-
"prettier": "^2.6.2",
29-
"prettier-plugin-tailwindcss": "^0.1.8"
27+
"eslint-plugin-tailwindcss": "^3.6.0",
28+
"prettier": "^2.7.1",
29+
"prettier-plugin-tailwindcss": "^0.1.11"
3030
},
3131
"keywords": [
3232
"config",

0 commit comments

Comments
 (0)