mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 03:57:36 +08:00
39 lines
878 B
JavaScript
39 lines
878 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
parserOptions: {
|
|
// parser: "@typescript-eslint/parser",
|
|
// ecmaVersion: 2018,
|
|
sourceType: "module",
|
|
},
|
|
env: {
|
|
es6: true,
|
|
node: true,
|
|
browser: true,
|
|
},
|
|
// plugins: ["flowtype"],
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
],
|
|
globals: {
|
|
__WEEX__: true,
|
|
WXEnvironment: true,
|
|
},
|
|
rules: {
|
|
'no-unused-vars': [
|
|
'error',
|
|
// we are only using this rule to check for unused arguments since TS
|
|
// catches unused variables but not args.
|
|
{ varsIgnorePattern: '.*', args: 'none' }
|
|
],
|
|
'prefer-spread': 0,
|
|
'prefer-rest-params': 0,
|
|
'no-prototype-builtins': 0,
|
|
"no-console": process.env.NODE_ENV !== "production" ? 0 : 2,
|
|
"no-useless-escape": 0,
|
|
"no-empty": 0,
|
|
},
|
|
};
|