🌈 style(eslint): 新增eslint规则

This commit is contained in:
xuan
2022-12-02 18:59:29 +08:00
parent c3cb46a5a7
commit d49314aa5b
217 changed files with 19491 additions and 19187 deletions
+1
View File
@@ -1,4 +1,5 @@
const path = require('path')
module.exports = {
env: {
NODE_ENV: '"development"',
+8 -7
View File
@@ -1,15 +1,16 @@
const path = require('path')
const childProcess = require('child_process')
const versions =
childProcess.execSync('git rev-parse --abbrev-ref HEAD', {
const versions
= childProcess.execSync('git rev-parse --abbrev-ref HEAD', {
encoding: 'utf8',
}) != 'HEAD\n'
? childProcess.execSync('git rev-parse --abbrev-ref HEAD', {
encoding: 'utf8',
})
encoding: 'utf8',
})
: childProcess.execSync('git describe --tags --abbrev=0', {
encoding: 'utf8',
})
encoding: 'utf8',
})
const CURRENT_GITHASH = childProcess.execSync('git rev-parse --short HEAD', {
encoding: 'utf8',
})
@@ -109,7 +110,7 @@ const config = {
// },
}
module.exports = function (merge) {
module.exports = function(merge) {
if (process.env.NODE_ENV === 'development') {
return merge({}, config, require('./dev'))
}
+1
View File
@@ -1,4 +1,5 @@
const path = require('path')
module.exports = {
env: {
NODE_ENV: '"pre"',
+1
View File
@@ -1,4 +1,5 @@
const path = require('path')
module.exports = {
env: {
NODE_ENV: '"production"',