-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (32 loc) · 840 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
// @ts-check
const { defineConfig } = require('eslint-define-config')
// custom your own eslint config here.
module.exports = defineConfig({
root: true,
env: {
browser: true,
node: true,
jest: true,
},
extends: '@antfu/eslint-config',
plugins: [
'jest',
],
rules: {
'react/no-string-refs': 'off',
'react/no-unknown-property': 'off',
'vue/no-deprecated-functional-template': 'off',
'vue/one-component-per-file': 'off',
'vue/no-template-shadow': 'off',
'vue/require-prop-types': 'off',
'spaced-comment': ['error', 'always', { exceptions: ['#__PURE__'] }],
'node/no-callback-literal': 'off',
'import/namespace': 'off',
'import/default': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
},
overrides: [
// ...
],
})