Skip to content

Commit

Permalink
chore: implement eslint and prettier scripts + run lint and formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSlome committed Oct 31, 2023
1 parent 80c49b1 commit b5162fc
Show file tree
Hide file tree
Showing 50 changed files with 359 additions and 1,102 deletions.
40 changes: 0 additions & 40 deletions .eslintrc.cjs

This file was deleted.

40 changes: 40 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parser": "@babel/eslint-parser",
"env": {
"node": true,
"browser": true,
"commonjs": true,
"es2021": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"google",
"prettier"
],
"overrides": [],
"parserOptions": {
"requireConfigFile": false,
"ecmaVersion": 12,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"plugins": ["react", "prettier"],
"rules": {
"react/prop-types": "off",
"require-jsdoc": "off",
"no-async-promise-executor": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"tabWidth": 2,
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all",
"jsxSingleQuote": true,
"bracketSpacing": true,
"arrowParens": "always"
}
25 changes: 11 additions & 14 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"javascript.suggestionActions.enabled": false,
"editor.tabSize": 2,
"files.eol": "\n",
"terminal.integrated.disableLineWrapping": true,
"debug.console.wordWrap": false,
"editor.wordWrap": "off",
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"eslint.validate": [
"javascript",
"javascriptreact",
]
}
"javascript.suggestionActions.enabled": false,
"editor.tabSize": 2,
"files.eol": "\n",
"debug.console.wordWrap": false,
"editor.wordWrap": "off",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
Loading

0 comments on commit b5162fc

Please sign in to comment.