Debian Codegraph @

.eslintrc

raw
1 {
2 "parserOptions": {
3 "ecmaVersion": 2015
4 },
5 "env": {
6 "es6": true
7 },
8 "globals": {
9 define: true,
10 require: true,
11 exports: true,
12 module: true,
13 __dirname: true,
14 __filename: true,
15 process: true,
16 global: true,
17 importScripts: true,
18 document: true,
19 window: true,
20 location: true,
21 navigator: true,
22 console: true,
23 Worker: true,
24 postMessage: true,
25 setTimeout: true,
26 clearTimeout: true,
27 setInterval: true,
28 clearInterval: true,
29 Blob: true,
30 cvox: true,
31 alert: true,
32 prompt: true,
33 XMLHttpRequest: true,
34 localStorage: true,
35 KeyboardEvent: true,
36 CustomEvent: true
37 },
38 "rules": {
39 curly: 0,
40 eqeqeq: 0,
41 //comma-dangle: 2,
42 no-dupe-args: 2,
43 no-dupe-keys: 2,
44 no-duplicate-case: 2,
45 no-empty-character-class: 2,
46 no-empty: 0,
47 no-ex-assign: 2,
48 no-extra-parens: 0,
49 no-func-assign: 2,
50 no-inner-declarations: 2,
51 no-invalid-regexp: 2,
52 no-irregular-whitespace: 2,
53 no-negated-in-lhs: 2,
54 no-obj-calls: 2,
55 no-sparse-arrays: 2,
56 no-unexpected-multiline: 2,
57 use-isnan: 2,
58 valid-typeof: 2,
59
60 accessor-pairs: 2,
61 complexity: 0,
62 dot-location: [2, "property"],
63 no-caller: 2,
64 no-case-declarations: 2,
65 no-empty-pattern: 2,
66 no-extra-bind: 2,
67 // no-useless-escape: 2, unfortunately this rule is broken
68
69 no-implied-eval: 2,
70 no-lone-blocks: 2,
71 no-native-reassign: 2,
72 no-new-func: 2,
73 no-new-wrappers: 2,
74 no-octal-escape: 2,
75 no-octal: 2,
76
77 no-return-assign: 0,
78 no-script-url: 2,
79 no-self-compare: 2,
80 no-sequences: 2,
81 no-useless-call: 2,
82 yoda: 2,
83
84 no-undef: 2,
85 no-redeclare: 0,
86 no-unused-vars: [1, {"args": "none", "vars": "all"}],
87
88 no-debugger: 2,
89
90 //////////////////////////////////////////////////////////////////
91 //
92 // no-unreachable: 2,
93 // no-proto: 2,
94 // no-regex-spaces: 2,
95 // no-extend-native: 2,
96 // no-useless-concat: 2,
97 // no-eval: 2,
98 // dot-notation: 2,
99 no-alert: 2,
100 no-extra-semi: 2, // doesn't handle ;(function() {})() pattern
101 // radix: 2,
102 // no-invalid-this: 2,
103 // no-param-reassign: 2,
104 // wrap-iife: 2,
105 // no-throw-literal: 2,
106 // no-multi-spaces: 2,
107 // no-new: 2,
108 // no-else-return: 2,
109 // no-unused-expressions: 2,
110 // no-use-before-define: [2, { "functions": false, "classes": false, "variables": false }],
111
112 // array-bracket-spacing: 2, // enforce spacing inside array brackets (fixable)
113 // block-spacing: 2, // disallow or enforce spaces inside of single line blocks (fixable)
114 // brace-style: 2, // enforce one true brace style
115 // camelcase: 2, // require camel case names
116 // comma-spacing: 2, // enforce spacing before and after comma (fixable)
117 // comma-style: 2, // enforce one true comma style
118 computed-property-spacing: 2, // require or disallow padding inside computed properties (fixable)
119 // consistent-this: 2, // enforce consistent naming when capturing the current execution context
120 linebreak-style: 2, // disallow mixed 'LF' and 'CRLF' as linebreaks
121 // indent: ["error", 4, { "outerIIFEBody": 0 }], // specify tab or space width for your code (fixable)
122 // key-spacing: 2, // enforce spacing between keys and values in object literal properties
123 // new-cap: 2, // require a capital letter for constructors
124 // new-parens: 2, // disallow the omission of parentheses when invoking a constructor with no arguments
125 // newline-after-var: 2, // require or disallow an empty newline after variable declarations
126 no-array-constructor: 2, // disallow use of the Array constructor
127 // no-lonely-if: 2, // disallow if as the only statement in an else block
128 no-mixed-spaces-and-tabs: 2, // disallow mixed spaces and tabs for indentation (recommended)
129 // no-multiple-empty-lines: 2, // disallow multiple empty lines
130 // no-negated-condition: 2, // disallow negated conditions
131 // no-nested-ternary: 2, // disallow nested ternary expressions
132 no-new-object: 2, // disallow the use of the Object constructor
133 no-restricted-syntax: 2, // disallow use of certain syntax in code
134 no-spaced-func: 2, // disallow space between function identifier and application (fixable)
135 // no-trailing-spaces: 2, // disallow trailing whitespace at the end of lines (fixable)
136 // no-underscore-dangle: 2, // disallow dangling underscores in identifiers
137 // no-unneeded-ternary: 2, // disallow the use of ternary operators when a simpler alternative exists
138 // object-curly-spacing: 2, // require or disallow padding inside curly braces (fixable)
139 // one-var: 2, // require or disallow one variable declaration per function
140 // operator-assignment: 2, // require assignment operator shorthand where possible or prohibit it entirely
141 // operator-linebreak: 2, // enforce operators to be placed before or after line breaks
142 // quotes: [2, "double", "avoid-escape"], // specify whether backticks, double or single quotes should be used (fixable)
143 // require-jsdoc: 2, // Require JSDoc comment
144 // semi-spacing: 2, // enforce spacing before and after semicolons
145 semi: [ 2, "always", { "omitLastInOneLineBlock": false } ]// require or disallow use of semicolons instead of ASI (fixable)
146 // keyword-spacing: 2, // require a space after certain keywords (fixable)
147 // space-before-blocks: 2, // require or disallow a space before blocks (fixable)
148 // space-before-function-paren: 2, // require or disallow a space before function opening parenthesis (fixable)
149 // space-before-keywords: 2, // require a space before certain keywords (fixable)
150 // space-in-parens: [2, "never"], // require or disallow spaces inside parentheses
151 // space-infix-ops: 2, // require spaces around operators (fixable)
152 // space-unary-ops: 2, // require or disallow spaces before/after unary operators (fixable)
153 // spaced-comment: [2, "always", { markers: ["-", "*", "/", "{", "}", "#"], exceptions: ["}"] }]
154
155 }
156 }