Skip to content

Commit

Permalink
[eslint config] [base] remove unneeded eslint version check
Browse files Browse the repository at this point in the history
  • Loading branch information
PaperStrike committed Nov 11, 2021
1 parent 52e710c commit d8cb404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/eslint-config-airbnb-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
"dependencies": {
"confusing-browser-globals": "^1.0.10",
"object.assign": "^4.1.2",
"object.entries": "^1.1.5",
"semver": "^6.3.0"
"object.entries": "^1.1.5"
}
}
5 changes: 1 addition & 4 deletions packages/eslint-config-airbnb-base/rules/style.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
const semver = require('semver');
const eslintPkg = require('eslint/package.json');

module.exports = {
rules: {
// enforce line breaks after opening and before closing array brackets
Expand Down Expand Up @@ -105,7 +102,7 @@ module.exports = {

// require line breaks inside function parentheses if there are line breaks between parameters
// https://eslint.org/docs/rules/function-paren-newline
'function-paren-newline': ['error', semver.satisfies(eslintPkg.version, '>= 6') ? 'multiline-arguments' : 'consistent'],
'function-paren-newline': ['error', 'multiline-arguments'],

// disallow specified identifiers
// https://eslint.org/docs/rules/id-denylist
Expand Down

0 comments on commit d8cb404

Please sign in to comment.