-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly fix eslint and prettier package situation
- Loading branch information
1 parent
97dc5af
commit b39dde6
Showing
3 changed files
with
417 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,32 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
node: true | ||
}, | ||
extends: ['@nuxtjs', 'plugin:nuxt/recommended', 'plugin:vue/recommended'], | ||
plugins: ['vue', 'nuxt'], | ||
extends: [ | ||
'@nuxtjs', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:nuxt/recommended', | ||
'prettier', | ||
'plugin:prettier/recommended' | ||
], | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
ecmaVersion: 2020, | ||
sourceType: 'module' | ||
}, | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
rules: { | ||
'nuxt/no-cjs-in-config': 'off', | ||
'vue/multi-word-component-names': 'off' // Disable multi-word component names rule. | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
semi: false, | ||
tabWidth: 2, | ||
singleQuote: true, | ||
printWidth: 100, | ||
trailingComma: 'none' | ||
} | ||
] | ||
// Add any additional rules here | ||
} | ||
} |
Oops, something went wrong.