30 lines
645 B
JavaScript
30 lines
645 B
JavaScript
|
|
const js = require('@eslint/js');
|
||
|
|
const globals = require('globals');
|
||
|
|
|
||
|
|
module.exports = [
|
||
|
|
js.configs.recommended,
|
||
|
|
{
|
||
|
|
languageOptions: {
|
||
|
|
ecmaVersion: 2022,
|
||
|
|
sourceType: 'commonjs',
|
||
|
|
globals: {
|
||
|
|
...globals.node,
|
||
|
|
...globals.jest,
|
||
|
|
RED: 'readonly',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
'no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||
|
|
'no-console': 'off',
|
||
|
|
'no-prototype-builtins': 'warn',
|
||
|
|
'no-constant-condition': 'warn',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
ignores: [
|
||
|
|
'node_modules/**',
|
||
|
|
'nodes/generalFunctions/src/coolprop-node/coolprop/**',
|
||
|
|
],
|
||
|
|
},
|
||
|
|
];
|