-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from retejs/update-eslint
Update eslint
- Loading branch information
Showing
402 changed files
with
15,040 additions
and
11,645 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,46 @@ | ||
import tseslint from 'typescript-eslint'; | ||
import configs from 'rete-cli/configs/eslint.mjs'; | ||
import pluginVue from "eslint-plugin-vue"; | ||
import vueTsEslintConfig from "@vue/eslint-config-typescript"; | ||
import tsParser from '@typescript-eslint/parser'; | ||
|
||
export default tseslint.config( | ||
...configs, | ||
...pluginVue.configs["flat/essential"], | ||
...vueTsEslintConfig(), | ||
{ | ||
...configs[configs.length - 2], | ||
files: [ 'src/**/*.{ts,tsx,vue,mjs}', 'test/**/*.{ts,tsx}' ], | ||
}, | ||
{ | ||
files: ['**/*.{js,mjs}'], | ||
rules: { | ||
'@stylistic/indent': ['error', 2], | ||
} | ||
}, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.vue'], | ||
languageOptions: { | ||
parserOptions: { | ||
parser: tsParser, | ||
project: 'tsconfig.json', | ||
extraFileExtensions: ['.vue'] | ||
} | ||
}, | ||
rules: { | ||
'vue/multi-word-component-names': 'off', | ||
|
||
} | ||
}, | ||
{ | ||
files: ['**/*.js', '**/*.vue'], | ||
rules: { | ||
'vue/multi-word-component-names': 'off', | ||
'vue/no-reserved-component-names': 'off', | ||
'@typescript-eslint/naming-convention': 'off', | ||
'@typescript-eslint/unbound-method': 'off', | ||
'@typescript-eslint/restrict-template-expressions': 'off', | ||
'@typescript-eslint/restrict-plus-operands': 'off', | ||
} | ||
} | ||
) |
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.