diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..ce3ddfc --- /dev/null +++ b/.eslintignore @@ -0,0 +1,30 @@ +# standart +/node_modules/** +/.next/** +/.git/** +next.config.js +.eslintrc.js + +# packages +package-lock.json +yarn.lock +less-watcher.config.json + +# markdown files +LICENSE +README.md +CONTRIBUTING.md + +# images +*.png +*.jpg +*.jpeg +*.svg +*.ico + +# styles +*.css +*.css.map +*.less + +*.woff2 diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..c3041cf --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,53 @@ +module.exports = { + "env": { + "browser": true, + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:@typescript-eslint/recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": 12, + "sourceType": "module" + }, + "plugins": [ + "react", + "@typescript-eslint" + ], + "rules": { + "indent": [ + "error", + 2 + ], + "linebreak-style": [ + "error", + "unix" + ], + "quotes": [ + "error", + "double" + ], + "semi": [ + "error", + "never" + ], + "react/prop-types": [ + "off", + 0 + ], + "@typescript-eslint/no-explicit-any": [ + "off", + 0 + ], + "@typescript-eslint/explicit-module-boundary-types": [ + "off", + 0 + ] + } +} diff --git a/components/Biography/bio-banner.tsx b/components/Biography/bio-banner.tsx index dda14ae..a57ff75 100755 --- a/components/Biography/bio-banner.tsx +++ b/components/Biography/bio-banner.tsx @@ -1,12 +1,8 @@ -import React from 'react' -import Form from '../Common/form' -import Slogan from '../Common/slogan' +import React from "react" +import Form from "../Common/form" +import Slogan from "../Common/slogan" class LongBioText extends React.Component { - constructor (props){ - super(props); - } - render(){ return (