Giter Club home page Giter Club logo

eslint-svelte3-preprocess's People

Contributors

nicocevallos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sxxov

eslint-svelte3-preprocess's Issues

Error when using with eslint 7.32

I have tried the following to set this up:

npm i -D eslint-svelte3-preprocessor

and added

const eslintSveltePreprocessor = require('eslint-svelte3-preprocessor');
const svelteConfig = require('./svelte.config');
// ...
  settings: {
    'svelte3/preprocessor': eslintSveltePreprocessor(svelteConfig.preprocess);
  }

(I already had the eslint-plugin-svelte3 plugin set up.)

When I run eslint, I get the following error:

npx eslint -f scripts/eslint-formatter.cjs --ignore-path .gitignore . "--cache"


Oops! Something went wrong! :(

ESLint: 7.32.0

TypeError: Cannot set property message of  which has only a getter
    at loadJSConfigFile (/home/wallw/workspace/saffire/ui/node_modules/@eslint/eslintrc/lib/config-array-factory.js:228:19)
    at loadConfigFile (/home/wallw/workspace/saffire/ui/node_modules/@eslint/eslintrc/lib/config-array-factory.js:309:20)
    at ConfigArrayFactory.loadInDirectory (/home/wallw/workspace/saffire/ui/node_modules/@eslint/eslintrc/lib/config-array-factory.js:502:34)
    at CascadingConfigArrayFactory._loadConfigInAncestors (/home/wallw/workspace/saffire/ui/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js:379:46)
    at CascadingConfigArrayFactory.getConfigArrayForFile (/home/wallw/workspace/saffire/ui/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js:300:18)
    at FileEnumerator._iterateFilesRecursive (/home/wallw/workspace/saffire/ui/node_modules/eslint/lib/cli-engine/file-enumerator.js:445:49)
    at _iterateFilesRecursive.next (<anonymous>)
    at FileEnumerator.iterateFiles (/home/wallw/workspace/saffire/ui/node_modules/eslint/lib/cli-engine/file-enumerator.js:296:49)
    at iterateFiles.next (<anonymous>)
    at CLIEngine.executeOnFiles (/home/wallw/workspace/saffire/ui/node_modules/eslint/lib/cli-engine/cli-engine.js:771:48)

Is there something I am doing incorrectly or is this a bug?

$ node --version
v14.18.0
$ npm --version
8.0.0

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.