Skip to content

Commit

Permalink
fix: improved code style
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin committed Aug 13, 2023
1 parent 256aa94 commit b37231f
Show file tree
Hide file tree
Showing 300 changed files with 23,484 additions and 31,268 deletions.
56 changes: 39 additions & 17 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,42 @@
// @ts-check
const { defineConfig } = require("eslint-define-config");
const process = require('node:process')
const { defineConfig } = require('eslint-define-config')

process.env.ESLINT_TSCONFIG = 'tsconfig.json'

module.exports = defineConfig({
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
},
ignorePatterns: ["migrations", "src/generated"],
extends: ["rubiin"],
root: true,
settings: {
"import/resolver": {
typescript: {
alwaysTryTypes: true,
project: "./tsconfig.json",
},
},
},
});
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
},
ignorePatterns: ['migrations', 'src/generated'],
extends: ['@rubiin/eslint-config-typescript'],
root: true,
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
},
},
rules: {
'unicorn/prefer-module': 'off',
'unicorn/prefer-top-level-await': 'off',
'unicorn/prevent-abbreviations': [
'error',
{
ignore: [
'\\.e2e*',
'\\.spec*',
'\\.decorator*',
'\\*idx*',
],
allowList: {
ProcessEnv: true,
UUIDParam: true,
},
},
],
},
})
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

24 changes: 0 additions & 24 deletions .prettierrc

This file was deleted.

Loading

0 comments on commit b37231f

Please sign in to comment.