43 lines
1.2 KiB
43 lines
1.2 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 |
|
} |
|
}, |
|
"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/es5", |
|
"rules": { |
|
"no-param-reassign": "off", |
|
"quotes": [2, "double"], |
|
"comma-dangle": ["error", { "arrays": "never", "objects": "always-multiline"}] // 多行对象字面量中要求拖尾逗号 |
|
} |
|
}, { |
|
"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" |
|
}] |
|
}
|
|
|