Coder Social home page Coder Social logo

parcel-plugin-eslint's Introduction

Hi there 👋

parcel-plugin-eslint's People

Contributors

boltdoggy avatar evilhacker avatar krhougs avatar williamchong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

parcel-plugin-eslint's Issues

eslint peer dependency version too specific

"eslint": "~5.12.1",

Peer dependencies versions should be lenient and not lock you down to specific patch versions.
In this case, eslint is expected to be exactly version 5.12.x.

Depending on the npm command, I get a warning or error when I have any eslint version other than 5.12.1 installed.

npm WARN [email protected] requires a peer of eslint@~5.12.1 but none is installed. You must install peer dependencies yourself.

npm ERR! peer dep missing: eslint@~5.12.1, required by [email protected]

Issue with JSAsset

<!- description ->

Please see here:

parcel-bundler/parcel#1319 (comment)

this line shouldn't be used inside a plugin, as it might cause unwanted side-effects and is considered a private module/file within parcel and is being updated without keeping in mind semantic versioning:

const JSAsset = require('parcel-bundler/src/assets/JSAsset');

const JSAsset = require('parcel-bundler/src/assets/JSAsset');

<!- environment ->

Software Version(s)
Parcel 1.8.1
Node
npm/Yarn
Operating System

Cannot read property 'length' of null

"babel-eslint": "^8.2.5",
"eslint": "^5.0.1",
"eslint-config-standard": "^11.0.0",
"eslint-friendly-formatter": "^4.0.1",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-standard": "^3.1.0",
"parcel-plugin-eslint": "^1.0.4"

this is my package.json,when I run parcel ./index.js,I'am blocked by the below error

/Users/fujuewen/private/github/myLodash/index.js: Cannot read property 'length' of null
at /Users/fujuewen/private/github/myLodash/node_modules/parcel-plugin-eslint/node_modules/eslint-friendly-formatter/index.js:184:74
at Array.reduce ()
at module.exports (/Users/fujuewen/private/github/myLodash/node_modules/parcel-plugin-eslint/node_modules/eslint-friendly-formatter/index.js:160:17)
at MyAsset.load (/Users/fujuewen/private/github/myLodash/node_modules/parcel-plugin-eslint/src/EslintAsset.js:22:23)
at

Cannot find module 'parcel-bundler/src/assets/JSAsset'

I guess I'm doing something wrong, I installed the plugin and got:

Cannot find module 'parcel-bundler/src/assets/JSAsset'

I've got an index.html file in ./src/ that refers to ./index.jsx using a script tag. Then I start parcel with parcel src/index.html. Without this plugin everything works like a charm.

parcel-bundler: 1.5.1
eslint: 4.16.0

Failed to load config "../../../../.eslintrc.json" to extend from

When using parcel-plugin-eslint, the serve command is giving me the following error:

image

Simply removing parcel-plugin-eslint from package.json solved the issue. My dependencies are below (parcel-plugin-eslint is commented because it is removed).

Dependencies
{
  "devDependencies": {
    "@types/animejs": "^3.1.0",
    "@types/lodash": "^4.14.149",
    "@types/swiper": "^5.2.0",
    "@typescript-eslint/eslint-plugin": "^2.11.0",
    "@typescript-eslint/parser": "^2.11.0",
    "autoprefixer": "^9.7.3",
    "eslint": "^6.7.2",
    "eslint-config-airbnb-base": "^14.0.0",
    "eslint-config-airbnb-typescript": "^6.3.1",
    "eslint-config-prettier": "^6.7.0",
    "eslint-plugin-import": "^2.19.1",
    "eslint-plugin-prettier": "^3.1.2",
    "husky": "^3.1.0",
    "lint-staged": "^9.5.0",
    "parcel-bundler": "^1.12.4",
    // "parcel-plugin-eslint": "^1.0.8-2",
    "prettier": "^1.19.1",
    "pretty-quick": "^2.0.1",
    "sass": "^1.23.7",
    "typescript": "^3.7.3"
  },
  "dependencies": {
    "animejs": "^3.1.0",
    "bulma": "^0.8.0",
    "cash-dom": "^4.1.5",
    "lodash": "^4.17.15",
    "sweetalert": "^2.1.2",
    "swiper": "^5.2.1"
  }
}
Software Version(s)
parcel-plugin-vue No
Parcel 1.12.4
Vue No
Node 12.14.0
npm/Yarn 6.13.4
Operating System macOS Catalina 10.15.2

Show ESLint errors in console?

As with eslint-loader in webpack, you will see the eslint errors in the console of your browser. Would this be possible with Parcel, using this plugin? That would be an awesome feature :)

Cannot find module 'parcel-bundler/src/Logger'

Description

After installing this plugin I am getting this error Cannot find module 'parcel-bundler/src/Logger'.

Environment

Software Version(s)
Parcel 1.11.0
Node 10.14.2
Yarn 1.12.3
Operating System macOS 10.13.6
parcel-plugin-eslint 1.0.4

No ESLint configuration found.

I have prepared a local. eslintrc.js document,I have also installed parcel-plugin-eslint this module locally, version 1.0.0, but still running parcel error, I run the command parcel index.html --no-cache will report this wrong, would like to ask where is the problem?
The error results are as follows:
image

What does this actually do?

Is it supposed to show lint errors during the build / watch process? It doesn't seem to work for me, if that's the case :)

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.