Skip to content

Commit

Permalink
eslint(config): add new config
Browse files Browse the repository at this point in the history
Signed-off-by: TRACTION <[email protected]>
  • Loading branch information
iamtraction committed Sep 28, 2024
1 parent 2b9f227 commit b427194
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config({
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
sourceType: "module",
},
files: [ "src/**/*.ts" ],
rules: {
indent: [ "warn", 4 ],
"linebreak-style": [ "warn", "unix" ],
quotes: [ "warn", "double" ],
semi: [ "warn", "always" ],
"@typescript-eslint/no-namespace": "off",
},
});

0 comments on commit b427194

Please sign in to comment.