forked from lotem/rimekit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
45 lines (44 loc) · 1.18 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import js from '@eslint/js';
import ts from 'typescript-eslint';
import vue from 'eslint-plugin-vue';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
export default [
js.configs.recommended,
...ts.configs.recommended,
...vue.configs['flat/recommended'],
prettier,
{ files: ['*.{js,mjs,cjs,jsx,vue,ts,mts,cts,tsx}', '**/*.{js,mjs,cjs,jsx,vue,ts,mts,cts,tsx}'] },
{
languageOptions: {
parserOptions: {
parser: ts.parser,
ecmaVersion: 'latest',
ecmaFeatures: {
jsx: true,
},
extraFileExtensions: ['.vue'],
sourceType: 'module',
},
globals: {
...globals.browser,
...globals.es2021,
...globals.node,
},
},
},
{
ignores: ['node_modules/', 'dist/', 'out/', '.gitignore'],
},
{
rules: {
semi: ['error', 'always'],
'linebreak-style': ['error', 'unix'],
'@typescript-eslint/no-unused-vars': ['off'],
'@typescript-eslint/no-explicit-any': ['warn'],
'@typescript-eslint/explicit-function-return-type': ['off'],
'vue/require-default-prop': 'off',
'vue/multi-word-component-names': 'off',
},
},
];