Skip to content

Commit b7ce20c

Browse files
committed
feat: Adding ESLint Tailwind plugin; updating peer deps
1 parent 908090d commit b7ce20c

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Setup Node.js environment
1212
uses: actions/setup-node@v2
1313
with:
14-
node-version: '14.x'
14+
node-version: '16.x'
1515
registry-url: https://registry.npmjs.org
1616
- name: Publish
1717
run: npm publish --access public

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
jsx: true,
1919
},
2020
},
21-
plugins: ['simple-import-sort', 'import'],
21+
plugins: ['simple-import-sort', 'import', 'tailwindcss'],
2222
rules: {
2323
...base,
2424
...next,

lib/base.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ module.exports = {
3333
},
3434
],
3535
'simple-import-sort/exports': 'error',
36+
'tailwindcss/classnames-order': [
37+
'warn',
38+
{
39+
officialSorting: 'true',
40+
},
41+
],
3642
'no-console': 'warn',
3743
'no-nested-ternary': 0,
3844
'no-underscore-dangle': 0,

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-acme",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "ESLint + Prettier config for React (Next.js)",
55
"main": "index.js",
66
"files": [
@@ -14,18 +14,19 @@
1414
"lint:fix": "eslint --fix"
1515
},
1616
"peerDependencies": {
17-
"eslint": "^8.8.0",
17+
"eslint": "^8.13.0",
1818
"eslint-config-airbnb": "^19.0.4",
19-
"eslint-config-prettier": "^8.3.0",
19+
"eslint-config-prettier": "^8.5.0",
2020
"eslint-import-resolver-alias": "^1.1.2",
21-
"eslint-plugin-import": "^2.25.4",
21+
"eslint-plugin-import": "^2.26.0",
2222
"eslint-plugin-jsx-a11y": "^6.5.1",
2323
"eslint-plugin-prettier": "^4.0.0",
24-
"eslint-plugin-react": "^7.28.0",
25-
"eslint-plugin-react-hooks": "^4.3.0",
24+
"eslint-plugin-react": "^7.29.4",
25+
"eslint-plugin-react-hooks": "^4.4.0",
2626
"eslint-plugin-simple-import-sort": "^7.0.0",
27-
"prettier": "^2.5.1",
28-
"prettier-plugin-tailwindcss": "^0.1.4"
27+
"eslint-plugin-tailwindcss": "^3.5.0",
28+
"prettier": "^2.6.2",
29+
"prettier-plugin-tailwindcss": "^0.1.8"
2930
},
3031
"keywords": [
3132
"config",

0 commit comments

Comments
 (0)