-
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.
* 🧰 [Dependency] Changes to support eslint flat config * 🚚 [Eslint] Rename config file * 🛠️ [VsCode] Add flat config support * 🛠️ [TsConfig] Include new eslint config file * 🛠️ [Eslint] Migrate config file * 📝 [Report] Add changeset
- Loading branch information
Showing
8 changed files
with
391 additions
and
479 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,5 @@ | ||
--- | ||
'vurtis': patch | ||
--- | ||
|
||
Switch to eslint flat config. |
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
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,29 @@ | ||
import globals from 'globals'; | ||
import configLove from 'eslint-config-love'; | ||
// Includes both `config` and `plugin`. | ||
import pluginPrettier from 'eslint-plugin-prettier/recommended'; | ||
|
||
export default [ | ||
{ | ||
ignores: ['coverage/**', 'dist/**'], | ||
}, | ||
configLove, | ||
pluginPrettier, | ||
{ | ||
name: 'custom-rules', | ||
files: ['**/*.ts', '**/*.js', '**/*.mjs'], | ||
languageOptions: { | ||
...configLove.languageOptions, | ||
globals: { | ||
...globals.browser, | ||
}, | ||
ecmaVersion: 2022, | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
'no-console': 'warn', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/strict-boolean-expressions': 'off', | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.