Skip to content

Commit

Permalink
(enhancement) removed pretier config for now
Browse files Browse the repository at this point in the history
  • Loading branch information
gselderslaghs committed Nov 28, 2024
1 parent a5dd7c0 commit 617c8e8
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import typescriptEslint from 'typescript-eslint';
import prettierPlugin from 'eslint-plugin-prettier';
import eslintConfigPrettier from 'eslint-config-prettier';

export default [
{
Expand All @@ -9,27 +7,17 @@ export default [
},
...typescriptEslint.configs.recommended,
{
plugins: {
prettier: prettierPlugin
},
rules: {
...prettierPlugin.configs.recommended.rules,
...eslintConfigPrettier.rules,

// TODO: to improve because the basic rules cause
// thousands of errors, for this reason, they have been marked as WARN
'prettier/prettier': 'warn',

'prefer-const': 'warn',
'prefer-const': 'error',
'prefer-rest-params': 'warn',
'no-var': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-unused-expressions': 'warn',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-this-alias': 'warn',
'@typescript-eslint/no-empty-object-type': 'warn',
'@typescript-eslint/no-require-imports': 'warn',
'@typescript-eslint/no-unsafe-function-type': 'warn'
'@typescript-eslint/no-empty-object-type': 'error',
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-unsafe-function-type': 'error'
}
}
];

0 comments on commit 617c8e8

Please sign in to comment.