Files
Hydro/ui/.eslintrc.js
T
masnn f9468536de upgrade dep:
css-loader 0.28->3.5
del 4.1->5.1
eslint 5.18->6.8
eslint-config-airbnb 17.1->18.1
eslint-loader 2.1->4.0
file-loader 2.0->6.0
fs.extra 8.0->9.0
gulp 2.0->3.0
gulp-nunjucks 4.0->5.0
json-loader 0.5->Removed
style-loader 0.23->1.1
uglifyjs-webpack-plugin 1.3->2.2
yargs 13.2->15.3
katex 0.10->0.11
react-monaco-editor 0.35->0.36
timeage-react 1.2->3.0
timeago.js 3.0->4.0
uuid 3.3->7.0
2020-04-15 12:47:55 +08:00

99 lines
2.2 KiB
JavaScript

const path = require('path');
module.exports = {
"parser": "babel-eslint",
"plugins": [
"babel",
"react"
],
"env": {
"browser": true,
"es6": true,
"jquery": true,
"commonjs": true
},
"extends": [
"airbnb"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 7,
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true,
"jsx": true,
"legacyDecorators": true
}
},
"settings": {
"import/resolver": {
"webpack": {
"config": {
"resolve": {
"alias": {
"vj": path.resolve(__dirname),
}
}
}
}
}
},
"globals": {
"__webpack_public_path__": true,
"__webpack_require__": true,
"UiContext": true,
"UserContext": true,
"Context": true,
"LOCALES": true
},
"rules": {
"comma-dangle": [
"error",
"always-multiline"
],
"indent": [
"error",
2,
{
"SwitchCase": 0
}
],
"max-len": [
"error",
150
],
"quotes": "warn",
"func-names": "off",
"class-methods-use-this": "off",
"consistent-return": "warn",
"no-restricted-syntax": "warn",
"no-unused-vars": "warn",
"no-console": "off",
"no-continue": "off",
"no-mixed-operators": "off",
"no-plusplus": "off",
"no-underscore-dangle": "off",
"no-await-in-loop": "off",
"no-lonely-if": "off",
"import/first": "off",
"react/prefer-stateless-function": "off",
"react/self-closing-comp": "off",
"react/prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-one-expression-per-line": "off",
"react/no-string-refs": "off",
"react/require-default-props": "off",
"react/react-in-jsx-scope": "off",
"react/destructuring-assignment": "off",
"react/button-has-type": "off",
"react/forbid-prop-types": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"max-classes-per-file": "off",
"react/jsx-props-no-spreading": "off",
"react/static-property-placement": "off",
"no-param-reassign": "off"
}
};