kindagoose
/
.eslintrc.js
50 строк · 1.6 Кб
1module.exports = {2parser: '@typescript-eslint/parser',3parserOptions: {4project: 'tsconfig.json',5tsconfigRootDir: __dirname,6sourceType: 'module',7ecmaVersion: 'latest',8ecmaFeatures: {9jsx: false10}11},12plugins: ['@typescript-eslint/eslint-plugin', 'simple-import-sort', 'sonarjs', 'import', 'unicorn', 'prettier'],13extends: [14'plugin:@typescript-eslint/recommended',15'plugin:sonarjs/recommended',16'plugin:security/recommended',17'plugin:unicorn/recommended'18],19root: true,20env: {21node: true,22jest: true23},24ignorePatterns: ['.eslintrc.js', 'dist'],25rules: {26'@typescript-eslint/interface-name-prefix': 'off',27'@typescript-eslint/explicit-function-return-type': 'off',28'@typescript-eslint/explicit-module-boundary-types': 'off',29'@typescript-eslint/no-explicit-any': 'off',30'@typescript-eslint/no-empty-function': 'off',31'simple-import-sort/imports': 'error',32'simple-import-sort/exports': 'error',33'import/first': 'error',34'import/newline-after-import': 'error',35'import/no-duplicates': 'error',36'prettier/prettier': ['error', {37'parser': 'typescript',38'singleQuote': true,39'tabWidth': 4,40'tabs': false,41'semicolons': true,42'arrowParens': 'avoid',43'trailingComma': 'all'44}],45'unicorn/prevent-abbreviations': 'off',46'unicorn/filename-case': 'off',47'unicorn/no-null': 'off',48'unicorn/prefer-module': 'off',49}50};51