You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.5 KiB
47 lines
1.5 KiB
|
|
extends: |
|
- eslint:recommended |
|
- eslint-config-standard |
|
|
|
parserOptions: |
|
ecmaVersion: 11 |
|
sourceType: module |
|
|
|
env: |
|
browser: true |
|
node: true |
|
mocha: true |
|
commonjs: true |
|
worker: true |
|
serviceworker: true |
|
|
|
globals: |
|
process: true |
|
|
|
rules: |
|
# modified rules |
|
indent: [ "error", 4, { "SwitchCase": 1 } ] |
|
linebreak-style: [ "error", "unix" ] |
|
semi: [ "error", "never" ] |
|
operator-linebreak: [ "error", "after", { "overrides": { "&&": "before", "||": "before", ":": "after" } } ] |
|
brace-style: [ "error", "stroustrup", { "allowSingleLine": true } ] |
|
quotes: [ "error", "double" ] |
|
|
|
# disabled rules |
|
no-multi-spaces: off |
|
no-multiple-empty-lines: off |
|
key-spacing: off |
|
object-property-newline: off |
|
curly: off |
|
space-in-parens: off |
|
array-bracket-spacing: off |
|
require-atomic-updates: off |
|
no-void: off |
|
lines-between-class-members: off |
|
quote-props: off |
|
object-curly-newline: off |
|
node/no-callback-literal: off |
|
multiline-ternary: off |
|
no-new: off |
|
no-unneeded-ternary: off |
|
|
|
|