forked from matter-labs/zksync-wallet-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
66 lines (65 loc) · 2.14 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
module.exports = {
env: {
browser: true,
node: true,
},
extends: ["@nuxtjs/eslint-config-typescript", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "prettier", "plugin:vue/base"],
parserOptions: {
ecmaVersion: 12,
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
parser: "@typescript-eslint/parser",
sourceType: "module",
project: ["tsconfig.json", "tsconfig.eslint.json"],
tsconfigRootDir: __dirname,
extraFileExtensions: [".vue", ".scss"],
},
ignorePatterns: ["node_modules"],
plugins: ["vue", "@typescript-eslint", "prettier"],
root: true,
rules: {
indent: "off",
semi: ["error", "always"],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-undef": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
camelcase: "off",
"no-console": "off",
"prettier/prettier": "error",
quotes: ["error", "double"],
"sort-imports": "off",
"vue/no-v-for-template-key-on-child": "off",
"vue/no-v-html": "off",
"vue/html-self-closing": "off",
"pt-eslint/no-explicit-any": "off",
"no-prototype-builtins": "off",
"no-unused-expressions": "off",
"no-use-before-define": "off",
"vue/singleline-html-element-content-newline": "off",
"@typescript-eslint/no-empty-function": ["off"],
"vue/max-attribute": "off",
"vue/require-prop-types": "off",
},
settings: {
"prettier-vue": {
SFCBlocks: {
template: true,
script: true,
},
usePrettierrc: true,
// Set the options for `prettier.getFileInfo`.
// @see https://prettier.io/docs/en/api.html#prettiergetfileinfofilepath-options
fileInfoOptions: {
// Path to ignore file (default: `'.prettierignore'`)
// Notice that the ignore file is only used for this plugin
ignorePath: "..prettierignore",
// Process the files in `node_modules` or not (default: `false`)
withNodeModules: false,
},
},
},
};