mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-15 09:58:28 -07:00
c6e1766e8c
- add `make js`, deprecating `make javascripts` - add `make css`, deprecating `make generate-stylesheets` and `make stylesheets-check` - changed the unclean css check to only run on CI - add JS linting via eslint with basic configuration and fixed discovered issues - changed autoprefixer to use official `postcss-cli` avoiding the need to loop in the makefile - moved browserslist to package.json so other future tools can use it too. - update documentation for new make targets and added JS section
26 lines
394 B
Plaintext
26 lines
394 B
Plaintext
root: true
|
|
|
|
extends:
|
|
- eslint:recommended
|
|
|
|
parserOptions:
|
|
ecmaVersion: 2015
|
|
|
|
env:
|
|
browser: true
|
|
jquery: true
|
|
es6: true
|
|
|
|
globals:
|
|
Clipboard: false
|
|
CodeMirror: false
|
|
emojify: false
|
|
SimpleMDE: false
|
|
Vue: false
|
|
Dropzone: false
|
|
u2fApi: false
|
|
hljs: false
|
|
|
|
rules:
|
|
no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
|