ws4kp/.eslintrc.js

54 lines
795 B
JavaScript
Raw Normal View History

2020-09-04 18:02:20 +00:00
module.exports = {
2020-10-29 21:44:28 +00:00
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
jquery: true,
2020-09-04 18:02:20 +00:00
},
2020-10-29 21:44:28 +00:00
extends: 'airbnb-base',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
2020-09-04 18:02:20 +00:00
},
2020-10-29 21:44:28 +00:00
parserOptions: {
ecmaVersion: 2020,
2020-09-04 18:02:20 +00:00
},
2020-10-29 21:44:28 +00:00
rules: {
indent: [
2020-09-04 18:02:20 +00:00
'error',
2020-10-29 21:44:28 +00:00
'tab',
2020-09-04 18:02:20 +00:00
],
2020-10-29 21:44:28 +00:00
'no-tabs': 0,
'no-console': 0,
'max-len': 0,
2022-03-01 22:19:08 +00:00
'no-use-before-define': [
'error',
{
variables: false,
},
],
2022-05-03 20:21:05 +00:00
'no-param-reassign': [
'error',
{
props: false,
},
],
2020-12-29 16:22:20 +00:00
'no-mixed-operators': [
'error',
{
groups: [
['&', '|', '^', '~', '<<', '>>', '>>>'],
['==', '!=', '===', '!==', '>', '>=', '<', '<='],
['&&', '||'],
['in', 'instanceof'],
],
allowSamePrecedence: true,
},
],
2020-09-04 18:02:20 +00:00
},
2020-10-29 21:44:28 +00:00
ignorePatterns: [
'*.min.js',
2020-09-04 18:02:20 +00:00
],
2020-10-29 21:44:28 +00:00
};