-
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
1 parent
e4c45a2
commit 9d53111
Showing
5 changed files
with
50 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit", | ||
"source.fixAll.stylelint": "explicit" | ||
}, | ||
"editor.formatOnPaste": true, | ||
"editor.trimAutoWhitespace": true, | ||
"editor.tabSize": 2, | ||
"editor.insertSpaces": true, | ||
"editor.detectIndentation": false, | ||
"eslint.format.enable": true, | ||
"eslint.validate": [ | ||
"typescript", | ||
"javascript", | ||
"javascriptreact", | ||
"vue", | ||
"json" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,5 +1,21 @@ | ||
import eslintKongUiConfig from './configs/index.mjs' | ||
import eslintKongUiConfigJson from './configs/json.mjs' | ||
import eslintKongUiConfigCypress from './configs/cypress.mjs' | ||
|
||
export default [ | ||
// Use the main config for all other files | ||
...eslintKongUiConfig, | ||
// Only apply the shared JSON config to files that match the given pattern | ||
...eslintKongUiConfigJson.map(config => ({ | ||
...config, | ||
files: ['**/fixtures/**/*.json'], | ||
})), | ||
// Only apply the shared Cypress config to files that match the given pattern | ||
...eslintKongUiConfigCypress.map(config => ({ | ||
...config, | ||
files: [ | ||
'**/*.cy.{ts,js}', | ||
'**/cypress/**', | ||
], | ||
})), | ||
] |
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,10 @@ | ||
const fake = () => { | ||
const results = [ | ||
'one', | ||
'two', | ||
] | ||
|
||
return results[0] | ||
} | ||
|
||
export { fake } |
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,5 @@ | ||
{ | ||
"json": { | ||
"description": "This file is used to test the JSON config." | ||
} | ||
} |