# \#eslint

**URL:** https://discourse.roots.io/tag/eslint/14.md

[Latest](https://discourse.roots.io/latest.md) · [Categories](https://discourse.roots.io/categories.md) · [Tags](https://discourse.roots.io/tags.md)

---

## [Stylelint Unknown Rules in Sage 10 (declaration-colon-newline-after, string-quotes)](https://discourse.roots.io/t/stylelint-unknown-rules-in-sage-10-declaration-colon-newline-after-string-quotes/29029)

<div class="topic-metadata">

**Author:** [@enkuush](https://discourse.roots.io/u/enkuush)\
**Replies:** 2\
**Last updated:** [December 21, 2024, 10:50pm UTC](https://discourse.roots.io/t/stylelint-unknown-rules-in-sage-10-declaration-colon-newline-after-string-quotes/29029 "2024-12-21T22:50:36Z")

</div>

I’m having an issue integrating stylelint into my Sage 10 theme by following the guide. When I run yarn lint:css I get these errors: resources/styles/app.css 1:1 ✖ Unknown rule declaration-colon-newline-after dec…

---

## [\[bud-eslint\] .eslintignore unknown config format](https://discourse.roots.io/t/bud-eslint-eslintignore-unknown-config-format/25513)

<div class="topic-metadata">

**Author:** [@kjvdven](https://discourse.roots.io/u/kjvdven)\
**Replies:** 0\
**Last updated:** [June 12, 2023, 2:30pm UTC](https://discourse.roots.io/t/bud-eslint-eslintignore-unknown-config-format/25513 "2023-06-12T14:30:05Z")

</div>

I added a .eslintignore file to my theme as described in the docs, but I get a warning. \[sage\] \[@roots/bud-eslint\] › ⚠ Unknown eslint config format. Please update \`.eslintignore\` to use one of: js, cjs, mjs, json, yml,…

---

## [How to extend bud-react eslint config?](https://discourse.roots.io/t/how-to-extend-bud-react-eslint-config/22495)

<div class="topic-metadata">

**Author:** [@mrmadhat](https://discourse.roots.io/u/mrmadhat)\
**Replies:** 2\
**Last updated:** [March 9, 2022, 9:48am UTC](https://discourse.roots.io/t/how-to-extend-bud-react-eslint-config/22495 "2022-03-09T09:48:37Z")

</div>

I’m building a site that uses the latest version of Sage 10, the site also uses react so I’ve added @roots/bud-react and I’m attempting to setup my eslint config so that it extends bud-react. Everything seems to be worki…

---

## [ESLing Parsing Error: Must use import to load ES Module](https://discourse.roots.io/t/esling-parsing-error-must-use-import-to-load-es-module/21725)

<div class="topic-metadata">

**Author:** [@mehha](https://discourse.roots.io/u/mehha)\
**Replies:** 0\
**Last updated:** [November 19, 2021, 8:10am UTC](https://discourse.roots.io/t/esling-parsing-error-must-use-import-to-load-es-module/21725 "2021-11-19T08:10:50Z")

</div>

When opening JS file I get that error. might that fix be valid for this? https://stackoverflow.com/questions/69554485/eslint-error-must-use-import-to-load-es-module

---

## [Sage 9 + Infinite-scroll](https://discourse.roots.io/t/sage-9-infinite-scroll/20499)

<div class="topic-metadata">

**Author:** [@hallowichig0](https://discourse.roots.io/u/hallowichig0)\
**Replies:** 2\
**Last updated:** [April 20, 2021, 4:21am UTC](https://discourse.roots.io/t/sage-9-infinite-scroll/20499 "2021-04-20T04:21:11Z")

</div>

Hi All, I’m trying to import this infinite-scroll.pkgd.js in my main.js. When I run yarn build or yard start I’m getting errors like this: Module parse failed: Unexpected token (464:19) You may need an appropriate lo…

---

## [Changing Linter behaviour](https://discourse.roots.io/t/changing-linter-behaviour/18318)

<div class="topic-metadata">

**Author:** [@o0MSK0o](https://discourse.roots.io/u/o0MSK0o)\
**Replies:** 0\
**Last updated:** [May 23, 2020, 11:02pm UTC](https://discourse.roots.io/t/changing-linter-behaviour/18318 "2020-05-23T23:02:47Z")

</div>

Hi, I’ve been playing with Trellis and Sage and so far, I really like it. Apart from one thing which is absolutely driving me insane. ESLint. I like having it, and it’s definitely useful to maintain the same syntax t…

---

## [Stylelint: disable certain rules? Issue with no-descending-specificity](https://discourse.roots.io/t/stylelint-disable-certain-rules-issue-with-no-descending-specificity/12860)

<div class="topic-metadata">

**Author:** [@trainoasis](https://discourse.roots.io/u/trainoasis)\
**Replies:** 15\
**Last updated:** [March 26, 2020, 1:41pm UTC](https://discourse.roots.io/t/stylelint-disable-certain-rules-issue-with-no-descending-specificity/12860 "2020-03-26T13:41:34Z")

</div>

Hello. Is it possible to disable certain eslint rules? Wasn’t able to find anything specific inside resources/assets/build/ that might help with this. For example, I’m having many issues with this specific rule: ‘no-d…

---

## [Enqueuing/compile 3rd party JS libraries (no NPM packages)](https://discourse.roots.io/t/enqueuing-compile-3rd-party-js-libraries-no-npm-packages/14903)

<div class="topic-metadata">

**Author:** [@Saxpaolo](https://discourse.roots.io/u/Saxpaolo)\
**Replies:** 8\
**Last updated:** [February 24, 2019, 4:56pm UTC](https://discourse.roots.io/t/enqueuing-compile-3rd-party-js-libraries-no-npm-packages/14903 "2019-02-24T16:56:56Z")

</div>

Hello, I’ve tried many solutions to perform this task - following the Sage 9 book documentation, reading many thread in Roots Discourse, or other from the web - and yet I’m not able to enqueue (compile) 3rd party JS lib…

---

## [How to configure linter to ignore 3rd party packages?](https://discourse.roots.io/t/how-to-configure-linter-to-ignore-3rd-party-packages/14737)

<div class="topic-metadata">

**Author:** [@Xuan\_Cheng\_Lai](https://discourse.roots.io/u/Xuan_Cheng_Lai)\
**Replies:** 3\
**Last updated:** [February 2, 2019, 8:21pm UTC](https://discourse.roots.io/t/how-to-configure-linter-to-ignore-3rd-party-packages/14737 "2019-02-02T20:21:35Z")

</div>

I’m adding Font Awesome following this post importing it into main.scss But after this, I’m not able to build the project anymore, because the styles lint is scanning the Font Awesome code and it’s failing. How can I c…

---

## [What linter do you use in Atom?](https://discourse.roots.io/t/what-linter-do-you-use-in-atom/12874)

<div class="topic-metadata">

**Author:** [@davebowker](https://discourse.roots.io/u/davebowker)\
**Replies:** 2\
**Last updated:** [July 10, 2018, 3:52pm UTC](https://discourse.roots.io/t/what-linter-do-you-use-in-atom/12874 "2018-07-10T15:52:16Z")

</div>

Hey guys, Just wondering, has anyone got ‘on-the-fly’ linting set up in Atom? I’ve installed a couple of linter plugins, but I can’t seem to specify the rules for the lint plugin to follow. I see there is a file called…

---

## [Enable console.log with eslint](https://discourse.roots.io/t/enable-console-log-with-eslint/8936)

<div class="topic-metadata">

**Author:** [@JulienMelissas](https://discourse.roots.io/u/JulienMelissas)\
**Replies:** 3\
**Last updated:** [December 8, 2017, 10:07pm UTC](https://discourse.roots.io/t/enable-console-log-with-eslint/8936 "2017-12-08T22:07:56Z")

</div>

If you need to enable console.log usage without the eslint build yelling at you, this should help you out during development! I know I'm not the only one running into it... In the rules section towards the bottom of th…

---

## [Exclude directory/file for eslint](https://discourse.roots.io/t/exclude-directory-file-for-eslint/10037)

<div class="topic-metadata">

**Author:** [@strarsis](https://discourse.roots.io/u/strarsis)\
**Replies:** 1\
**Last updated:** [July 21, 2017, 2:13pm UTC](https://discourse.roots.io/t/exclude-directory-file-for-eslint/10037 "2017-07-21T14:13:20Z")

</div>

The sage 9 based theme should use a library that has been built from source and copied to assets/lib folder. - On build the files should be copied to dist/. However, eslint complains about linting errors in the library …
