Skip to content

Commit

Permalink
style(lint): enable es5/no-destructuring rule
Browse files Browse the repository at this point in the history
  • Loading branch information
macklinu committed Feb 10, 2018
1 parent 18c97de commit 236d098
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
'plugin:eslint-plugin/recommended',
'prettier',
],
plugins: ['eslint-plugin', 'prettier'],
plugins: ['es5', 'eslint-plugin', 'prettier'],
parserOptions: {
ecmaVersion: 2017,
},
Expand All @@ -18,6 +18,7 @@ module.exports = {
rules: {
eqeqeq: ['error', 'smart'],
strict: 'error',
'es5/no-destructuring': 'error',
'eslint-plugin/require-meta-docs-url': [
'error',
{
Expand Down
1 change: 1 addition & 0 deletions dangerfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

// eslint-disable-next-line es5/no-destructuring
const { danger, fail } = require('danger');

// Ensure that people include a description on their PRs
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@
},
"commitlint": {
"extends": ["@commitlint/config-conventional"]
},
"dependencies": {
"eslint-plugin-es5": "^1.2.0"
}
}
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1587,6 +1587,10 @@ eslint-config-prettier@^2.7.0:
dependencies:
get-stdin "^5.0.1"

eslint-plugin-es5@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-es5/-/eslint-plugin-es5-1.2.0.tgz#22e1e7d5681b3a2f2588247bc9ca51dbfee6f6e9"

eslint-plugin-eslint-plugin@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-1.4.0.tgz#382dc6692a741a52072d5f3fff5dacdcf291ef49"
Expand Down

0 comments on commit 236d098

Please sign in to comment.