Skip to content

Commit

Permalink
linter update
Browse files Browse the repository at this point in the history
  • Loading branch information
jekuer committed Sep 15, 2023
1 parent a7891fa commit a019462
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 22 deletions.
11 changes: 9 additions & 2 deletions demo/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@ module.exports = {
parser: '@typescript-eslint/parser',
},

extends: ['plugin:@typescript-eslint/recommended', 'plugin:nuxt/recommended', 'plugin:vue/vue3-recommended', 'plugin:prettier/recommended', 'plugin:tailwindcss/recommended'],
overrides: [
{
files: ['*.vue'],
parser: 'vue-eslint-parser',
},
],

plugins: ['@typescript-eslint', 'tailwindcss', 'prettier'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:nuxt/recommended', 'plugin:vue/vue3-recommended', 'plugin:prettier/recommended'],

plugins: ['@typescript-eslint', 'prettier'],

ignorePatterns: ['*.min.*', 'dist/*', '.output/*'],

Expand Down
98 changes: 79 additions & 19 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-nuxt": "^4.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-tailwindcss": "^3.13.0",
"eslint-plugin-vue": "^9.17.0",
"nuxt": "^3.7.0",
"nuxt-delay-hydration": "^1.2.1",
Expand All @@ -60,7 +59,9 @@
"nuxt-security": "^0.14.4",
"nuxt-simple-sitemap": "^3.2.6",
"prettier": "^3.0.3",
"prettier-plugin-tailwindcss": "^0.5.4",
"typescript": "^5.2.2",
"vue-eslint-parser": "^9.3.1",
"vue-tsc": "^1.8.8"
},
"overrides": {
Expand Down
1 change: 1 addition & 0 deletions demo/prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable no-undef */
// prettier.config.js or .prettierrc.js
module.exports = {
plugins: ['prettier-plugin-tailwindcss'],
proseWrap: 'preserve',
embeddedLanguageFormatting: 'off',
useTabs: false,
Expand Down

0 comments on commit a019462

Please sign in to comment.