Skip to content

Commit

Permalink
Merge pull request #534 from gselderslaghs/eslint-coding-standards
Browse files Browse the repository at this point in the history
Eslint coding standards
  • Loading branch information
wuda-io authored Dec 14, 2024
2 parents ecb57d3 + 617c8e8 commit 46d8e00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 128 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'
}
}
];
106 changes: 0 additions & 106 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,9 @@
"@types/node": "^20.5.2",
"archiver": "^7.0.1",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"jasmine": "^5.1.0",
"jasmine-browser-runner": "^2.5.0",
"jasmine-core": "^5.2.0",
"prettier": "^3.3.3",
"rollup": "^4.20.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.1.1",
Expand Down

0 comments on commit 46d8e00

Please sign in to comment.