mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
Use default NestJS lint config
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
e53a8648b4
commit
68f63f0a24
2 changed files with 23 additions and 32 deletions
51
.eslintrc.js
51
.eslintrc.js
|
@ -1,39 +1,26 @@
|
|||
module.exports = {
|
||||
'root': true,
|
||||
'parser': '@typescript-eslint/parser',
|
||||
'parserOptions': {
|
||||
'tsconfigRootDir': __dirname,
|
||||
'project': ['./tsconfig.json'],
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
project: 'tsconfig.json',
|
||||
sourceType: 'module',
|
||||
},
|
||||
'plugins': [
|
||||
'@typescript-eslint',
|
||||
],
|
||||
'extends': [
|
||||
'standard',
|
||||
'eslint:recommended',
|
||||
plugins: ['@typescript-eslint/eslint-plugin'],
|
||||
extends: [
|
||||
'plugin:@typescript-eslint/eslint-recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
||||
'plugin:import/recommended',
|
||||
'plugin:import/typescript'
|
||||
'prettier',
|
||||
'prettier/@typescript-eslint',
|
||||
],
|
||||
'env': {
|
||||
'node': true
|
||||
root: true,
|
||||
env: {
|
||||
node: true,
|
||||
jest: 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'],
|
||||
'import/no-default-export': ['error'],
|
||||
rules: {
|
||||
'@typescript-eslint/interface-name-prefix': 'off',
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { "argsIgnorePattern": "^_+$" }],
|
||||
}
|
||||
}
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
},
|
||||
};
|
||||
|
|
4
.prettierrc
Normal file
4
.prettierrc
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all"
|
||||
}
|
Loading…
Reference in a new issue