-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve: LDP-2585: Switch to ESLint flat config (#257)
* improve: Switch to ESLint flat config * LDP-2585: Update linting --------- Co-authored-by: Alexandru <videoloss3@gmail.com>
- Loading branch information
1 parent
531940b
commit 848db66
Showing
33 changed files
with
1,569 additions
and
2,013 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,18 +1,18 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"eslint.useFlatConfig": true, | ||
"volar.validation.template": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"eslint.options": { | ||
"extensions": [ | ||
".html", | ||
".js", | ||
".vue" | ||
] | ||
"source.fixAll.eslint": "always", | ||
"source.fixAll.vetur": "always", | ||
"source.fixAll.vscode": "always" | ||
}, | ||
"css.lint.unknownAtRules": "ignore", | ||
"eslint.validate": [ | ||
"javascript", | ||
"typescript", | ||
"vue", | ||
"vue-html" | ||
], | ||
"prettier.enable": false | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { createConfigForNuxt } from '@nuxt/eslint-config/flat' | ||
|
||
export default createConfigForNuxt({ | ||
features: { | ||
tooling: true, | ||
stylistic: true, | ||
}, | ||
}).override('nuxt/rules', { | ||
rules: { | ||
'vue/no-v-html': 'off', | ||
'no-useless-escape': 'off', | ||
'vue/multi-word-component-names': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
}, | ||
ignores: ['playground/server'], | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// https://nuxt.com/docs/api/configuration/nuxt-config | ||
export default defineNuxtConfig({ | ||
modules: ['@nuxt/eslint'], | ||
}) |
Oops, something went wrong.