mcf-objects/.eslintrc.js

53 lines
888 B
JavaScript
Raw Normal View History

2020-10-05 15:34:08 +01:00
module.exports = {
2021-08-31 21:35:42 +01:00
// 'plugins': ['jest'],
2020-10-05 15:34:08 +01:00
'env': {
'commonjs': true,
'es6': true,
'node': true,
2021-08-31 21:35:42 +01:00
// 'jest/globals': true,
2020-10-05 15:34:08 +01:00
},
'extends': 'eslint:recommended',
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly',
},
'parserOptions': {
'ecmaVersion': 2018,
'sourceType': 'module',
},
'rules': {
'indent': [
'error',
2,
],
'linebreak-style': [
'error',
'unix',
],
'quotes': [
'error',
'single',
{ 'avoidEscape': true },
],
'semi': [
'error',
'never',
],
'comma-dangle': [
'error',
'always-multiline',
],
'arrow-parens': [
'error',
'as-needed',
],
'no-var': [
'error',
],
'prefer-const': ['error', {
'destructuring': 'all',
'ignoreReadBeforeAssign': true,
}],
},
2020-10-19 17:02:44 +01:00
}