-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix all violations of eslint rules
* add option for rule `@typescript-eslint/restrict-template-expressions` @ eslint.config.js @ fe
- Loading branch information
Showing
6 changed files
with
26 additions
and
15 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 |
---|---|---|
|
@@ -382,6 +382,7 @@ const rules = [{ // as of [email protected] | |
'@typescript-eslint/no-unsafe-enum-comparison': 'error', | ||
'@typescript-eslint/no-unsafe-unary-minus': 'error', | ||
'@typescript-eslint/parameter-properties': ['error', { prefer: 'parameter-property' }], | ||
'@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }], | ||
}, | ||
}, { // as of [email protected] | ||
optout: { | ||
|
@@ -520,20 +521,26 @@ const rules = [{ // as of [email protected] | |
}, | ||
}]; | ||
|
||
import viteConfig from './vite.config.ts'; | ||
import pluginStylistic from '@stylistic/eslint-plugin'; | ||
import pluginImportX from 'eslint-plugin-import-x'; | ||
import pluginUnicorn from 'eslint-plugin-unicorn'; | ||
import * as typescriptESLintParserForExtraFiles from 'typescript-eslint-parser-for-extra-files'; | ||
import * as vueESLintParser from 'vue-eslint-parser'; | ||
// eslint-disable-next-line import-x/extensions | ||
import vueESLintConfigTypescriptRecommendedExtends from '@vue/eslint-config-typescript/recommended.js'; | ||
import pluginVue from 'eslint-plugin-vue'; | ||
// eslint-disable-next-line import-x/no-unresolved | ||
import { fixupConfigRules } from '@eslint/compat'; | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
import eslintJs from '@eslint/js'; | ||
import pluginStylistic from '@stylistic/eslint-plugin'; | ||
import stylisticMigrate from '@stylistic/eslint-plugin-migrate'; | ||
import pluginImportX from 'eslint-plugin-import-x'; | ||
import pluginUnicorn from 'eslint-plugin-unicorn'; | ||
// eslint-disable-next-line import-x/no-unresolved, import-x/extensions | ||
import { tsImport } from 'tsx/esm/api'; | ||
import * as typescriptESLintParserForExtraFiles from 'typescript-eslint-parser-for-extra-files'; | ||
import * as _ from 'lodash-es'; | ||
|
||
// https://github.com/pzmosquito/eslint-import-resolver-vite/issues/12#issuecomment-2151349705 | ||
const viteConfig = await tsImport('./vite.config.ts', import.meta.url); | ||
|
||
// https://github.com/eslint/eslint/issues/18093 | ||
// https://github.com/eslint/eslint/issues/18391 | ||
const compat = new FlatCompat(); | ||
|
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