-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
49 lines (48 loc) · 1.11 KB
/
.eslintrc.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
module.exports = {
env: {
browser: true,
es2021: true, // Updated to ES2021
amd: true,
node: true
},
extends: [
`eslint:recommended`,
`plugin:vue/vue3-essential`, // Updated for Vue 3, if you're using Vue 3
`plugin:@typescript-eslint/recommended`, // If you're using TypeScript
],
globals: {
Atomics: `readonly`,
SharedArrayBuffer: `readonly`
},
parser: `vue-eslint-parser`,
parserOptions: {
ecmaVersion: 2021, // Updated to ECMA 2021
sourceType: `module`,
parser: `@typescript-eslint/parser`, // If you're using TypeScript
},
plugins: [
`vue`,
`@typescript-eslint`, // If you're using TypeScript
],
rules: {
indent: [
`error`,
2 // Changed to 2 spaces for indentation, change as needed
],
'linebreak-style': [
`error`,
`windows`
],
semi: [`error`, `always`],
'quote-props': [`error`, `as-needed`],
quotes: [
`error`,
`backtick`
],
// 'no-console': `warn`,
'no-unused-vars': `warn`,
'no-var': `error`,
'prefer-const': `error`,
'vue/no-deprecated-filter': `off`
},
};