Skip to content

Commit b5162fc

Browse files
committed
chore: implement eslint and prettier scripts + run lint and formatter
1 parent 80c49b1 commit b5162fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+359
-1102
lines changed

.eslintrc.cjs

-40
This file was deleted.

.eslintrc.json

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parser": "@babel/eslint-parser",
3+
"env": {
4+
"node": true,
5+
"browser": true,
6+
"commonjs": true,
7+
"es2021": true,
8+
"mocha": true
9+
},
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:react/recommended",
13+
"google",
14+
"prettier"
15+
],
16+
"overrides": [],
17+
"parserOptions": {
18+
"requireConfigFile": false,
19+
"ecmaVersion": 12,
20+
"sourceType": "module",
21+
"ecmaFeatures": {
22+
"jsx": true,
23+
"modules": true
24+
},
25+
"babelOptions": {
26+
"presets": ["@babel/preset-react"]
27+
}
28+
},
29+
"plugins": ["react", "prettier"],
30+
"rules": {
31+
"react/prop-types": "off",
32+
"require-jsdoc": "off",
33+
"no-async-promise-executor": "off"
34+
},
35+
"settings": {
36+
"react": {
37+
"version": "detect"
38+
}
39+
}
40+
}

.prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"semi": true,
3+
"tabWidth": 2,
4+
"printWidth": 100,
5+
"singleQuote": true,
6+
"trailingComma": "all",
7+
"jsxSingleQuote": true,
8+
"bracketSpacing": true,
9+
"arrowParens": "always"
10+
}

.vscode/settings.json

+11-14
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
2-
"javascript.suggestionActions.enabled": false,
3-
"editor.tabSize": 2,
4-
"files.eol": "\n",
5-
"terminal.integrated.disableLineWrapping": true,
6-
"debug.console.wordWrap": false,
7-
"editor.wordWrap": "off",
8-
"editor.codeActionsOnSave": {
9-
"source.fixAll": true
10-
},
11-
"eslint.validate": [
12-
"javascript",
13-
"javascriptreact",
14-
]
15-
}
2+
"javascript.suggestionActions.enabled": false,
3+
"editor.tabSize": 2,
4+
"files.eol": "\n",
5+
"debug.console.wordWrap": false,
6+
"editor.wordWrap": "off",
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll.eslint": true
9+
},
10+
"editor.defaultFormatter": "esbenp.prettier-vscode",
11+
"editor.formatOnSave": true
12+
}

0 commit comments

Comments
 (0)