2021-07-21 10:35:14 -07:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
'env': {
|
|
|
|
'jest/globals': true,
|
|
|
|
'es6': true,
|
|
|
|
'node': true,
|
|
|
|
},
|
|
|
|
'extends': ['eslint:recommended', 'google', 'plugin:jest/recommended', 'plugin:jest/style'],
|
|
|
|
'parserOptions': {
|
|
|
|
'ecmaVersion': 2018,
|
|
|
|
'sourceType': 'module',
|
|
|
|
},
|
|
|
|
'rules': {
|
|
|
|
'require-jsdoc': 'off',
|
|
|
|
'indent': ['error', 4],
|
|
|
|
'max-len': ['error', {'code': 120}],
|
|
|
|
'no-prototype-builtins': 'off',
|
|
|
|
},
|
|
|
|
'plugins': [
|
|
|
|
'jest',
|
|
|
|
],
|
|
|
|
'overrides': [{
|
|
|
|
files: ['*.ts'],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ['@typescript-eslint'],
|
|
|
|
extends: ['plugin:@typescript-eslint/recommended'],
|
|
|
|
parserOptions: {
|
|
|
|
project: './tsconfig.json',
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/await-thenable': 'error',
|
2021-09-01 11:39:17 -07:00
|
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
2021-07-21 10:35:14 -07:00
|
|
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
|
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
|
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
|
|
'@typescript-eslint/semi': ['error'],
|
|
|
|
'array-bracket-spacing': ['error', 'never'],
|
|
|
|
'indent': ['error', 4],
|
|
|
|
'max-len': ['error', {'code': 120}],
|
|
|
|
'no-return-await': 'error',
|
|
|
|
'object-curly-spacing': ['error', 'never'],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
};
|