mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 09:24:41 +12:00
Add dev dependencies and cleanup ESLint file (#588)
This commit is contained in:
parent
a172fffd76
commit
2682c07bd8
3 changed files with 26 additions and 21 deletions
20
.eslintrc.js
20
.eslintrc.js
|
@ -1,20 +0,0 @@
|
|||
module.exports = {
|
||||
"extends": "airbnb",
|
||||
"plugins": [
|
||||
"react",
|
||||
"jsx-a11y",
|
||||
"import"
|
||||
],
|
||||
"rules" : {
|
||||
"max-len": [2, 120, 2],
|
||||
"no-underscore-dangle": 0,
|
||||
"global-require": 0,
|
||||
"guard-for-in": 0,
|
||||
"no-restricted-syntax": 0,
|
||||
"no-param-reassign": 0,
|
||||
"consistent-return": 0,
|
||||
"import/no-extraneous-dependencies": 0,
|
||||
"no-continue": 0,
|
||||
"no-confusing-arrow" : 0
|
||||
}
|
||||
};
|
20
.eslintrc.json
Normal file
20
.eslintrc.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"extends": "airbnb",
|
||||
"plugins": [
|
||||
"import",
|
||||
"react",
|
||||
"jsx-a11y"
|
||||
],
|
||||
"rules": {
|
||||
"max-len": [2, 120, 2],
|
||||
"no-underscore-dangle": 0,
|
||||
"global-require": 0,
|
||||
"guard-for-in": 0,
|
||||
"no-restricted-syntax": 0,
|
||||
"no-param-reassign": 0,
|
||||
"consistent-return": 0,
|
||||
"import/no-extraneous-dependencies": 0,
|
||||
"no-continue": 0,
|
||||
"no-confusing-arrow" : 0
|
||||
}
|
||||
}
|
|
@ -33,7 +33,12 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"fs-extra": "^0.30.0",
|
||||
"jsdoc-parse": "^1.2.7"
|
||||
"jsdoc-parse": "^1.2.0",
|
||||
"eslint": "^3.4.0",
|
||||
"eslint-config-airbnb": "^10.0.0",
|
||||
"eslint-plugin-import": "^1.14.0",
|
||||
"eslint-plugin-react": "^6.2.0",
|
||||
"eslint-plugin-jsx-a11y": "^2.2.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"node-opus": "^0.1.13"
|
||||
|
|
Loading…
Reference in a new issue