31 lines
737 B
JavaScript
31 lines
737 B
JavaScript
module.exports = {
|
|
extends: [
|
|
'./rules/best-practices',
|
|
'./rules/errors',
|
|
'./rules/node',
|
|
'./rules/style',
|
|
'./rules/variables'
|
|
].map(require.resolve),
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
amd: false,
|
|
mocha: false,
|
|
jasmine: false
|
|
},
|
|
rules: {
|
|
'comma-dangle': ['error', 'never'],
|
|
'prefer-numeric-literals': 'off',
|
|
'no-restricted-properties': ['error', {
|
|
object: 'arguments',
|
|
property: 'callee',
|
|
message: 'arguments.callee is deprecated',
|
|
}, {
|
|
property: '__defineGetter__',
|
|
message: 'Please use Object.defineProperty instead.',
|
|
}, {
|
|
property: '__defineSetter__',
|
|
message: 'Please use Object.defineProperty instead.',
|
|
}],
|
|
}
|
|
};
|