diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +node_modules diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..8067077 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,34 @@ +{ + "root": true, + "env": { + "browser": true, + "commonjs": true, + "es6": true, + "node": true, + "jest": true + }, + "parser": "@typescript-eslint/parser", + "extends": [ + "prettier", + "plugin:@typescript-eslint/recommended", + "plugin:react/recommended", + "plugin:react-hooks/recommended" + ], + "parserOptions": { + "ecmaFeatures": { + "experimentalObjectRestSpread": true, + "jsx": true + }, + "sourceType": "module" + }, + "settings": { + "react": { + "version": "16.8" + } + }, + "plugins": ["react", "babel", "@typescript-eslint/eslint-plugin"], + "rules": { + "react/display-name": 0, + "react/prop-types": 0 + } +} diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..e24ff61 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,6 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npm run pre-commit +npm run pre-commit +npm run pre-commit diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..8e3a54d --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "semi": true, + "singleQuote": true, + "jsxSingleQuote": false, + "useTabs": false, + "tabWidth": 2 +} diff --git a/.stylelintignore b/.stylelintignore new file mode 100644 index 0000000..ec719bc --- /dev/null +++ b/.stylelintignore @@ -0,0 +1,4 @@ +**/*.ts +**/*.tsx +**/*.jsx +**/*.js diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 0000000..c09537c --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,17 @@ +{ + "extends": ["stylelint-config-standard", "stylelint-config-prettier"], + "customSyntax": "postcss-less", + "rules": { + "selector-class-pattern": null, + "no-descending-specificity": null, + "no-duplicate-selectors": null, + "color-function-notation": null, + "font-family-no-missing-generic-family-keyword": null, + "selector-pseudo-class-no-unknown": [ + true, + { + "ignorePseudoClasses": ["global"] + } + ] + } +}