Skip to content

Commit

Permalink
maint(#48): Installed and created files for lint/prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron-Porter committed Aug 2, 2022
1 parent 46b72c5 commit a2b5a3d
Show file tree
Hide file tree
Showing 6 changed files with 18,388 additions and 69 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/src/assets
**/node_modules/*
82 changes: 82 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
module.exports = {
parser: "@babel/eslint-parser",
extends: [
"eslint:recommended",
"plugin:prettier/recommended",
"next/core-web-vitals",
"plugin:storybook/recommended",
],
parserOptions: {
requireConfigFile: false,
ecmaFeatures: {
jsx: true,
},
babelOptions: {
presets: ["@babel/preset-react"],
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["prettier", "react-hooks"],
env: {
browser: true,
es6: true,
jest: true,
node: true,
},
settings: {
react: {
version: "detect",
},
},
rules: {
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"no-useless-catch": "off",
"no-undef": "off",
"no-debugger": "off",
eqeqeq: ["error", "always"],
"getter-return": [
"error",
{
allowImplicit: true,
},
],
"no-template-curly-in-string": "error",
semi: "off",
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": [
"error",
"1tbs",
{
allowSingleLine: true,
},
],
camelcase: "warn",
"comma-dangle": "off",
"comma-spacing": [
"error",
{
before: false,
after: true,
},
],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"func-call-spacing": ["error", "never"],
"keyword-spacing": [
"error",
{
before: true,
after: true,
},
],
"no-duplicate-imports": "error",
"id-length": "off",
"id-blacklist": 0,
"max-depth": ["warn", 4],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
},
};
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
public
src/assets
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5",
"semi": false,
"arrowParens": "avoid"
}
Loading

0 comments on commit a2b5a3d

Please sign in to comment.