Skip to content

Commit

Permalink
Update prettier rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sysless authored Oct 30, 2024
1 parent f02c08e commit 29221d7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .prettierrc.js

This file was deleted.

6 changes: 6 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import config from './index.js';

export default [
...config,

]
18 changes: 17 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,25 @@ export default tseslint.config(
{
languageOptions: {
parserOptions: {
projectService: true,
projectService: {
allowDefaultProject: ['*.js', '*.mjs'],
},
tsconfigRootDir: import.meta.dirname,
},
},
},
{
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'all',
},
{
usePrettierrc: false,
},
],
},
},
);
9 changes: 9 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"esModuleInterop": true,
"strictNullChecks": true
},
"include": [
"**/*"
],
}

0 comments on commit 29221d7

Please sign in to comment.