forked from Tarun-Arora/sdg-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 880 Bytes
/
.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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'plugin:vuejs-accessibility/recommended',
'@nuxtjs/eslint-config-typescript',
'plugin:nuxt/recommended',
'eslint:recommended',
'plugin:prettier/recommended',
'prettier',
],
plugins: ['vuejs-accessibility', 'prettier'],
// add your custom rules here
rules: {
'no-console': 'warn',
'vue/singleline-html-element-content-newline': 0,
'vue/html-self-closing': 0,
'vue/html-closing-bracket-newline': 0,
'vue/html-indent': ['warn', 2, { baseIndent: 1 }],
'prettier/prettier': ['error', { endOfLine: 'auto' }],
},
parserOptions: {
parser: '@typescript-eslint/parser',
},
globals: {
$nuxt: true,
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
withDefaults: 'readonly',
},
};