mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
8a2f5fe789
* feat: config database view effects * chore: add tests * chore: config jest * chore: config jest windows * ci: wanrings * chore: config folder effect
60 lines
1.7 KiB
JavaScript
60 lines
1.7 KiB
JavaScript
module.exports = {
|
|
// https://eslint.org/docs/latest/use/configure/configuration-files
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
node: true,
|
|
},
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
project: 'tsconfig.json',
|
|
sourceType: 'module',
|
|
tsconfigRootDir: __dirname,
|
|
},
|
|
plugins: ['@typescript-eslint'],
|
|
rules: {
|
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
'@typescript-eslint/no-empty-function': 'error',
|
|
'@typescript-eslint/no-empty-interface': 'warn',
|
|
'@typescript-eslint/no-floating-promises': 'error',
|
|
'@typescript-eslint/await-thenable': 'error',
|
|
'@typescript-eslint/no-namespace': 'error',
|
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
'@typescript-eslint/prefer-for-of': 'warn',
|
|
'@typescript-eslint/triple-slash-reference': 'error',
|
|
'@typescript-eslint/unified-signatures': 'warn',
|
|
'no-shadow': 'off',
|
|
'@typescript-eslint/no-shadow': 'warn',
|
|
'constructor-super': 'error',
|
|
eqeqeq: ['error', 'always'],
|
|
'no-cond-assign': 'error',
|
|
'no-duplicate-case': 'error',
|
|
'no-duplicate-imports': 'error',
|
|
'no-empty': [
|
|
'error',
|
|
{
|
|
allowEmptyCatch: true,
|
|
},
|
|
],
|
|
'no-invalid-this': 'error',
|
|
'no-new-wrappers': 'error',
|
|
'no-param-reassign': 'error',
|
|
'no-redeclare': 'error',
|
|
'no-sequences': 'error',
|
|
'no-shadow': [
|
|
'error',
|
|
{
|
|
hoist: 'all',
|
|
},
|
|
],
|
|
'no-throw-literal': 'error',
|
|
'no-unsafe-finally': 'error',
|
|
'no-unused-labels': 'error',
|
|
'no-var': 'warn',
|
|
'no-void': 'off',
|
|
'prefer-const': 'warn',
|
|
},
|
|
ignorePatterns: ['src/**/*.test.ts'],
|
|
};
|