-
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
15 changed files
with
154 additions
and
150 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,38 +1,45 @@ | ||
import withNuxt from "../.nuxt/eslint.config.mjs"; | ||
|
||
export default withNuxt([{ | ||
files: ["**/*.vue", "**/*.js", "**/*.ts", "**/*.mjs"], | ||
ignores: [ | ||
"node_modules/**/*", | ||
".nuxt/**/*", | ||
"dist/**/*", | ||
".output/**/*", | ||
"public/**/*" | ||
], | ||
rules: { | ||
"camelcase": "off", | ||
"no-console": ["error", { allow: ["info", "warn"] }], | ||
"@stylistic/indent": ["error", 2, { SwitchCase: 1 }], | ||
"@stylistic/linebreak-style": ["error", process.platform === "win32" ? "windows" : "unix"], | ||
"@stylistic/quotes": ["error", "double"], | ||
"@stylistic/semi": ["error", "always"], | ||
"@stylistic/no-extra-semi": "error", | ||
"@stylistic/comma-dangle": ["error", "never"], | ||
"@stylistic/space-before-function-paren": ["error", "always"], | ||
"@stylistic/multiline-ternary": ["error", "never"], | ||
"@stylistic/member-delimiter-style": ["error", { multiline: { delimiter: "semi" }, singleline: { delimiter: "comma" } }], | ||
"@stylistic/arrow-spacing": ["error", { before: true, after: true }], | ||
"@stylistic/brace-style": ["error", "stroustrup", { allowSingleLine: true }], | ||
"@stylistic/no-multi-spaces": "error", | ||
"@stylistic/space-before-blocks": "error", | ||
"@stylistic/no-trailing-spaces": "error", | ||
"nuxt/prefer-import-meta": "error", | ||
"vue/first-attribute-linebreak": ["error", { singleline: "ignore", multiline: "ignore" }], | ||
"vue/max-attributes-per-line": ["error", { singleline: 100 }], | ||
"vue/singleline-html-element-content-newline": ["off"], | ||
"vue/no-multiple-template-root": ["off"], | ||
"vue/html-closing-bracket-spacing": ["error", { selfClosingTag: "always" }], | ||
"vue/html-indent": ["error", 2], | ||
"vue/multiline-html-element-content-newline": ["error", { ignores: [] }] | ||
export default withNuxt([ | ||
{ | ||
ignores: [ | ||
"node_modules/**/*", | ||
".nuxt/**/*", | ||
"dist/**/*", | ||
".output/**/*", | ||
"public/**/*", | ||
"android/**/*", | ||
"tests/**/*" | ||
] | ||
}, | ||
{ | ||
files: ["**/*.vue", "**/*.js", "**/*.ts", "**/*.mjs"], | ||
rules: { | ||
"no-undef": "off", | ||
"camelcase": "off", | ||
"no-console": ["error", { allow: ["info", "warn"] }], | ||
"@stylistic/indent": ["error", 2, { SwitchCase: 1 }], | ||
"@stylistic/linebreak-style": ["error", process.platform === "win32" ? "windows" : "unix"], | ||
"@stylistic/quotes": ["error", "double"], | ||
"@stylistic/semi": ["error", "always"], | ||
"@stylistic/no-extra-semi": "error", | ||
"@stylistic/comma-dangle": ["error", "never"], | ||
"@stylistic/space-before-function-paren": ["error", "always"], | ||
"@stylistic/multiline-ternary": ["error", "never"], | ||
"@stylistic/member-delimiter-style": ["error", { multiline: { delimiter: "semi" }, singleline: { delimiter: "comma" } }], | ||
"@stylistic/arrow-spacing": ["error", { before: true, after: true }], | ||
"@stylistic/brace-style": ["error", "stroustrup", { allowSingleLine: true }], | ||
"@stylistic/no-multi-spaces": "error", | ||
"@stylistic/space-before-blocks": "error", | ||
"@stylistic/no-trailing-spaces": "error", | ||
"nuxt/prefer-import-meta": "error", | ||
"vue/first-attribute-linebreak": ["error", { singleline: "ignore", multiline: "ignore" }], | ||
"vue/max-attributes-per-line": ["error", { singleline: 100 }], | ||
"vue/singleline-html-element-content-newline": ["off"], | ||
"vue/no-multiple-template-root": ["off"], | ||
"vue/html-closing-bracket-spacing": ["error", { selfClosingTag: "always" }], | ||
"vue/html-indent": ["error", 2], | ||
"vue/multiline-html-element-content-newline": ["error", { ignores: [] }] | ||
} | ||
} | ||
}]); | ||
]); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,8 @@ | |
"release:patch": "pnpm changelogen --bump --patch && node scripts/newRelease.js && pnpm changelogen gh release", | ||
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --verbose --coverage", | ||
"lint": "npm run lint:eslint && npm run lint:stylelint", | ||
"lint:eslint": "eslint --ext .ts,.js,.vue --fix --ignore-path .gitignore .", | ||
"lint:stylelint": "stylelint \"**/*.css\" --fix", | ||
"lint:eslint": "eslint --fix --config .config/eslint.mjs", | ||
"lint:stylelint": "stylelint \"**/*.css\" --fix --config .config/stylelint.json", | ||
"dev:build": "pnpm app:mibus && pnpm generate && pnpm app:clean && pnpm sync" | ||
}, | ||
"devDependencies": { | ||
|
@@ -96,4 +96,4 @@ | |
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |
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
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.