mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00

* feat: Add file resource store * test: Write some tests for FileResourceStore * fix: Reformat code and fix various small things from reviews * fix: Change constants to just be the corresponding URL * fix: Remove extra unnecessary wrap in a Promise * fix: Write some more tests and fix related bugs * fix: Use old way to import fs promises to support older Node versions * refactor: Refactor code and tests * refactor: Refactor and better document code * fix: Change comparison with undefined by typeof check * fix: Invert typeof check
29 lines
1.0 KiB
JavaScript
29 lines
1.0 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname, // this is the reason this is a .js file
|
|
project: ['./tsconfig.json'],
|
|
},
|
|
plugins: [
|
|
'eslint-plugin-tsdoc',
|
|
],
|
|
extends: [
|
|
'es/node',
|
|
],
|
|
rules: {
|
|
'@typescript-eslint/no-empty-interface': 'off',
|
|
'@typescript-eslint/no-unnecessary-condition': 'off', // problems with optional parameters
|
|
'@typescript-eslint/space-before-function-paren': [ 'error', 'never' ],
|
|
'class-methods-use-this': 'off', // conflicts with functions from interfaces that sometimes don't require `this`
|
|
'comma-dangle': ['error', 'always-multiline'],
|
|
'dot-location': ['error', 'property'],
|
|
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
|
|
'max-len': ['error', { code: 120, ignoreUrls: true }],
|
|
'no-underscore-dangle': 'off', // conflicts with external libraries
|
|
'padding-line-between-statements': 'off',
|
|
'tsdoc/syntax': 'error',
|
|
'prefer-named-capture-group': 'off',
|
|
},
|
|
};
|