Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
add @getify/eslint-plugin-proper-arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed May 14, 2019
1 parent ce59567 commit 4d009b6
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
'./configs/import.js',
'./configs/lodash.js',
'./configs/no-null.js',
'./configs/proper-arrows.js',

'./configs/browser.js'
]
Expand Down
29 changes: 29 additions & 0 deletions configs/proper-arrows.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
plugins: [
'@getify/proper-arrows'
],

rules: {
// OFF because AsyncFunctionExpressions are handled by max-params, no-unused-vars
'@getify/proper-arrows/params': 'off',
// OFF because it doesn't support 'never'
'@getify/proper-arrows/names': 'off',
'@getify/proper-arrows/where': ['error', {
global: true,
property: true,
export: true,
trivial: true
}],
'@getify/proper-arrows/return': ['error', {
object: true,
ternatry: true,
chained: true,
sequence: true,
trivial: true
}],
'@getify/proper-arrows/this': ['error', 'nested', {
'no-global': true,
trivial: true
}]
}
};
1 change: 1 addition & 0 deletions node.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
'./configs/import.js',
'./configs/lodash.js',
'./configs/no-null.js',
'./configs/proper-arrows.js',

'./configs/node.js'
]
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"/rules/"
],
"peerDependencies": {
"@getify/eslint-plugin-proper-arrows": "^8.0.1",
"babel-eslint": "^10.0.1",
"eslint": "^5.9.0",
"eslint-plugin-async-await": "^0.0.0",
Expand All @@ -29,6 +30,7 @@
"lodash": "^4.17.5"
},
"devDependencies": {
"@getify/eslint-plugin-proper-arrows": "^8.0.1",
"babel-eslint": "^10.0.1",
"eclint": "^2.6.0",
"eslint": "^5.9.0",
Expand Down

0 comments on commit 4d009b6

Please sign in to comment.