Skip to content

Commit

Permalink
Use custom eslint library
Browse files Browse the repository at this point in the history
  • Loading branch information
schulzetenberg committed Oct 24, 2021
1 parent 6f54b5c commit 6a8db86
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 42 deletions.
35 changes: 6 additions & 29 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,8 @@
{
"extends": [
"airbnb-base", // Airbnb's base JS .eslintrc (without React plugins),
"prettier" // Ignore rules managed by prettier
],

// Override the airbnb rules here
"rules": {
"prefer-promise-reject-errors": 0,
"no-use-before-define": 0,
"consistent-return": 0,
"max-len": ["error", { "code": 120 }],

// prettier plugin
"prettier/prettier": [
"error",
{
"printWidth": 120,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"arrowParens": "always",
"trailingComma": "es5",
"bracketSpacing": true
}
]
},

"plugins": ["prettier"]
"extends": [
"@schulzetenberg/eslint-config-node"
],
// Rule overrides go here
"rules": {
}
}
27 changes: 14 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"xml2js": "0.4.23"
},
"devDependencies": {
"@schulzetenberg/eslint-config-node": "^0.0.6",
"chai": "4.2.0",
"eslint": "6.8.0",
"eslint-config-airbnb-base": "14.2.0",
Expand Down

0 comments on commit 6a8db86

Please sign in to comment.