From 5431021bce9c9363d888bc9d33901a521ec95291 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 3 Sep 2023 18:26:51 +0300 Subject: [PATCH] init --- .eslintrc.js | 30 ++++++++++++++++++++++++++++++ .prettierrc | 5 +++++ package.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 .eslintrc.js create mode 100644 .prettierrc create mode 100644 package.json diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..d143192 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,30 @@ +module.exports = { + env: { + browser: true, + es2021: true, + }, + extends: ['airbnb', 'prettier'], + plugins: ['prettier'], + overrides: [ + { + env: { + node: true, + }, + files: ['.eslintrc.{js,cjs}'], + parserOptions: { + sourceType: 'script', + }, + }, + ], + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + }, + rules: { + 'prettier/prettier': 'error', + 'react/jsx-props-no-spreading': 'off', + 'react/prop-types': 'off', + 'no-unused-vars': 'warn', + 'consistent-return': 'warn', + }, +}; diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..e65fc15 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "tabWidth": 2, + "singleQuote": true, + "printWidth": 60 +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..f5b4fcc --- /dev/null +++ b/package.json @@ -0,0 +1,45 @@ +{ + "name": "quarkly-dev-env-template", + "version": "1.0.0", + "description": "", + "keywords": [], + "license": "ISC", + "dependencies": {}, + "devDependencies": { + "eslint": "^8.45.0", + "eslint-config-airbnb": "^19.0.4", + "eslint-config-prettier": "^4.3.0", + "eslint-plugin-import": "^2.27.5", + "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-react": "^7.33.0", + "eslint-plugin-react-hooks": "^4.6.0" + }, + "_baseDependencies": { + "gatsby": "^3.13.1", + "gatsby-image": "^3.11.0", + "gatsby-plugin-manifest": "^3.13.0", + "gatsby-plugin-offline": "^4.13.0", + "gatsby-plugin-react-helmet": "^4.13.0", + "gatsby-plugin-sharp": "^3.13.0", + "gatsby-plugin-resolve-src": "^2.1.0", + "gatsby-plugin-meta-redirect": "^1.1.1", + "gatsby-source-filesystem": "^3.13.0", + "gatsby-transformer-sharp": "^3.13.0", + "gatsby-plugin-styled-components": "^4.13.0", + "babel-plugin-styled-components": "^1.10.7", + "react-helmet": "^6.1.0", + "@gatsbyjs/reach-router": "^1.3.6", + "gatsby-react-router-scroll": "^4.13.0", + "gatsby-plugin-sitemap": "^4.1.0", + "react": "^17.0.2", + "react-dom": "^17.0.2", + "@quarkly/widgets": "0.2.75", + "@quarkly/components": "0.2.75", + "@quarkly/atomize": "1.0.20", + "styled-components": "^5.0.1", + "react-router-dom": "^5.1.2", + "react-router-hash-link": "^1.2.2", + "react-icons": "^3.9.0" + } +}