-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
65 lines (64 loc) · 1.72 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import jsLint from '@eslint/js';
import tsLint from 'typescript-eslint';
import importPlugin from 'eslint-plugin-import';
import playwright from 'eslint-plugin-playwright';
import storybook from 'eslint-plugin-storybook';
import vueLint from 'eslint-plugin-vue';
import vueTsEslintConfig from '@vue/eslint-config-typescript';
export default [
jsLint.configs.recommended,
...tsLint.configs.recommended,
importPlugin.flatConfigs.recommended,
...vueLint.configs['flat/essential'],
...vueTsEslintConfig(),
...storybook.configs['flat/recommended'],
{
...playwright.configs['flat/recommended'],
files: [
'**/*.vue',
'**/*.js',
'**/*.jsx',
'**/*.cjs',
'**/*.mjs',
'**/*.ts',
'**/*.tsx',
'**/*.cts',
'**/*.mts',
],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
...playwright.configs['flat/recommended'].rules,
'import/extensions': ['error', 'ignorePackages', {
'': 'never',
ts: 'never',
js: 'never',
vue: 'off',
}],
'no-param-reassign': 'off',
'import/prefer-default-export': 'off',
'radix': 'off',
'dot-notation': 'off',
'@typescript-eslint/no-explicit-any': 'off',
// Disable full warning, and customize the typescript one
// Warn about unused vars unless they start with an underscore
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
settings: {
'import/resolver': {
typescript: true,
node: true,
},
},
}
];