speckle-server/.eslintrc.js

34 строки
580 B
JavaScript

/** @type {import("eslint").Linter.Config} */
const config = {
root: true,
env: {
es2021: true,
node: true,
commonjs: true
},
extends: ['eslint:recommended', 'prettier'],
rules: {
camelcase: [
1,
{
properties: 'always'
}
],
'no-var': 'error',
'no-alert': 'error',
eqeqeq: 'error',
'prefer-const': 'warn',
'object-shorthand': 'warn'
},
ignorePatterns: [
'node_modules',
'dist',
'public',
'events.json',
'.*.{ts,js,vue,tsx,jsx}',
'generated/**/*'
]
}
module.exports = config