Skip to content

Commit

Permalink
Add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwennR committed Feb 13, 2024
1 parent 609361d commit 188d929
Show file tree
Hide file tree
Showing 9 changed files with 31,661 additions and 30,422 deletions.
34 changes: 34 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"ecmaFeatures": { "jsx": true },
"sourceType": "module"
},
"parser": "@babel/eslint-parser",
"plugins": ["react"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"eqeqeq": "error",
"no-unreachable": "error",
"no-duplicate-imports": "error",
"no-multiple-empty-lines": "warn",
"indent": ["warn", 4],
"quotes": ["warn", "double"],
"newline-before-return": "warn",
"padding-line-between-statements": [
"warn",
{ "blankLine": "always", "prev": "*", "next": "export" }
]
},
"ignorePatterns": ["node_modules", "build", "dist", "public"]
}
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": false
}
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@babel/preset-typescript", "@babel/preset-env"],
};
Loading

0 comments on commit 188d929

Please sign in to comment.