-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.mjs
47 lines (44 loc) · 1.52 KB
/
eslint.config.mjs
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
import noSecrets from "eslint-plugin-no-secrets";
import tailwind from "eslint-plugin-tailwindcss";
import pluginVue from 'eslint-plugin-vue'
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import vueParser from 'vue-eslint-parser';
import pluginVueA11y from "eslint-plugin-vuejs-accessibility";
export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs['flat/recommended'],
...pluginVueA11y.configs["flat/recommended"],
...tailwind.configs["flat/recommended"],
{
plugins: {
"no-secrets": noSecrets
},
// See https://typescript-eslint.io/troubleshooting/faqs/frameworks
languageOptions: {
parser: vueParser,
parserOptions: {
ecmaFeatures: {
jsx: true,
},
parser: tseslint.parser,
sourceType: 'module',
},
},
}, {
files: ["**/*.ts", "**/*.vue"],
rules: {
"no-secrets/no-secrets": "error",
"vue/max-attributes-per-line": "off",
// Some bugs for this rule
"tailwindcss/no-custom-classname": "off",
// Namespaces shown as undefined, so disable for now
"no-undef": "off",
// Haven't found a way to override volar with eslint
'vue/html-indent': "off",
'vue/html-closing-bracket-newline': "off",
'vue/first-attribute-linebreak': "off",
},
}
];