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

Commit

Permalink
add eslint-plugin-better
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neculau (anu) committed Aug 19, 2017
1 parent 5fd41d8 commit 1718826
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
extends: [
'./configs/basic.js',
'./configs/babel.js',
'./configs/better.js',
'./configs/async-await.js',
'./configs/dependencies.js',
'./configs/import.js',
Expand Down
26 changes: 26 additions & 0 deletions configs/better.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
plugins: [
'better'
],
rules: {
'better/explicit-return': 'off',
'better/no-classes': 'off',
'better/no-deletes': 'off',
'better/no-exceptions': 'off',
'better/no-exports': 'off',
'better/no-fors': 'error',
'better/no-function-expressions': 'off',
'better/no-ifs': 'off',
'better/no-imports': 'off',
'better/no-instanceofs': 'off',
'better/no-new': 'off',
'better/no-nulls': 'error',
'better/no-reassigns': 'off',
'better/no-switches': 'off',
'better/no-this': 'off',
'better/no-typeofs': 'off',
'better/no-undefined': 'off',
'better/no-variable-declaration': 'off',
'better/no-whiles': 'error'
}
};
1 change: 1 addition & 0 deletions node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
extends: [
'./configs/basic.js',
'./configs/babel.js',
'./configs/better.js',
'./configs/async-await.js',
'./configs/dependencies.js',
'./configs/import.js',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"eslint": "4.1.0",
"eslint-plugin-async-await": "0.0.0",
"eslint-plugin-babel": "4.1.1",
"eslint-plugin-better": "0.1.5",
"eslint-plugin-dependencies": "2.4.0",
"eslint-plugin-import": "2.6.0",
"eslint-plugin-lodash": "2.4.4",
Expand Down

0 comments on commit 1718826

Please sign in to comment.