Skip to content

Commit

Permalink
Upgrade eslint to v9 (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Oct 11, 2024
1 parent 3d4b67a commit b9bc6ce
Show file tree
Hide file tree
Showing 19 changed files with 837 additions and 646 deletions.
242 changes: 0 additions & 242 deletions .eslintrc.cjs

This file was deleted.

22 changes: 0 additions & 22 deletions .prettierrc.cjs

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierrc.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import type { Options } from 'prettier';

declare const options: Options;
export = options;
34 changes: 34 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// @ts-check

/**
* @type {import('prettier').Config}
*/
export default {
plugins: ['prettier-plugin-organize-imports', 'prettier-plugin-packagejson'],
singleQuote: true,
trailingComma: 'all',
overrides: [
{
files: '*.json5',
options: {
parser: 'json5',
quoteProps: 'preserve',
singleQuote: false,
trailingComma: 'none',
},
},
{
files: '*.md',
options: {
// @ts-expect-error: known property
organizeImportsSkipDestructiveCodeActions: true,
},
},
{
files: 'package.json',
options: {
packageSortOrder: ['name', 'version', 'description', 'scripts'],
},
},
],
};
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"vuepress",
"yaml"
],
"eslint.options": {
"flags": ["unstable_ts_config"]
},
"eslint.validate": ["javascript", "typescript"],
"files.associations": {
"*.json5": "jsonc"
Expand Down
Loading

0 comments on commit b9bc6ce

Please sign in to comment.