Commit fb2c4578 authored by 邓晓峰's avatar 邓晓峰

fix: eslint:fix errors

parent c5dba396
# editorconfig.org
# http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab
This diff is collapsed.
const fs = require('fs');
const path = require('path');
const prettierOptions = JSON.parse(
fs.readFileSync(path.resolve(__dirname, '.prettierrc'), 'utf8'),
);
......@@ -68,12 +67,20 @@ module.exports = {
'no-confusing-arrow': 0,
'no-console': 1,
'no-unused-vars': 0,
'no-use-before-define': 0,
'no-void': 0,
'func-names': 0,
'array-callback-return':0,
'no-return-assign': 1,
'no-nested-ternary': 0,
'consistent-return': 0,
'no-param-reassign': 0,
'no-unused-expressions': 0,
'no-restricted-syntax': 0,
"no-shadow": ["error", { "builtinGlobals": false, "hoist": "functions", "allow": [] }],
'no-cond-assign': 1,
'prefer-template': 2,
'react/jsx-wrap-multilines': 0,
'react/prop-types': 0,
'react/forbid-prop-types': 0,
'react/sort-comp': 1,
'react/jsx-one-expression-per-line': 0,
'react/jsx-props-no-spreading': 0,
'react/state-in-constructor': 0,
......@@ -91,12 +98,10 @@ module.exports = {
'react/require-extension': 0,
'react/self-closing-comp': 0,
'react/sort-comp': 0,
'react/require-default-props': 0,
'react/jsx-fragments': 0,
'redux-saga/no-yield-in-race': 2,
'redux-saga/yield-effects': 2,
'require-yield': 0,
},
settings: {
'import/resolver': {
......
......@@ -11,4 +11,4 @@ npm-debug.log
.idea
src/umi
.vscode
civweb
civbase
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all"
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all"
}
{
"processors": ["stylelint-processor-styled-components"],
"extends": [
"stylelint-config-recommended",
"stylelint-config-styled-components"
]
}
//{
// "processors": ["stylelint-processor-styled-components"],
// "extends": [
// "stylelint-config-recommended",
// "stylelint-config-styled-components"
// ]
//}
const fabric = require('@umijs/fabric');
module.exports = {
...fabric.stylelint,
};
......@@ -7,6 +7,7 @@ export default {
menu: {
locale: true,
},
pwa: false,
headerHeight: 48,
title: '熊猫智慧城市监控管理解决方案',
iconfontUrl: '',
......
"use strict";
module.exports = {
dev: {
'/CityInterface': {
// target: 'http://192.168.10.151:8055',
// target: 'https://panda-water.cn',
// target: 'http://192.168.19.102:8055',
target: 'https://panda-water.com',
// target: 'http://192.168.10.150:8050',
// target: 'http://192.168.19.103:8112',
// target: 'http://192.168.12.8:8098',
// target: 'http://192.168.10.20:8888',
changeOrigin: true,
headers: {
'Access-Control-Allow-Origin': '*'
},
pathRewrite: {
'/CityInterface': '/CityInterface'
}
},
'/cityinterface': {
// target: 'http://192.168.10.150:8050',
// target: 'https://panda-water.cn',
// target: 'http://192.168.19.102:8055',
target: 'https://panda-water.com',
// target: 'http://192.168.12.8:8098',
// target: 'http://192.168.10.20:8888',
changeOrigin: true,
headers: {
'Access-Control-Allow-Origin': '*'
},
pathRewrite: {
'/cityinterface': '/cityinterface'
}
},
'/Publish': {
// target: 'http://192.168.12.8:8098',
// target: 'http://192.168.10.20:8888',
// target: 'http://192.168.10.151:8055',
// target: 'https://panda-water.cn',
// target: 'http://192.168.19.102:8055',
target: 'https://panda-water.com',
// target: 'http://192.168.10.150:8050',
changeOrigin: true,
headers: {
'Access-Control-Allow-Origin': '*'
},
pathRewrite: {
'/Publish': '/Publish'
}
}
}
};
\ No newline at end of file
const path = require('path');
const webpack = require('webpack');
const slash = require('slash2');
const pkg = require('../../package.json');
const CopyPlugin = require('copy-webpack-plugin');
const pkg = require('../../package.json');
const argv = require('../../server/argv');
const ASSET_PATH = process.env.ASSET_PATH || '/';
module.exports = options => ({
......@@ -10,7 +10,9 @@ module.exports = options => ({
entry: options.entry,
output: Object.assign(
{
path: argv.releasepath ? path.resolve(argv.releasepath, pkg.name.toLocaleLowerCase()) : path.resolve(process.cwd(), pkg.name.toLocaleLowerCase()),
path: argv.releasepath
? path.resolve(argv.releasepath, pkg.name.toLocaleLowerCase())
: path.resolve(process.cwd(), pkg.name.toLocaleLowerCase()),
publicPath: `/${pkg.name.toLocaleLowerCase()}`,
},
options.output,
......@@ -34,7 +36,8 @@ module.exports = options => ({
test: /\.css$/,
exclude: /node_modules/,
use: ['style-loader', 'css-loader'],
}, {
},
{
test: /\.less$/,
use: [
......@@ -79,6 +82,9 @@ module.exports = options => ({
loader: 'less-loader',
options: {
javascriptEnabled: true,
// modifyVars: {
// '@ant-prefix': 'panda',
// },
},
},
],
......@@ -100,6 +106,7 @@ module.exports = options => ({
options: {
// Inline files smaller than 10 kB
limit: 10 * 1024,
name: '[name].[ext]',
noquotes: true,
},
},
......@@ -114,7 +121,7 @@ module.exports = options => ({
// Inline files smaller than 10 kB
limit: 10 * 1024,
name: '[name].[ext]',
outputPath: 'images/'
outputPath: 'images/',
},
},
// {
......
......@@ -141,13 +141,13 @@ module.exports = require('./webpack.base.babel')({
hashDigest: 'hex',
hashDigestLength: 20,
}),
new WebpackManifestPlugin({
publicPath: '/civbase/',
map: (file) => {
file.name = file.name.replace(/(\.[a-f0-9]{32})(\..*)$/, '$2');
return file;
}
})
// new WebpackManifestPlugin({
// publicPath: '/civbase/',
// map: (file) => {
// file.name = file.name.replace(/(\.[a-f0-9]{32})(\..*)$/, '$2');
// return file;
// }
// })
],
performance: {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment