ssg/.eslintrc.js
2025-04-05 17:05:06 +11:00

30 lines
654 B
JavaScript

module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: ['prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
project: './tsconfig.json',
},
plugins: [
'@typescript-eslint/eslint-plugin',
'prettier',
],
rules: {
camelcase: 'error',
'@typescript-eslint/return-await': 'off',
'@typescript-eslint/camelcase': 'off',
'no-param-reassign': ['error', { props: false }],
'no-underscore-dangle': ['error', { allow: ['_id'] }],
},
reportUnusedDisableDirectives: true,
};