Skip to content

Commit 51267f3

Browse files
authored
Created Rating summary component (#1)
1 parent 44c210f commit 51267f3

22 files changed

+31028
-39
lines changed

.eslintrc

+23-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
2-
"ignorePatterns": ["**/*.d.ts", "node_modules/", "src/stories", "src/tests", "webpack.config.js"],
2+
"ignorePatterns": [
3+
"**/*.d.ts",
4+
"node_modules/",
5+
"src/stories",
6+
"src/tests",
7+
"webpack.config.js"
8+
],
39
"extends": [
410
"eslint:recommended",
511
"plugin:@typescript-eslint/recommended",
@@ -13,27 +19,31 @@
1319
},
1420
"project": "./tsconfig.json"
1521
},
16-
"plugins": [
17-
"@typescript-eslint",
18-
"react",
19-
"react-hooks"
20-
],
22+
"plugins": ["@typescript-eslint", "react", "react-hooks"],
2123
"rules": {
2224
"no-console": "warn",
2325
"@typescript-eslint/explicit-function-return-type": "error",
2426
"react/prop-types": "warn",
2527
"indent": ["error", 2],
2628
"arrow-body-style": ["error", "as-needed"],
27-
"no-trailing-spaces":"error",
28-
"comma-dangle":"error",
29-
"default-case":"error",
29+
"no-trailing-spaces": "error",
30+
"comma-dangle": "error",
31+
"default-case": "error",
3032
"block-spacing": "error",
31-
"max-len":["warn", 150],
32-
"space-before-blocks":"error"
33+
"max-len": ["warn", 150],
34+
"space-before-blocks": "error"
3335
},
3436
"settings": {
3537
"react": {
3638
"version": "^18.0.2"
3739
}
38-
}
39-
}
40+
},
41+
"overrides": [
42+
{
43+
"files": ["*.ts", "*.tsx"],
44+
"rules": {
45+
"indent": ["error", 2, { "SwitchCase": 1 }]
46+
}
47+
}
48+
]
49+
}

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.md
2+
*.json
3+
*.svg
4+
*.png
5+
*.jpg
6+
.eslinrc

.prettierrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "none",
4+
"singleQuote": true,
5+
"printWidth": 80,
6+
"tabWidth": 2
7+
}

.storybook/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ module.exports = {
1414
"builder": "@storybook/builder-webpack5"
1515
},
1616
"webpackFinal": async (config) => {
17-
config.module.rules.push({
18-
rules: [{
17+
config.module.rules.push({
18+
rules: [{
1919
test: /\.scss$/,
2020
use: ['style-loader', 'css-loader', 'sass-loader'],
2121
include: path.resolve(__dirname, '../')

0 commit comments

Comments
 (0)