Skip to content

Commit

Permalink
Fix linting and Sass imports (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
jguevarra authored Nov 29, 2024
1 parent da7023c commit 4c07967
Show file tree
Hide file tree
Showing 41 changed files with 16,984 additions and 5,227 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules/
public/
build/
src/serviceWorker.js
51 changes: 20 additions & 31 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"ignorePatterns": [
"vite.config.mjs"
"ignorePatterns": ["vite.config.mjs"],
"extends": [
// "react-app",
"react-app/jest",
// "plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
// "plugin:react-hooks/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2020,
Expand All @@ -9,36 +16,18 @@
"jsx": true
}
},
"plugins": [
"react"
],
"plugins": ["react"],
"rules": {
"semi": "warn",
"arrow-body-style": ["warn", "as-needed"],
"arrow-parens": ["warn", "always"],
"jsx-quotes": ["warn", "prefer-single"],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-extra-semi": "warn",
"no-unused-vars": "warn",
// "no-unused-vars": "warn",
"no-use-before-define": 2,
"quotes": [
"warn",
"single",
{
"avoidEscape": true
}
],
"jsx-quotes": [
"warn",
"prefer-single"
],
"arrow-body-style": [
"warn",
"as-needed"
],
"indent": [
"warn",
2,
{
"VariableDeclarator": "first",
"SwitchCase": 1
}
]
"quotes": ["warn", "single", { "avoidEscape": true }],
"react/react-in-jsx-scope": 0,
// "react-hooks/exhaustive-deps": 2,
"semi": "warn"
}
}
}
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"jsxSingleQuote": true,
"printWidth": 120,
"quoteProps": "as-needed",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}
Loading

0 comments on commit 4c07967

Please sign in to comment.