Skip to content

Commit 2817bca

Browse files
.
1 parent ef36bb4 commit 2817bca

7 files changed

+116
-2
lines changed

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
},
6+
extends: ['airbnb', 'prettier', 'plugin:prettier/recommended'],
7+
plugins: ['import', 'prettier'],
8+
parser: 'babel-eslint',
9+
parserOptions: {
10+
ecmaVersion: 12,
11+
sourceType: 'module',
12+
},
13+
rules: {},
14+
};

.htmlhintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"alt-require": true,
3+
"attr-lowercase": true,
4+
"attr-no-duplication": true,
5+
"attr-unsafe-chars": true,
6+
"attr-value-double-quotes": true,
7+
"attr-value-not-empty": false,
8+
"doctype-first": false,
9+
"doctype-html5": true,
10+
"href-abs-or-rel": false,
11+
"id-class-ad-disabled": false,
12+
"id-class-value": "dash",
13+
"id-unique": true,
14+
"inline-script-disabled": false,
15+
"inline-style-disabled": false,
16+
"space-tab-mixed-disabled": "space",
17+
"spec-char-escape": true,
18+
"src-not-empty": true,
19+
"style-disabled": false,
20+
"tag-pair": true,
21+
"tag-self-close": false,
22+
"tagname-lowercase": true,
23+
"title-require": true
24+
}

.markdownlint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"first-line-heading": false,
3+
"line-length": false,
4+
"no-inline-html": false
5+
}

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 140,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"singleQuote": true,
6+
"semi": true,
7+
"trailingComma": "all"
8+
}

.vscode/extensions.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"editorconfig.editorconfig",
5+
"esbenp.prettier-vscode",
6+
"flowtype.flow-for-vscode",
7+
"mkaufman.htmlhint",
8+
"stylelint.vscode-stylelint",
9+
"christian-kohler.path-intellisense",
10+
"msjsdiag.debugger-for-chrome"
11+
]
12+
}

.vscode/settings.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"editor.formatOnPaste": false,
3+
"editor.formatOnSave": true,
4+
"editor.formatOnType": false,
5+
"editor.detectIndentation": false,
6+
"editor.insertSpaces": false,
7+
"editor.useTabStops": false,
8+
"files.trimFinalNewlines": true,
9+
"files.trimTrailingWhitespace": true,
10+
"files.associations": {
11+
".*intrc": "json"
12+
},
13+
"css.validate": false,
14+
"json.format.enable": true,
15+
"less.validate": false,
16+
"javascript.validate.enable": false,
17+
"scss.validate": false,
18+
"stylelint.enable": true,
19+
"htmlhint.documentSelector": [
20+
"html"
21+
],
22+
"[html]": {
23+
"editor.defaultFormatter": "esbenp.prettier-vscode"
24+
},
25+
"[json]": {
26+
"editor.defaultFormatter": "esbenp.prettier-vscode"
27+
},
28+
"[markdown]": {
29+
"editor.acceptSuggestionOnEnter": "off"
30+
},
31+
"[scss]": {
32+
"editor.defaultFormatter": "esbenp.prettier-vscode",
33+
"editor.codeActionsOnSave": {
34+
"source.fixAll.stylelint": true
35+
}
36+
}
37+
}

package.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,24 @@
55
"scripts": {
66
"test": "npm run watch -- --colors --collect-coverage",
77
"watch": "npx jest --watch",
8-
"debug": "node --inspect-brk --inspect ./node_modules/jest/bin/jest -i"
8+
"debug": "node --inspect-brk --inspect ./node_modules/jest/bin/jest -i",
9+
"lint": "npx eslint \"src/**\"",
10+
"project:clean": "rm -rf dist",
11+
"project:reset": "rm -rf node_modules"
912
},
1013
"dependencies": {
11-
"jest": "^26.6.3"
14+
"eslint": "^7.18.0",
15+
"eslint-config-airbnb": "^18.2.0",
16+
"eslint-config-airbnb-base": "^14.2.1",
17+
"eslint-config-prettier": "^7.2.0",
18+
"eslint-plugin-import": "^2.22.1",
19+
"eslint-plugin-jsx-a11y": "^6.4.1",
20+
"eslint-plugin-prettier": "^3.3.1",
21+
"eslint-plugin-react": "^7.22.0",
22+
"eslint-plugin-react-hooks": "^4.2.0",
23+
"jest": "^26.6.3",
24+
"prettier": "^2.2.1",
25+
"prettier-eslint": "^11.0.0"
1226
},
1327
"type": "module",
1428
"jest": {

0 commit comments

Comments
 (0)