mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
35 lines
942 B
JavaScript
35 lines
942 B
JavaScript
module.exports = {
|
|
'root': true,
|
|
'parser': '@typescript-eslint/parser',
|
|
'parserOptions': {
|
|
'tsconfigRootDir': __dirname,
|
|
'project': ['./tsconfig.json'],
|
|
},
|
|
'plugins': [
|
|
'@typescript-eslint',
|
|
],
|
|
'extends': [
|
|
'standard',
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking'
|
|
],
|
|
'env': {
|
|
'node': true
|
|
},
|
|
'rules': {
|
|
// at some point all of these should return to their default "error" state
|
|
// but right now, this is not a good choice, because too many places are
|
|
// wrong.
|
|
'import/first': ['warn'],
|
|
'indent': ['warn'],
|
|
'no-console': ['warn'],
|
|
'no-multiple-empty-lines': ['warn'],
|
|
'no-multi-spaces': ['warn'],
|
|
'object-curly-spacing': ['warn'],
|
|
'one-var': ['warn'],
|
|
'quotes': ['warn'],
|
|
'space-infix-ops': ['warn']
|
|
}
|
|
}
|