mirror of
https://github.com/scratchfoundation/eslint-config-scratch.git
synced 2025-08-28 22:40:13 -04:00
We don't want to include Node-specific rules for the base configuration. This allows projects to lint Node files separately from browser files.
10 lines
228 B
JavaScript
10 lines
228 B
JavaScript
module.exports = {
|
|
rules: {
|
|
// Node/CommonJS
|
|
'global-require': [2],
|
|
'handle-callback-err': [1],
|
|
'no-mixed-requires': [2],
|
|
'no-new-require': [2],
|
|
'no-path-concat': [2]
|
|
}
|
|
};
|