Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2015
},
env: {
browser: false,
node: true
},
plugins: ['node'],
rules: Object.assign(
{},
require('eslint-plugin-node').configs.recommended.rules,
fromPairs(
Object.keys(
require('eslint-plugin-ember').configs.recommended.rules
).map(k => [k, 'off'])
),
{
// add your custom rules and overrides for node files here
}
)
}
]
};
{
files: ['vendor/**/*.js'],
parserOptions: {
ecmaVersion: 5,
sourceType: 'script'
},
env: {
amd: true
},
globals: {
Ember: 'readonly'
},
rules: Object.keys({
...require('eslint-config-sane').rules,
...require('eslint-plugin-ember').configs.recommended.rules
}).reduce((rules, rule) => {
rules[rule] = 0;
return rules;
}, {})
}
]
};