Code Monkey home page Code Monkey logo

eslint-config-erb's Introduction


Electron React Boilerplate uses Electron, React, React Router, Webpack and React Fast Refresh.


Build Status Github Tag Discord

OpenCollective OpenCollective StackOverflow

Install

Clone the repo and install dependencies:

git clone --depth 1 --branch main https://github.com/electron-react-boilerplate/electron-react-boilerplate.git your-project-name
cd your-project-name
npm install

Having issues installing? See our debugging guide

Starting Development

Start the app in the dev environment:

npm start

Packaging for Production

To package apps for the local platform:

npm run package

Docs

See our docs and guides here

Community

Join our Discord: https://discord.gg/Fjy3vfgy5q

Sponsors

Donations

Donations will ensure the following:

  • ๐Ÿ”จ Long term maintenance of the project
  • ๐Ÿ›ฃ Progress on the roadmap
  • ๐Ÿ› Quick responses to bug reports and help requests

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

Maintainers

License

MIT ยฉ Electron React Boilerplate

eslint-config-erb's People

Contributors

amilajack avatar renovate-bot avatar vikr01 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

eslint-config-erb's Issues

eslint config "airbnb/hooks" not valid with eslint version:8.33.0

got this error after upgrade eslint to 8.33.0,please check if there's error in index.js

 'airbnb/hooks',
    ^^^^^^^^^^^^^^

SyntaxError: Unexpected string
    at internalCompileFunction (node:internal/vm:74:18)
    at wrapSafe (node:internal/modules/cjs/loader:1141:20)
    at Module._compile (node:internal/modules/cjs/loader:1182:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Module._load (node:internal/modules/cjs/loader:922:12)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at module.exports [as default] (D:\workspace\electron-react-boilerplate\node_modules\import-fresh\index.js:32:59)
    at loadJSConfigFile (D:\workspace\electron-react-boilerplate\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:2562:47)
    at loadConfigFile (D:\workspace\electron-react-boilerplate\node_modules\@eslint\eslintrc\dist\eslintrc.cjs:2646:20)
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Bump outdated peer dependencies

Would appreciate an update to these peer dependencies to remove these warnings if one is at the latest release for each of these packages:

warning " > [email protected]" has incorrect peer dependency "eslint-config-airbnb-typescript@^8.0.2".
warning " > [email protected]" has incorrect peer dependency "eslint-config-prettier@^6.11.0".
warning " > [email protected]" has incorrect peer dependency "eslint-import-resolver-webpack@^0.12.2".
warning " > [email protected]" has incorrect peer dependency "eslint-plugin-jest@^23.13.2".
warning " > [email protected]" has incorrect peer dependency "[email protected]".
warning " > [email protected]" has incorrect peer dependency "react@^16.13.1".

Convert repo to monorepo

  • module for index.js
  • module for typescript.js

This repo should be split into two npm packages: eslint-config-erb-javascript and eslint-config-erb-typescript. We need to refactor this project into these two packages

Please republish a new version

Steps to reproduce:

  1. Clone ERB electron-react-boilerplate repo. https://github.com/electron-react-boilerplate/electron-react-boilerplate
  2. npm install
  3. Upgrade typescript version to latest (4.5.0 or higher)
  4. npm run lint

Error Information

PS C:\Projects\electron-builder-test> npm run lint

lint
cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx

=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.5.0

YOUR TYPESCRIPT VERSION: 4.5.5

Please only submit bug reports when using the officially supported version.

=============

Problematic Package Location

Looking for the outdated @typescript-eslint/typescript-estree shows that it is within the eslint-config-erb package.
image

Suggested Solution

Please release a new version of eslint-config-erb with the updated dependencies. Looking at the master branch, it looks like the dependency upgrade work was already done in d1434db.

Bump dependencies

Please bump the peerDependencies (in the package.json) to stay in sync with the main project electron-react-boilerplate.

E.g. from the package.json in electron-react-boilerplate

"eslint-plugin-jsx-a11y": "6.3.1",

Decorators prettier

Decorators are not being parsed by flow parser (prettier/prettier#4126), I'm using the boilerplate but I had to modify this configuration (adding babylon parser to prettier) to make eslint work. Am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.