You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
48 lines
1.3 KiB
{ |
|
"env": { |
|
"browser": true, |
|
"node": true, |
|
"es6": true, |
|
"jest": true |
|
}, |
|
"globals": { |
|
"window": true, |
|
"$": true, |
|
"WebUI": true, |
|
"BI": true, |
|
"Data": true, |
|
"Fix": true, |
|
"module": true, |
|
"Demo": true, |
|
"_global": true |
|
}, |
|
"parser": "@typescript-eslint/parser", |
|
"parserOptions": { |
|
"ecmaVersion": 6, |
|
"sourceType": "module", |
|
"ecmaFeatures": { |
|
"modules": true, |
|
"legacyDecorators": true |
|
} |
|
}, |
|
"plugins": ["@typescript-eslint/eslint-plugin"], |
|
"overrides": [{ |
|
"files": ["src/*.js","src/**/*.js", "demo/*.js", "demo/**/*.js", "i18n/**/*.js", "i18n/*.js", "test/**/*.js", "test/*.js", "examples/*.js", "examples/**/*.js"], |
|
"extends": "plugin:@fui/esnext", |
|
"rules": { |
|
"no-param-reassign": "off", |
|
"quotes": [2, "double"], |
|
"comma-dangle": ["error", { "arrays": "never", "objects": "always-multiline"}], // 多行对象字面量中要求拖尾逗号 |
|
"no-var": 2, |
|
"prefer-const": 2, |
|
"indent": ["error", 4], |
|
"no-use-before-define": 0 |
|
} |
|
}, { |
|
"files": ["webpack/*.js", "./*.js", "lib/**/*.js", "lib/*.js", "./bin/*.js", "./bin/**/*.js"], |
|
"extends": "plugin:@fui/esnext" |
|
}, { |
|
"files": ["types/*.ts", "typescript/*.ts","typescript/**/*.ts"], |
|
"extends": "plugin:@fui/typescript" |
|
}] |
|
}
|
|
|