Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
helix-importer-ui
tools/**/*
blocks/swipper/swipper-bundle.min.js
scripts/swiperjs/swiper-bundle.min.js
scripts/dompurify.min.js
sidekick-library.js
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
module.exports = {
root: true,
plugins: ['sonarjs'],
extends: [
'airbnb-base',
'plugin:json/recommended',
'plugin:xwalk/recommended',
'plugin:sonarjs/recommended-legacy',
],
env: {
browser: true,
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ npm i
```

## Linting
This project is using StyleLint and ESLint (including the SonarJS plugin for ESLint 8).

```sh
npm run lint
```
If for Stylelint you only see "No rules found within configuration", check by going to Settings --> VSCode settings and search "Stylelint". For both User and Workspace tabs, check settings.json to see if there is an empty entry for "stylelint.config": { }. Remove it from both places so that this project's .stylelintrc.json file will be used for the config.

## Local development

Expand Down
Loading
Loading