We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35832c7 commit e00a121Copy full SHA for e00a121
index.js
@@ -113,18 +113,10 @@ module.exports = {
113
}],
114
'require-jsdoc': [1],
115
'semi': [2, 'always'],
116
- 'space-before-function-paren': [2, 'always'],
117
-
118
- // Node/CommonJS
119
- 'global-require': [2],
120
- 'handle-callback-err': [1],
121
- 'no-mixed-requires': [2],
122
- 'no-new-require': [2],
123
- 'no-path-concat': [2],
+ 'space-before-function-paren': [2, 'always']
124
},
125
env: {
126
- browser: true,
127
- node: true
+ commonjs: true
128
129
extends: ['eslint:recommended']
130
};
node.js
@@ -0,0 +1,10 @@
1
+module.exports = {
2
+ rules: {
3
+ // Node/CommonJS
4
+ 'global-require': [2],
5
+ 'handle-callback-err': [1],
6
+ 'no-mixed-requires': [2],
7
+ 'no-new-require': [2],
8
+ 'no-path-concat': [2]
9
+ }
10
+};
0 commit comments