🔧 add .eslintrc.cjs .eslintignore
This commit is contained in:
2
.eslintignore
Normal file
2
.eslintignore
Normal file
@@ -0,0 +1,2 @@
|
||||
model/uploadRecord.js
|
||||
config/YamlReader.js
|
||||
23
.eslintrc.cjs
Normal file
23
.eslintrc.cjs
Normal file
@@ -0,0 +1,23 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
es2021: true,
|
||||
node: true
|
||||
},
|
||||
extends: ['standard'],
|
||||
parserOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module'
|
||||
},
|
||||
globals: {
|
||||
Bot: true,
|
||||
redis: true,
|
||||
logger: true,
|
||||
plugin: true
|
||||
},
|
||||
rules: {
|
||||
eqeqeq: ['off'],
|
||||
'prefer-const': ['off'],
|
||||
'arrow-body-style': 'off',
|
||||
camelcase: 'off'
|
||||
}
|
||||
}
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1 @@
|
||||
node_modules/
|
||||
.eslintignore
|
||||
node_modules/
|
||||
Reference in New Issue
Block a user