mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
6187cfd67b
* Add macOS section to Web-Interface docs - Add minimal steps to enable web interface on macOS - Clean up README.md with some markdown linting. * Updating and modernizing web interface, colors, icons In general: - increase spacing and decrease font sizes in most inspectors (so far) - replace icons with emoji. may not be the way to go in the end * update toolbar icon sizes to adjust for differences * Switch from icons to buttons, other minor color changes 1. Add 'warn' class to dangerous actions 2. Add 'table-row' helper to overflow menu 3. Use text instead of icons for this new tab style * Update icons using feathericons.com * Rename files, replace some SVG and optimize PNG * Remove more unused variables * Update index.html to reflect new icons * More minor svg changes; delete old images * Updated build output * Remove icons, add new feather svg icons Build is now sub-200 KB
131 lines
3.9 KiB
JavaScript
131 lines
3.9 KiB
JavaScript
module.exports = {
|
|
"env": {
|
|
"browser": true,
|
|
"commonjs": true,
|
|
"es6": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:sonarjs/recommended",
|
|
"plugin:unicorn/recommended"
|
|
],
|
|
"parser": "@babel/eslint-parser",
|
|
"parserOptions": {
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"sonarjs",
|
|
"unicorn"
|
|
],
|
|
"rules": {
|
|
"accessor-pairs": "error",
|
|
"array-callback-return": "error",
|
|
"arrow-spacing": "error",
|
|
"block-scoped-var": "error",
|
|
"class-methods-use-this": "error",
|
|
"consistent-return": "error",
|
|
"curly": "error",
|
|
"default-case": "error",
|
|
"default-case-last": "error",
|
|
"default-param-last": "error",
|
|
"eqeqeq": "error",
|
|
"grouped-accessor-pairs": "error",
|
|
"guard-for-in": "error",
|
|
"init-declarations": "error",
|
|
"no-array-constructor": "error",
|
|
"no-caller": "error",
|
|
"no-confusing-arrow": "error",
|
|
"no-constructor-return": "error",
|
|
"no-delete-var": "error",
|
|
"no-dupe-class-members": "error",
|
|
"no-duplicate-imports": "error",
|
|
"no-else-return": "error",
|
|
"no-empty-function": "error",
|
|
"no-eq-null": "error",
|
|
"no-eval": "error",
|
|
"no-extend-native": "error",
|
|
"no-extra-bind": "error",
|
|
"no-extra-label": "error",
|
|
"no-floating-decimal": "error",
|
|
"no-implicit-coercion": "error",
|
|
"no-implicit-globals": "error",
|
|
"no-implied-eval": "error",
|
|
"no-invalid-this": "error",
|
|
"no-iterator": "error",
|
|
"no-label-var": "error",
|
|
"no-labels": "error",
|
|
"no-lone-blocks": "error",
|
|
"no-loop-func": "error",
|
|
"no-loss-of-precision": "error",
|
|
"no-multi-str": "error",
|
|
"no-nested-ternary": "error",
|
|
"no-new": "error",
|
|
"no-new-func": "error",
|
|
"no-new-wrappers": "error",
|
|
"no-octal": "error",
|
|
"no-octal-escape": "error",
|
|
"no-promise-executor-return": "error",
|
|
"no-proto": "error",
|
|
"no-redeclare": "error",
|
|
"no-restricted-exports": "error",
|
|
"no-restricted-globals": "error",
|
|
"no-restricted-imports": "error",
|
|
"no-restricted-properties": "error",
|
|
"no-return-assign": "error",
|
|
"no-script-url": "error",
|
|
"no-self-compare": "error",
|
|
"no-sequences": "error",
|
|
"no-shadow": "error",
|
|
"no-template-curly-in-string": "error",
|
|
"no-this-before-super": "error",
|
|
"no-throw-literal": "error",
|
|
"no-undef-init": "error",
|
|
"no-undefined": "error",
|
|
"no-unmodified-loop-condition": "error",
|
|
"no-unreachable-loop": "error",
|
|
"no-unused-expressions": "error",
|
|
"no-unused-labels": "error",
|
|
"no-unused-vars": "error",
|
|
"no-use-before-define": "error",
|
|
"no-useless-backreference": "error",
|
|
"no-useless-call": "error",
|
|
"no-useless-catch": "error",
|
|
"no-useless-computed-key": "error",
|
|
"no-useless-concat": "error",
|
|
"no-useless-constructor": "error",
|
|
"no-useless-escape": "error",
|
|
"no-useless-rename": "error",
|
|
"no-useless-return": "error",
|
|
"no-var": "error",
|
|
"no-void": "error",
|
|
"no-with": "error",
|
|
"object-shorthand": "error",
|
|
"prefer-arrow-callback": "error",
|
|
"prefer-const": "error",
|
|
"prefer-destructuring": "error",
|
|
"prefer-exponentiation-operator": "error",
|
|
"prefer-numeric-literals": "error",
|
|
"prefer-object-spread": "error",
|
|
"prefer-promise-reject-errors": "error",
|
|
"prefer-regex-literals": "error",
|
|
"prefer-rest-params": "error",
|
|
"prefer-spread": "error",
|
|
"prefer-template": "error",
|
|
"radix": "error",
|
|
"require-atomic-updates": "error",
|
|
"require-await": "error",
|
|
"semi": "error",
|
|
"sonarjs/cognitive-complexity": "off",
|
|
"sonarjs/no-duplicate-string": "off",
|
|
"sort-keys": "error",
|
|
"strict": "error",
|
|
"unicorn/consistent-function-scoping": "off",
|
|
"unicorn/no-array-reduce": "off",
|
|
"unicorn/no-fn-reference-in-iterator": "off",
|
|
"unicorn/no-null": "off",
|
|
"unicorn/no-reduce": "off",
|
|
"unicorn/no-unused-properties": "off",
|
|
"unicorn/prevent-abbreviations": "off",
|
|
"unicorn/switch-case-braces": "off"
|
|
}
|
|
};
|