-
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.
- Loading branch information
Showing
16 changed files
with
205 additions
and
131 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) 2024 ThrRip, XMing (洺知-故犯) | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
import withNuxt from './.nuxt/eslint.config.mjs' | ||
|
||
export default withNuxt( | ||
{ | ||
files: ['eslint.config.js'] | ||
}, | ||
{ | ||
rules: { | ||
'@typescript-eslint/ban-ts-comment': ['error', { | ||
'ts-expect-error': false, | ||
'ts-nocheck': false | ||
}], | ||
'@typescript-eslint/no-dynamic-delete': 'off', | ||
'@stylistic/arrow-parens': ['error', 'as-needed', { requireForBlockBody: false }], | ||
'@stylistic/comma-dangle': ['error', 'never'], | ||
'@stylistic/indent': ['error', 2, { | ||
ignoredNodes: ['IfStatement[alternate.type="IfStatement"]'], | ||
SwitchCase: 1 | ||
}], | ||
'@stylistic/indent-binary-ops': 'off', | ||
'@stylistic/max-statements-per-line': ['error', { max: 2 }], | ||
'@stylistic/operator-linebreak': ['error', 'after'], | ||
'@stylistic/space-before-function-paren': ['error', 'always'], | ||
'vue/comma-dangle': ['error', 'never'], | ||
'vue/max-attributes-per-line': ['warn', { singleline: 5 }], | ||
'vue/operator-linebreak': ['error', 'after'] | ||
} | ||
}, | ||
{ | ||
files: ['packages/*/pages/**/*.vue'], | ||
rules: { 'vue/multi-word-component-names': 'off' } | ||
} | ||
) |
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,19 @@ | ||
/* | ||
* Copyright (c) 2024 ThrRip, XMing (洺知-故犯) | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
export default defineNuxtConfig({ | ||
modules: [ | ||
'@nuxt/eslint' | ||
], | ||
|
||
eslint: { | ||
config: { | ||
stylistic: true | ||
} | ||
} | ||
}) |
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
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
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
Oops, something went wrong.