@@ -2,24 +2,25 @@ import globals from "globals";
2
2
import pluginJs from "@eslint/js" ;
3
3
import tseslint from "typescript-eslint" ;
4
4
import pluginVue from "eslint-plugin-vue" ;
5
- import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended" ;
6
5
import pluginPromise from "eslint-plugin-promise" ;
7
6
8
7
export default tseslint . config ( {
9
- ignores : [ "/node_modules/**/*" , "/dist/**/*" , "/public/js/app.constants.js" ] ,
10
- files : [ "**/*.{js,mjs,ts,vue}" ] ,
11
- languageOptions : { globals : globals . browser , ecmaVersion : "latest" , parserOptions : { parser : tseslint . parser } } ,
12
- extends : [ pluginJs . configs . recommended , ...tseslint . configs . recommended , ...pluginVue . configs [ "flat/essential" ] , pluginPromise . configs [ "flat/recommended" ] , eslintPluginPrettierRecommended ] ,
13
- rules : {
14
- "no-duplicate-imports" : "error" ,
15
- "promise/prefer-await-to-then" : "error" ,
16
- "require-await" : "error" ,
17
- "no-await-in-loop" : "warn" ,
18
- "prefer-rest-params" : "error" ,
19
- "prefer-spread" : "error" ,
20
- "no-var" : "error" ,
21
- "prefer-const" : "error" ,
22
- eqeqeq : [ "error" , "smart" ] ,
23
- "no-throw-literal" : "warn" ,
8
+ ignores : [ "node_modules/**" , "dist/**" , "public/js/app.constants.js" ] ,
24
9
} ,
10
+ {
11
+ files : [ "**/*.{js,mjs,ts,vue}" ] ,
12
+ languageOptions : { globals : globals . browser , ecmaVersion : "latest" , parserOptions : { parser : tseslint . parser } } ,
13
+ extends : [ pluginJs . configs . recommended , ...tseslint . configs . recommended , ...pluginVue . configs [ "flat/essential" ] , pluginPromise . configs [ "flat/recommended" ] ] ,
14
+ rules : {
15
+ "no-duplicate-imports" : "error" ,
16
+ "promise/prefer-await-to-then" : "error" ,
17
+ "require-await" : "error" ,
18
+ "no-await-in-loop" : "warn" ,
19
+ "prefer-rest-params" : "error" ,
20
+ "prefer-spread" : "error" ,
21
+ "no-var" : "error" ,
22
+ "prefer-const" : "error" ,
23
+ eqeqeq : [ "error" , "smart" ] ,
24
+ "no-throw-literal" : "warn" ,
25
+ } ,
25
26
} ) ;
0 commit comments