LuCI - OpenWrt Configuration Interface
 
 
 
 
 
 
Go to file
Paul Donald 4900913d2a
github: add linting for JS and MD
bump checkout to 6

Included is a selection of rules which flag common problems.

Lint
-JS ( ESlint )
-JSON ( https://github.com/eslint/json )
-JSDoc (comment matter) in the luci-base module
-Markdown ( https://github.com/eslint/markdown )

For JSON, mandate standard JSON (not JSONC or JSON5) format,
**/*.json checks across the whole repo.

For JS, mandate sourceType: 'script', otherwise the linter
errors out about return methods in modules which masks other
problems. There are a number of structural design changes
needed to bring this repo into compliance with standards.
Each JS file is an individual script, despite their module
like structure, so functions and classes offloaded to
'common' files (individual scripts and not modules) are
invisible to linters unless we define them under the 'globals'
key. Custom rules and parsers are also possible.

For JSDoc, mandate some common checks to ensure the repo
will generate consistent documentation which links and displays
well.

For MD, check also JS syntax inside MD, as well as MD itself.
JS checks inside MD are not strict.

Included also eslint-formatter-gha (-f gha) which comments
on PRs when problems are detected in code additions. Actions
show green when no errors are reported (warnings are a pass)
but the gha will comment about warnings.

Flag `--diff-filter=ACM` shows only additions, and not
deletions.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2026-02-16 01:42:55 +01:00
.github github: add linting for JS and MD 2026-02-16 01:42:55 +01:00
applications Translated using Weblate (Korean) 2026-02-15 10:37:15 +02:00
build build: do not run ./build/mkbasepot.sh twice 2026-02-03 08:49:03 +01:00
collections luci-app-attendedsysupgrade: activate in buildbot 2026-02-08 22:41:34 +01:00
contrib/package
doc_gen docs: refresh for JS and drop Lua references 2026-02-16 01:06:46 +01:00
docs docs: refresh for JS and drop Lua references 2026-02-16 01:06:46 +01:00
libs
modules Translated using Weblate (Korean) 2026-02-15 10:37:15 +02:00
protocols luci-proto-wireguard: fix i18n compile error 2026-02-03 06:59:25 +01:00
themes luci-theme: html title: swap hostname <-> page title 2026-02-09 22:14:59 +01:00
.gitignore docs: refresh for JS and drop Lua references 2026-02-16 01:06:46 +01:00
CONTRIBUTING.md
LICENSE
NOTICE
README.md docs: refresh for JS and drop Lua references 2026-02-16 01:06:46 +01:00
eslint.config.mjs github: add linting for JS and MD 2026-02-16 01:42:55 +01:00
jsdoc.conf.json docs: refresh for JS and drop Lua references 2026-02-16 01:06:46 +01:00
luci.mk luci.mk: add support for DEFAULT option 2026-02-08 22:41:34 +01:00
package.json github: add linting for JS and MD 2026-02-16 01:42:55 +01:00

README.md

OpenWrt luci feed

Translation status

Description

This is the OpenWrt "luci"-feed containing LuCI - OpenWrt Configuration Interface.

Usage

This feed is enabled by default. Your feeds.conf.default (or feeds.conf) should contain a line like:

src-git luci https://github.com/openwrt/luci.git

To install all its package definitions, run:

./scripts/feeds update luci
./scripts/feeds install -a -p luci

API Reference

You can browse the generated API documentation directly on Github.

Use ucode and rpcd for server side operations.

Development

Documentation for developing and extending LuCI can be found in the Wiki

License

See LICENSE file.

Package Guidelines

See CONTRIBUTING.md file.

Translation status

Use Weblate instead of direct editing of the *.po files.

Translation status