-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
114 changed files
with
14,183 additions
and
2,690 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
// Enable the flat config support | ||
"eslint.experimental.useFlatConfig": true, | ||
|
||
// Disable the default formatter | ||
"prettier.enable": false, | ||
"editor.formatOnSave": false, | ||
|
||
// Auto fix | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true, | ||
"source.organizeImports": false | ||
}, | ||
|
||
// Silent the stylistic rules in you IDE, but still auto fix them | ||
"eslint.rules.customizations": [ | ||
{ | ||
"rule": "@stylistic/*", | ||
"severity": "off" | ||
} | ||
], | ||
|
||
// The following is optional. | ||
// It's better to put under project setting `.vscode/settings.json` | ||
// to avoid conflicts with working with different eslint configs | ||
// that does not support all formats. | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"vue", | ||
"html", | ||
"markdown", | ||
"json", | ||
"jsonc", | ||
"yaml" | ||
] | ||
} |
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,19 @@ | ||
import { defineFlatConfig } from 'eslint-define-config' | ||
import { presetAuto } from '@antfu/eslint-config' | ||
import stylisticMigrate from '@stylistic/eslint-plugin-migrate' | ||
import sortKeys from 'eslint-plugin-sort-keys' | ||
|
||
export default defineFlatConfig([ | ||
...presetAuto, | ||
{ | ||
files: ['**/eslint-config/src/**/*.ts'], | ||
plugins: { | ||
'@stylistic/migrate': stylisticMigrate, | ||
'sort-keys': sortKeys, | ||
}, | ||
rules: { | ||
'@stylistic/migrate/rules': 'error', | ||
'sort-keys/sort-keys-fix': 'error', | ||
}, | ||
}, | ||
]) |
File renamed without changes.
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ dist-ssr | |
node_modules | ||
.idea/ | ||
*.log | ||
cypress/downloads |
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,2 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=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
Oops, something went wrong.