Skip to content

Commit

Permalink
add xo
Browse files Browse the repository at this point in the history
  • Loading branch information
codyzu committed May 8, 2023
1 parent e1cef7c commit 4831fe7
Show file tree
Hide file tree
Showing 10 changed files with 2,236 additions and 127 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
28 changes: 28 additions & 0 deletions .xo-config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
prettier: true,
space: true,
overrides: [
{
files: "**/*.tsx",
// envs: ['es2021', 'browser'],
rules: {
// "react/react-in-jsx-scope": "off",
"unicorn/filename-case": [
"error",
{
case: "pascalCase",
},
],
"n/file-extension-in-import": "off",
"import/extensions": "off",
},
},
{
files: "**/*.ts",
rules: {
"import/extensions": "off",
"n/file-extension-in-import": "off",
},
},
],
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"eslint-plugin-react-refresh": "^0.3.4",
"typescript": "^5.0.2",
"unocss": "^0.51.12",
"vite": "^4.3.2"
"vite": "^4.3.2",
"xo": "^0.54.2"
}
}
Loading

0 comments on commit 4831fe7

Please sign in to comment.