Skip to content

Commit

Permalink
2.3.2: Disable global-require
Browse files Browse the repository at this point in the history
  • Loading branch information
foray1010 committed Apr 27, 2016
1 parent be1bf10 commit 343d025
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
9 changes: 1 addition & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ module.exports = extendConfig({
+ Strict Mode +
++++++++++++++*/
// http://eslint.org/docs/rules/strict
strict: [2, 'global'],

/*+++++++++++++++++++++++
+ Node.js and CommonJS +
+++++++++++++++++++++++*/
// backend code needs more dynamic structure
// http://eslint.org/docs/rules/global-require
'global-require': 0
strict: [2, 'global']
}
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-config-aftership",
"description": "AfterShip ESLint config (modified from Airbnb)",
"version": "2.3.1",
"version": "2.3.2",
"homepage": "https://github.com/AfterShip/eslint-config-aftership",
"author": {
"name": "AfterShip",
Expand Down
8 changes: 8 additions & 0 deletions rules/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ module.exports = {
// http://eslint.org/docs/rules/no-use-before-define
'no-use-before-define': 0,

/*+++++++++++++++++++++++
+ Node.js and CommonJS +
+++++++++++++++++++++++*/
// backend code needs more dynamic structure
// frontend need to use require.ensure which need to require inside a function
// http://eslint.org/docs/rules/global-require
'global-require': 0,

/*+++++++++++++++++++
+ Stylistic Issues +
+++++++++++++++++++*/
Expand Down

0 comments on commit 343d025

Please sign in to comment.