mirror of
https://github.com/meienberger/runtipi.git
synced 2024-08-16 23:50:34 +03:00
60 lines
1.3 KiB
JavaScript
60 lines
1.3 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
plugins: ['@typescript-eslint', 'import'],
|
|
extends: ['plugin:@typescript-eslint/recommended', 'plugin:import/recommended', 'plugin:import/typescript', 'prettier'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
project: './tsconfig.json',
|
|
tsconfigRootDir: __dirname,
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-floating-promises': 1,
|
|
'import/prefer-default-export': 0,
|
|
'class-methods-use-this': 0,
|
|
'import/extensions': [
|
|
'error',
|
|
'ignorePackages',
|
|
{
|
|
'': 'never',
|
|
js: 'never',
|
|
jsx: 'never',
|
|
ts: 'never',
|
|
tsx: 'never',
|
|
},
|
|
],
|
|
'import/no-extraneous-dependencies': [
|
|
'error',
|
|
{
|
|
devDependencies: [
|
|
'build.js',
|
|
'**/*.test.{ts,tsx}',
|
|
'**/mocks/**',
|
|
'**/__mocks__/**',
|
|
'**/*.setup.{ts,js}',
|
|
'**/*.config.{ts,js}',
|
|
'**/tests/**',
|
|
],
|
|
},
|
|
],
|
|
'arrow-body-style': 0,
|
|
'no-underscore-dangle': 0,
|
|
'no-console': 0,
|
|
'import/no-cycle': 2,
|
|
},
|
|
settings: {
|
|
'import/parsers': {
|
|
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
|
},
|
|
'import/resolver': {
|
|
typescript: {
|
|
alwaysTryTypes: true,
|
|
},
|
|
},
|
|
},
|
|
globals: {
|
|
NodeJS: true,
|
|
},
|
|
};
|