Skip to content

Commit

Permalink
Add eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
sysless authored Oct 30, 2024
1 parent 96344b0 commit a4e875f
Show file tree
Hide file tree
Showing 6 changed files with 862 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
singleQuote: true,
trailingComma: 'all',
};
18 changes: 18 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettierConfig from 'eslint-config-prettier';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
prettierConfig,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
);
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "eslint-config-sysless",
"version": "1.0.0",
"main": "index.js",
"repository": "https://github.com/sysless/dotfiles",
"author": "Arthur Lorotte de Banes <arthur@sysless.com>",
"license": "MIT",
"dependencies": {
"@eslint/js": "^9.13.0",
"@types/eslint__js": "^8.42.3",
"eslint": "^9.13.0",
"eslint-config-prettier": "^9.1.0",
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"typescript-eslint": "^8.12.2"
}
}
Loading

0 comments on commit a4e875f

Please sign in to comment.